formatting and typos

This commit is contained in:
DokaDoka committed 2022-12-11 15:00:43 +11:00
1 parent 75698216e0
commit 724c7e356d
99 files changed
+515 -305

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ Convars **must** be set before starting ox_inventory.
The values below are _defaults_ and should not be explicitly set unless changing the value.
```yml
```yaml
# Activate specific event handlers and functions (supported: ox, esx, qb, nd)
setr inventory:framework "esx"
+9 -9
View File
@@ -43,7 +43,7 @@ The resources listed under here **aren't** necessary for the inventory to work b
### ox_target
A performant and flexible standalone "third-eye" targeting resource.
A performant and flexible standalone "third-eye" targeting resource.
Stashes, shops, and crafting benches will be accessible via zone targets instead of using markers.
<ResourceLinks repo="https://www.github.com/overextended/ox_target" docs="../ox_target"></ResourceLinks>
@@ -60,8 +60,8 @@ The inventory will handle disabling the phone when the player has no item, and s
### Production Build
The user interface included with the source code must be compiled.
You can compile it youself by following the [build guide](./Guides/inventory_ui), otherwise download a production build below.
The user interface included with the source code must be compiled.
You can compile it yourself by following the [build guide](./Guides/inventory_ui), otherwise download a production build below.
<ResourceLinks repo="https://github.com/overextended/ox_inventory/releases/latest"></ResourceLinks>
@@ -76,12 +76,12 @@ Integration between your framework and ox_inventory should be relatively simple
You should first reference the [mysql](https://github.com/overextended/ox_inventory/blob/main/modules/mysql/server.lua) module and setup appropriate table and column names.
```lua
elseif shared.framework == 'myframework' then
playerTable = 'characters' -- table storing player / character data
playerColumn = 'charid' -- primary key for identifying the character (i.e. identifier, citizenid, id)
vehicleTable = 'vehicles' -- table storing owned vehicle data
vehicleColumn = 'id' -- primary key for identifying the vehicle (i.e. plate, vin, id)
end
elseif shared.framework == 'myframework' then
playerTable = 'characters' -- table storing player / character data
playerColumn = 'charid' -- primary key for identifying the character (i.e. identifier, citizenid, id)
vehicleTable = 'vehicles' -- table storing owned vehicle data
vehicleColumn = 'id' -- primary key for identifying the vehicle (i.e. plate, vin, id)
end
```
You will need events and functions to handle licenses, owned vehicles, and job systems; these should be handled in the "bridge" module.
+4 -4
View File
@@ -8,16 +8,16 @@ sidebar_position: 1
Because the UI for inventory is written in React it can't run natively under FiveM so it must first be bundled into html/css/js.
We provide an easy way for you to do this by downloading a pre-bundled release, which you can get from [here](https://github.com/overextended/ox_inventory/releases/latest).
We provide an easy way for you to do this by downloading a pre-bundled release, which you can get from [here](https://github.com/overextended/ox_inventory/releases/latest).
Make sure you download the `ox_inventory.zip` file as that one contains the bundled files and others are raw source code.
If in case you wanted to edit the inventory UI you would have to build these files yourself.
If in case you wanted to edit the inventory UI you would have to build these files yourself.
To do so please read our [_Building inventory UI_](../Guides/inventory_ui.md) guide.
## Stashes / trunks are not saved at server restart
The only supported way of doing a restart is **txAdmin scheduled restart**.
The only supported way of doing a restart is **txAdmin scheduled restart**.
txAdmin scheduled restart should be your only way of restarting a server in production.
If you need to do a manual restart, you must use `/saveinv` before restarting the server.
If you need to do a manual restart, you must use `/saveinv` before restarting the server.
If you don't do this, all inventory except players inventory will not be saved.