mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +00:00
initial ox_core docs
This commit is contained in:
1 parent
fc94ddb756
commit
7a12109f40
6 files changed
+130
-12
No files matched your search
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: Events
|
||||||
|
---
|
||||||
|
|
||||||
|
```lua
|
||||||
|
RegisterNetEvent('ox:playerLoaded', function(source, data, coords) end)
|
||||||
|
```
|
||||||
|
|
||||||
|
```lua
|
||||||
|
RegisterNetEvent('ox:setGroup', function(source, group, grade) end)
|
||||||
|
```
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: Client
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
title: Events
|
||||||
|
---
|
||||||
|
|
||||||
|
```lua
|
||||||
|
RegisterNetEvent('ox:playerDeath', function(isDead) end)
|
||||||
|
```
|
||||||
|
|
||||||
|
```lua
|
||||||
|
AddEventHandler('ox:playerLoaded', function(source, userid, charid) end)
|
||||||
|
```
|
||||||
|
|
||||||
|
```lua
|
||||||
|
AddEventHandler('ox:setGroup', function(source, group, grade) end)
|
||||||
|
```
|
||||||
|
|
||||||
|
```lua
|
||||||
|
AddEventHandler('ox:playerLogout', function(source, userid, charid) end)
|
||||||
|
```
|
||||||
|
|
||||||
|
```lua
|
||||||
|
AddEventHandler('ox:characterDeleted', function(source, userid, charid) end)
|
||||||
|
```
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: Server
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
title: Getting started
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
|
|
||||||
|
import Tabs from '@theme/Tabs';
|
||||||
|
import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
|
:::caution
|
||||||
|
|
||||||
|
This resource is **not production ready**. Breaking changes are guaranteed, and support is limited.
|
||||||
|
Documentation may fall behind and be rendered obsolete.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
We **strongly** recommend using Git to help with version control and separating your own changes from the original source code.
|
||||||
|
Refer to [GitHub's guide to setting up Git](https://docs.github.com/en/get-started/quickstart/set-up-git#setting-up-git). You can also download a Git GUI client, such as [GitKraken](https://www.gitkraken.com/), to improve your workflow and more easily maintain changes.
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
- [oxmysql](https://github.com/overextended/oxmysql/)
|
||||||
|
- [ox_lib](https://github.com/overextended/ox_lib/)
|
||||||
|
- [ox_inventory](https://github.com/overextended/ox_inventory)
|
||||||
|
|
||||||
|
### Optional dependencies
|
||||||
|
|
||||||
|
- [npwd](https://github.com/project-error/npwd)
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<TabItem value="1" label="Recommended">
|
||||||
|
|
||||||
|
- [Download](https://www.nodejs.org/) and install the LTS version of Node.js 16.
|
||||||
|
- Open a terminal, command prompt, etc. and navigate to your resources folder.
|
||||||
|
- Execute the following commands
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install --location=global pnpm
|
||||||
|
git clone https://github.com/overextended/ox_core.git
|
||||||
|
cd web
|
||||||
|
pnpm i
|
||||||
|
pnpm build
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
<TabItem value="2" label="Lazy">
|
||||||
|
|
||||||
|
- Download a tagged [release](https://github.com/overextended/ox_core/releases).
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
|
||||||
|
## Convars
|
||||||
|
|
||||||
|
| Name | Default | Replicated |
|
||||||
|
|------|------------|---------|
|
||||||
|
| ox:primaryIdentifier | fivem | false
|
||||||
+27
-12
@@ -21,7 +21,22 @@ const sidebars = {
|
|||||||
{
|
{
|
||||||
type: 'doc',
|
type: 'doc',
|
||||||
label: 'Documentation',
|
label: 'Documentation',
|
||||||
id: 'index'
|
id: 'index',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'category',
|
||||||
|
label: 'Core',
|
||||||
|
link: {
|
||||||
|
type: 'generated-index',
|
||||||
|
title: 'Ox Core',
|
||||||
|
description: 'An experimental framework for FiveM. Limited support and breaking changes guaranteed.',
|
||||||
|
},
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
type: 'autogenerated',
|
||||||
|
dirName: 'ox_core',
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
@@ -29,9 +44,9 @@ const sidebars = {
|
|||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'autogenerated',
|
type: 'autogenerated',
|
||||||
dirName: 'oxmysql'
|
dirName: 'oxmysql',
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
@@ -39,21 +54,21 @@ const sidebars = {
|
|||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'autogenerated',
|
type: 'autogenerated',
|
||||||
dirName: 'ox_lib'
|
dirName: 'ox_lib',
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
label: "Inventory",
|
label: 'Inventory',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'autogenerated',
|
type: 'autogenerated',
|
||||||
dirName: 'ox_inventory'
|
dirName: 'ox_inventory',
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = sidebars;
|
module.exports = sidebars;
|
||||||
Reference in new issue
Block a user