add js/ts versions of methods

This commit is contained in:
Luke committed 2022-07-13 21:34:22 +02:00
1 parent 26e93458ef
commit aeb90c297f
4 files changed
+162 -1

No files matched your search

+24
View File
@@ -5,6 +5,8 @@ sidebar_position: 1
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import IconButton from '@site/src/components/IconButton';
import { FaNpm } from 'react-icons/fa';
:::caution
@@ -66,3 +68,25 @@ pnpm build
| Name | Default | Replicated |
|------|------------|---------|
| ox:primaryIdentifier | fivem | false
## Importing the core functions
<Tabs>
<TabItem value='lua' label='Lua'>
Functions are imported by simply adding the import files to the fxmanifest.
**Client:**
`@ox_core/imports/client.lua`
**Server:**
`@ox_core/imports/server.lua`
</TabItem>
<TabItem value='js/ts' label='JS/TS'>
If in case you want to write resources in JS/TS you will need to insteall our node client and server wrapper package,
which will allow you to use the core's functions with full type and intellisense support.
<a href='https://www.npmjs.com/package/@overextended/ox_core'>
<IconButton style={{marginTop: '0.7rem'}} side='left' icon={<FaNpm/>}>Package</IconButton>
</a>
</TabItem>
</Tabs>