diff --git a/pages/ox_core/Functions/Common/GetTopVehicleStats.mdx b/pages/ox_core/Functions/Common/GetTopVehicleStats.mdx deleted file mode 100644 index 3c7798659..000000000 --- a/pages/ox_core/Functions/Common/GetTopVehicleStats.mdx +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: GetTopVehicleStats ---- - -## Ox.GetTopVehicleStats - -Returns an object containing the top vehicle stats, either overall or for a specific category (land, air, sea). - -```lua -Ox.GetTopVehicleStats(category) -``` - -**Parameters** - -- category?: `string` - -**Returns** - -- `VehicleStats` | `{ [string]: VehicleStats }` - -## VehicleStats -- `object` - - acceleration: `number` - - braking: `number` - - handling: `number` - - speed: `number` - - traction: `number` diff --git a/pages/ox_core/Functions/Common/GetVehicleData.mdx b/pages/ox_core/Functions/Common/GetVehicleData.mdx deleted file mode 100644 index ba5c035f7..000000000 --- a/pages/ox_core/Functions/Common/GetVehicleData.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: GetVehicleData ---- - -## Ox.GetVehicleData - -Returns VehicleData for all vehicles, or optionally a specific model or array of models. - -```lua -Ox.GetVehicleData(filter) -``` - -**Parameters** - -- filter?: `string` | `string[]` - -**Returns** - -- `{ [string]: VehicleData }` | `VehicleData` - -## VehicleData -- `object` - - class: `VehicleClasses` - - doors: `number` - - make: `string` - - name: `string` - - price: `number` - - seats: `number` - - type: `string` - - weapons?: `true` \ No newline at end of file diff --git a/pages/ox_core/Functions/Common/GetVehicleNetworkType.mdx b/pages/ox_core/Functions/Common/GetVehicleNetworkType.mdx deleted file mode 100644 index 1b79d3664..000000000 --- a/pages/ox_core/Functions/Common/GetVehicleNetworkType.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetVehicleNetworkType ---- - -## Ox.GetVehicleNetworkType - -Returns the netobj type of a vehicle model, which may differ from the vehicle type (e.g. blimp is networked as heli). - -```lua -Ox.GetVehicleNetworkType(modelName) -``` - -**Parameters** - -- modelName: `string` - -**Returns** - -- `string` diff --git a/pages/ox_core/Functions/Server/CreateAccount.mdx b/pages/ox_core/Functions/Server/CreateAccount.mdx deleted file mode 100644 index 9858bd7df..000000000 --- a/pages/ox_core/Functions/Server/CreateAccount.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: CreateAccount ---- - -## Ox.CreateAccount - -Creates a new account for a character with the given charId or stateId. - -```lua -Ox.CreateAccount(ownerId, label) -``` - -**Parameters** - -- ownerId: `number` | `string` -- label: `string` - -**Returns** - -- `OxAccount` diff --git a/pages/ox_core/Functions/Server/CreateGroup.mdx b/pages/ox_core/Functions/Server/CreateGroup.mdx deleted file mode 100644 index cbc138ea0..000000000 --- a/pages/ox_core/Functions/Server/CreateGroup.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -title: CreateGroup ---- - -## Ox.CreateGroup - -Creates a new group from the given data, handling all database interactions internally. - -```lua -Ox.CreateGroup(data) -``` - -**Parameters** - -- data: `object` - - name: `string` - - label: `string` - - grades: `object[]` - - label: `string` - - accountRole?: `string` - - type?: `string` - - colour?: `number` - - hasAccount?: `boolean` diff --git a/pages/ox_core/Functions/Server/CreateVehicle.mdx b/pages/ox_core/Functions/Server/CreateVehicle.mdx deleted file mode 100644 index eff138e62..000000000 --- a/pages/ox_core/Functions/Server/CreateVehicle.mdx +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: CreateVehicle ---- - -## Ox.CreateVehicle - -Creates a new vehicle, which will be saved to the database if it has an assigned owner or group. - -```lua -Ox.CreateVehicle(data, coords, heading) -``` - -**Parameters** - -- data: `string` | `object` - - model: `string` - - owner?: `number` - - group?: `string` - - stored?: `string` - - properties?: `object` -- coords?: `vector3` -- heading?: `number` - -**Returns** - -- `OxVehicle` diff --git a/pages/ox_core/Functions/Server/DeleteAccountInvoice.mdx b/pages/ox_core/Functions/Server/DeleteAccountInvoice.mdx deleted file mode 100644 index ae3d5b565..000000000 --- a/pages/ox_core/Functions/Server/DeleteAccountInvoice.mdx +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: DeleteAccountInvoice ---- - -## Ox.DeleteAccountInvoice - -Deletes the account invoice with the given invoiceId. - -```lua -Ox.DeleteAccountInvoice(invoiceId) -``` - -**Parameters** - -- invoiceId: `number` - -**Returns** - -- `object` - - success: `boolean` - - message?: `string` diff --git a/pages/ox_core/Functions/Server/DeleteGroup.mdx b/pages/ox_core/Functions/Server/DeleteGroup.mdx deleted file mode 100644 index 917c7fcb3..000000000 --- a/pages/ox_core/Functions/Server/DeleteGroup.mdx +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: DeleteGroup ---- - -## Ox.DeleteGroup - -Deletes all data associated with the given group name, such as group grades, vehicles, etc. - -```lua -Ox.DeleteGroup(groupName) -``` - -**Parameters** - -- groupName: `string` diff --git a/pages/ox_core/Functions/Server/GenerateVehiclePlate.mdx b/pages/ox_core/Functions/Server/GenerateVehiclePlate.mdx deleted file mode 100644 index 17355d11c..000000000 --- a/pages/ox_core/Functions/Server/GenerateVehiclePlate.mdx +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: GenerateVehiclePlate ---- - -## Ox.GenerateVehiclePlate - -Generate a unique vehicle plate that doesn't exist in database. - -```lua -Ox.GenerateVehiclePlate() -``` - -**Returns** - -- `string` diff --git a/pages/ox_core/Functions/Server/GenerateVehicleVin.mdx b/pages/ox_core/Functions/Server/GenerateVehicleVin.mdx deleted file mode 100644 index 369a28d34..000000000 --- a/pages/ox_core/Functions/Server/GenerateVehicleVin.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: GenerateVehicleVin ---- - -## Ox.GenerateVehicleVin - -Generate a unique vehicle identification number that doesn't exist in database. - -```lua -Ox.GenerateVehicleVin(modelName) -``` - -**Parameters** - -- modelName: `string` - - Vehicle information (i.e. model and make) are used as part of the VIN. - -**Returns** - -- `string` diff --git a/pages/ox_core/Functions/Server/GetAccount.mdx b/pages/ox_core/Functions/Server/GetAccount.mdx deleted file mode 100644 index 97c0d272e..000000000 --- a/pages/ox_core/Functions/Server/GetAccount.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetAccount ---- - -## Ox.GetAccount - -Get the `OxAccount` with the given accountId. - -```lua -Ox.GetAccount(accountId) -``` - -**Parameters** - -- accountId: `number` - -**Returns** - -- `OxAccount` diff --git a/pages/ox_core/Functions/Server/GetCharIdFromStateId.mdx b/pages/ox_core/Functions/Server/GetCharIdFromStateId.mdx deleted file mode 100644 index 7c2460185..000000000 --- a/pages/ox_core/Functions/Server/GetCharIdFromStateId.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: GetCharIdFromStateId ---- - -## Ox.GetCharIdFromStateId - -Get a character's charId from their stateId. -_Note: This queries the database and shouldn't be used excessively_ - -```lua -Ox.GetCharIdFromStateId(stateId) -``` - -**Parameters** - -- stateId: `string` - -**Returns** - -- `number` diff --git a/pages/ox_core/Functions/Server/GetCharacterAccount.mdx b/pages/ox_core/Functions/Server/GetCharacterAccount.mdx deleted file mode 100644 index 5319c9a1f..000000000 --- a/pages/ox_core/Functions/Server/GetCharacterAccount.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetCharacterAccount ---- - -## Ox.GetCharacterAccount - -Get the default `OxAccount` for a character by their charId or stateId. - -```lua -Ox.GetCharacterAccount(id) -``` - -**Parameters** - -- id: `number` | `string` - -**Returns** - -- `OxAccount` diff --git a/pages/ox_core/Functions/Server/GetGroupAccount.mdx b/pages/ox_core/Functions/Server/GetGroupAccount.mdx deleted file mode 100644 index b1227fbcf..000000000 --- a/pages/ox_core/Functions/Server/GetGroupAccount.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetGroupAccount ---- - -## Ox.GetGroupAccount - -Get the `OxAccount` for a group. - -```lua -Ox.GetGroupAccount(groupName) -``` - -**Parameters** - -- groupName: `string` - -**Returns** - -- `OxAccount` diff --git a/pages/ox_core/Functions/Server/GetGroupsByType.mdx b/pages/ox_core/Functions/Server/GetGroupsByType.mdx deleted file mode 100644 index bdabb8e66..000000000 --- a/pages/ox_core/Functions/Server/GetGroupsByType.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetGroupsByType ---- - -## Ox.GetGroupsByType - -Returns an array of group names which have the given group type. - -```lua -Ox.GetGroupsByType(groupType) -``` - -**Parameters** - -- groupType: `string` - -**Returns** - -- `string[]` diff --git a/pages/ox_core/Functions/Server/GetPlayer.mdx b/pages/ox_core/Functions/Server/GetPlayer.mdx deleted file mode 100644 index 640c2a89c..000000000 --- a/pages/ox_core/Functions/Server/GetPlayer.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetPlayer ---- - -## Ox.GetPlayer - -Get an `OxPlayer` from its enity id. - -```lua -Ox.GetPlayer(entityId) -``` - -**Parameters** - -- userId: `number` - -**Returns** - -- `OxPlayer` diff --git a/pages/ox_core/Functions/Server/GetPlayerFromFilter.mdx b/pages/ox_core/Functions/Server/GetPlayerFromFilter.mdx deleted file mode 100644 index bf5cce1cc..000000000 --- a/pages/ox_core/Functions/Server/GetPlayerFromFilter.mdx +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: GetPlayerFromFilter ---- - -## Ox.GetPlayerFromFilter - -Get the first `OxPlayer` matching a filter. - -```lua -Ox.GetPlayerFromFilter(filter) -``` - -**Parameters** - -- filter?: `{ [string]: any }` - - Compare player fields and metadata against the given key-value pairs. - - Groups can be given as a string or array of strings to match. - -**Returns** - -- `OxPlayer` diff --git a/pages/ox_core/Functions/Server/GetPlayerFromUserId.mdx b/pages/ox_core/Functions/Server/GetPlayerFromUserId.mdx deleted file mode 100644 index cd396e58d..000000000 --- a/pages/ox_core/Functions/Server/GetPlayerFromUserId.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetPlayerFromUserId ---- - -## Ox.GetPlayerFromUserId - -Get an `OxPlayer` from its user id. - -```lua -Ox.GetPlayerFromUserId(userId) -``` - -**Parameters** - -- userId: `number` - -**Returns** - -- `OxPlayer` diff --git a/pages/ox_core/Functions/Server/GetPlayers.mdx b/pages/ox_core/Functions/Server/GetPlayers.mdx deleted file mode 100644 index 1d459dbef..000000000 --- a/pages/ox_core/Functions/Server/GetPlayers.mdx +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: GetPlayers ---- - -## Ox.GetPlayers - -Get an array of containing `OxPlayer` for all players matching a filter, if given. - -```lua -Ox.GetPlayers(filter) -``` - -**Parameters** - -- filter?: `{ [string]: any }` - - Compare player fields and metadata against the given key-value pairs. - - Groups can be given as a string or array of strings to match. - -**Returns** - -- `OxPlayer[]` diff --git a/pages/ox_core/Functions/Server/GetVehicle.mdx b/pages/ox_core/Functions/Server/GetVehicle.mdx deleted file mode 100644 index 18136e31d..000000000 --- a/pages/ox_core/Functions/Server/GetVehicle.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetVehicle ---- - -## Ox.GetVehicle - -Get an `OxVehicle` from its entity id. - -```lua -Ox.GetVehicle(entityId) -``` - -**Parameters** - -- entityId: `number` - -**Returns** - -- `OxVehicle` diff --git a/pages/ox_core/Functions/Server/GetVehicleFromNetId.mdx b/pages/ox_core/Functions/Server/GetVehicleFromNetId.mdx deleted file mode 100644 index 1e4310661..000000000 --- a/pages/ox_core/Functions/Server/GetVehicleFromNetId.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetVehicleFromNetId ---- - -## Ox.GetVehicleFromNetId - -Get an `OxVehicle` from its network id. - -```lua -Ox.GetVehicleFromNetId(netId) -``` - -**Parameters** - -- netId: `number` - -**Returns** - -- `OxVehicle` diff --git a/pages/ox_core/Functions/Server/GetVehicleFromVin.mdx b/pages/ox_core/Functions/Server/GetVehicleFromVin.mdx deleted file mode 100644 index b34b61af3..000000000 --- a/pages/ox_core/Functions/Server/GetVehicleFromVin.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: GetVehicleFromVin ---- - -## Ox.GetVehicleFromVin - -Get an `OxVehicle` from its VIN. - -```lua -Ox.GetVehicleFromVin(vin) -``` - -**Parameters** - -- vin: `string` - -**Returns** - -- `OxVehicle` diff --git a/pages/ox_core/Functions/Server/RemoveGroupPermission.mdx b/pages/ox_core/Functions/Server/RemoveGroupPermission.mdx deleted file mode 100644 index 1f63a35ad..000000000 --- a/pages/ox_core/Functions/Server/RemoveGroupPermission.mdx +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: RemoveGroupPermission ---- - -## Ox.RemoveGroupPermission - -Removes a permission from a specified group and minimum grade. - -```lua -Ox.RemoveGroupPermission(groupName, grade, permission) -``` - -**Parameters** - -- groupName: `string` -- grade: `number` -- permission: `string` diff --git a/pages/ox_core/Functions/Server/SaveAllPlayers.mdx b/pages/ox_core/Functions/Server/SaveAllPlayers.mdx deleted file mode 100644 index 7e8a11644..000000000 --- a/pages/ox_core/Functions/Server/SaveAllPlayers.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: SaveAllPlayers ---- - -## Ox.SaveAllPlayers - -Save all players to the database. - -```lua -Ox.SaveAllPlayers() -``` diff --git a/pages/ox_core/Functions/Server/SaveAllVehicles.mdx b/pages/ox_core/Functions/Server/SaveAllVehicles.mdx deleted file mode 100644 index bff5d05b0..000000000 --- a/pages/ox_core/Functions/Server/SaveAllVehicles.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: SaveAllVehicles ---- - -## Ox.SaveAllVehicles - -Save all vehicles to the database. - -```lua -Ox.SaveAllVehicles() -``` diff --git a/pages/ox_core/Functions/Server/SetGroupPermission.mdx b/pages/ox_core/Functions/Server/SetGroupPermission.mdx deleted file mode 100644 index 9060cf55d..000000000 --- a/pages/ox_core/Functions/Server/SetGroupPermission.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: SetGroupPermission ---- - -## Ox.SetGroupPermission - -Assigns a permission to a specified group and minimum grade, which will be inherited by higher grades. - -```lua -Ox.SetGroupPermission(groupName, grade, permission, value) -``` - -**Parameters** - -- groupName: `string` -- grade: `number` -- permission: `string` -- value: `allow` | `deny` diff --git a/pages/ox_core/Functions/Server/SpawnVehicle.mdx b/pages/ox_core/Functions/Server/SpawnVehicle.mdx deleted file mode 100644 index 0520b0b53..000000000 --- a/pages/ox_core/Functions/Server/SpawnVehicle.mdx +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: SpawnVehicle ---- - -## Ox.SpawnVehicle - -Spawns an `OxVehicle` with the given dbId, if it hasn't already been spawned. - -```lua -Ox.SpawnVehicle(dbId, coords, heading) -``` - -**Parameters** - -- dbId: `number` -- coords: `vector3` -- heading?: `number` - -**Returns** - -- `OxVehicle` diff --git a/pages/ox_core/Functions/common.mdx b/pages/ox_core/Functions/common.mdx new file mode 100644 index 000000000..43cd92e05 --- /dev/null +++ b/pages/ox_core/Functions/common.mdx @@ -0,0 +1,67 @@ +## Ox.GetTopVehicleStats + +Returns an object containing the top vehicle stats, either overall or for a specific category (land, air, sea). + +```lua +Ox.GetTopVehicleStats(category) +``` + +**Parameters** + +- category?: `string` + +**Returns** + +- `VehicleStats` | `{ [string]: VehicleStats }` + +### VehicleStats +- `object` + - acceleration: `number` + - braking: `number` + - handling: `number` + - speed: `number` + - traction: `number` + + +## Ox.GetVehicleData + +Returns VehicleData for all vehicles, or optionally a specific model or array of models. + +```lua +Ox.GetVehicleData(filter) +``` + +**Parameters** + +- filter?: `string` | `string[]` + +**Returns** + +- `{ [string]: VehicleData }` | `VehicleData` + +### VehicleData +- `object` + - class: `VehicleClasses` + - doors: `number` + - make: `string` + - name: `string` + - price: `number` + - seats: `number` + - type: `string` + - weapons?: `true` + +## Ox.GetVehicleNetworkType + +Returns the netobj type of a vehicle model, which may differ from the vehicle type (e.g. blimp is networked as heli). + +```lua +Ox.GetVehicleNetworkType(modelName) +``` + +**Parameters** + +- modelName: `string` + +**Returns** + +- `string` diff --git a/pages/ox_core/Functions/server.mdx b/pages/ox_core/Functions/server.mdx new file mode 100644 index 000000000..becf4fa0f --- /dev/null +++ b/pages/ox_core/Functions/server.mdx @@ -0,0 +1,379 @@ +## Ox.CreateAccount + +Creates a new account for a character with the given charId or stateId. + +```lua +Ox.CreateAccount(ownerId, label) +``` + +**Parameters** + +- ownerId: `number` | `string` +- label: `string` + +**Returns** + +- `OxAccount` + +## Ox.CreateGroup + +Creates a new group from the given data, handling all database interactions internally. + +```lua +Ox.CreateGroup(data) +``` + +**Parameters** + +- data: `object` + - name: `string` + - label: `string` + - grades: `object[]` + - label: `string` + - accountRole?: `string` + - type?: `string` + - colour?: `number` + - hasAccount?: `boolean` + +## Ox.CreateVehicle + +Creates a new vehicle, which will be saved to the database if it has an assigned owner or group. + +```lua +Ox.CreateVehicle(data, coords, heading) +``` + +**Parameters** + +- data: `string` | `object` + - model: `string` + - owner?: `number` + - group?: `string` + - stored?: `string` + - properties?: `object` +- coords?: `vector3` +- heading?: `number` + +**Returns** + +- `OxVehicle` + +## Ox.DeleteAccountInvoice + +Deletes the account invoice with the given invoiceId. + +```lua +Ox.DeleteAccountInvoice(invoiceId) +``` + +**Parameters** + +- invoiceId: `number` + +**Returns** + +- `object` + - success: `boolean` + - message?: `string` + +## Ox.DeleteGroup + +Deletes all data associated with the given group name, such as group grades, vehicles, etc. + +```lua +Ox.DeleteGroup(groupName) +``` + +**Parameters** + +- groupName: `string` + + +## Ox.GenerateVehiclePlate + +Generate a unique vehicle plate that doesn't exist in database. + +```lua +Ox.GenerateVehiclePlate() +``` + +**Returns** + +- `string` + +## Ox.GenerateVehicleVin + +Generate a unique vehicle identification number that doesn't exist in database. + +```lua +Ox.GenerateVehicleVin(modelName) +``` + +**Parameters** + +- modelName: `string` + - Vehicle information (i.e. model and make) are used as part of the VIN. + +**Returns** + +- `string` + +## Ox.GetAccount + +Get the `OxAccount` with the given accountId. + +```lua +Ox.GetAccount(accountId) +``` + +**Parameters** + +- accountId: `number` + +**Returns** + +- `OxAccount` + +## Ox.GetCharacterAccount + +Get the default `OxAccount` for a character by their charId or stateId. + +```lua +Ox.GetCharacterAccount(id) +``` + +**Parameters** + +- id: `number` | `string` + +**Returns** + +- `OxAccount` + +## Ox.GetCharIdFromStateId + +Get a character's charId from their stateId. +_Note: This queries the database and shouldn't be used excessively_ + +```lua +Ox.GetCharIdFromStateId(stateId) +``` + +**Parameters** + +- stateId: `string` + +**Returns** + +- `number` + +## Ox.GetGroupAccount + +Get the `OxAccount` for a group. + +```lua +Ox.GetGroupAccount(groupName) +``` + +**Parameters** + +- groupName: `string` + +**Returns** + +- `OxAccount` + +## Ox.GetGroupsByType + +Returns an array of group names which have the given group type. + +```lua +Ox.GetGroupsByType(groupType) +``` + +**Parameters** + +- groupType: `string` + +**Returns** + +- `string[]` + +## Ox.GetPlayer + +Get an `OxPlayer` from its enity id. + +```lua +Ox.GetPlayer(entityId) +``` + +**Parameters** + +- userId: `number` + +**Returns** + +- `OxPlayer` + +## Ox.GetPlayerFromFilter + +Get the first `OxPlayer` matching a filter. + +```lua +Ox.GetPlayerFromFilter(filter) +``` + +**Parameters** + +- filter?: `{ [string]: any }` + - Compare player fields and metadata against the given key-value pairs. + - Groups can be given as a string or array of strings to match. + +**Returns** + +- `OxPlayer` + +## Ox.GetPlayerFromUserId + +Get an `OxPlayer` from its user id. + +```lua +Ox.GetPlayerFromUserId(userId) +``` + +**Parameters** + +- userId: `number` + +**Returns** + +- `OxPlayer` + +## Ox.GetPlayers + +Get an array of containing `OxPlayer` for all players matching a filter, if given. + +```lua +Ox.GetPlayers(filter) +``` + +**Parameters** + +- filter?: `{ [string]: any }` + - Compare player fields and metadata against the given key-value pairs. + - Groups can be given as a string or array of strings to match. + +**Returns** + +- `OxPlayer[]` + +## Ox.GetVehicle + +Get an `OxVehicle` from its entity id. + +```lua +Ox.GetVehicle(entityId) +``` + +**Parameters** + +- entityId: `number` + +**Returns** + +- `OxVehicle` + +## Ox.GetVehicleFromNetId + +Get an `OxVehicle` from its network id. + +```lua +Ox.GetVehicleFromNetId(netId) +``` + +**Parameters** + +- netId: `number` + +**Returns** + +- `OxVehicle` + +## Ox.GetVehicleFromVin + +Get an `OxVehicle` from its VIN. + +```lua +Ox.GetVehicleFromVin(vin) +``` + +**Parameters** + +- vin: `string` + +**Returns** + +- `OxVehicle` + +## Ox.RemoveGroupPermission + +Removes a permission from a specified group and minimum grade. + +```lua +Ox.RemoveGroupPermission(groupName, grade, permission) +``` + +**Parameters** + +- groupName: `string` +- grade: `number` +- permission: `string` + +## Ox.SaveAllPlayers + +Save all players to the database. + +```lua +Ox.SaveAllPlayers() +``` + +## Ox.SaveAllVehicles + +Save all vehicles to the database. + +```lua +Ox.SaveAllVehicles() +``` + +## Ox.SetGroupPermission + +Assigns a permission to a specified group and minimum grade, which will be inherited by higher grades. + +```lua +Ox.SetGroupPermission(groupName, grade, permission, value) +``` + +**Parameters** + +- groupName: `string` +- grade: `number` +- permission: `string` +- value: `allow` | `deny` + +## Ox.SpawnVehicle + +Spawns an `OxVehicle` with the given dbId, if it hasn't already been spawned. + +```lua +Ox.SpawnVehicle(dbId, coords, heading) +``` + +**Parameters** + +- dbId: `number` +- coords: `vector3` +- heading?: `number` + +**Returns** + +- `OxVehicle`