mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
formatting and typos
This commit is contained in:
1 parent
75698216e0
commit
724c7e356d
99 files changed
+515
-305
No files matched your search
@@ -12,4 +12,3 @@ lib.callback.await('ox:getNearbyVehicles', playerId, radius)
|
||||
|
||||
- playerId: `number`
|
||||
- radius?: `number`
|
||||
|
||||
@@ -27,7 +27,7 @@ end
|
||||
|
||||
## Ox.CreateVehicle
|
||||
|
||||
Spawns a vehicle and returns the instance of CVehicle.
|
||||
Spawns a vehicle and returns the instance of CVehicle.
|
||||
If the first argument is a number, it will attempt to spawn a vehicle from the database with a matching id.
|
||||
|
||||
```lua
|
||||
@@ -43,8 +43,9 @@ if vehicleId then
|
||||
end
|
||||
```
|
||||
|
||||
If the first argument is a table and the owner property is a number, or nil, the vehicle will be added to the database.
|
||||
If the first argument is a table and the owner property is a number, or nil, the vehicle will be added to the database.
|
||||
Setting the owner as false creates a non-persistent vehicle.
|
||||
|
||||
```lua
|
||||
local vehicle = Ox.CreateVehicle({
|
||||
model = 'sultanrs',
|
||||
|
||||
@@ -86,7 +86,7 @@ vehicle.setGroup(group)
|
||||
|
||||
## vehicle.setPlate
|
||||
|
||||
Sets the vehicle's plate, used in the database to ensure uniqueness. Does not necessarily match the plate property (i.e. fake plates).
|
||||
Sets the vehicle's plate, used in the database to ensure uniqueness. Does not necessarily match the plate property (i.e. fake plates).
|
||||
Plate is always formatted to 8 characters.
|
||||
|
||||
```lua
|
||||
|
||||
Reference in new issue
Block a user