mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
1 file changed
+2
-2
@@ -16,7 +16,7 @@ Requires the vehicle to belong to the client. _Do not use NetworkRequestControlO
|
|||||||
-- props: table
|
-- props: table
|
||||||
lib.setVehicleProperties(vehicle, props)
|
lib.setVehicleProperties(vehicle, props)
|
||||||
|
|
||||||
RegisterNetEvent('lualib:setVehicleProperties', function(netid, data)
|
RegisterNetEvent('ox_lib:setVehicleProperties', function(netid, data)
|
||||||
lib.setVehicleProperties(NetToVeh(netid), data)
|
lib.setVehicleProperties(NetToVeh(netid), data)
|
||||||
end)
|
end)
|
||||||
```
|
```
|
||||||
@@ -24,5 +24,5 @@ end)
|
|||||||
#### Recommended usage
|
#### Recommended usage
|
||||||
The server should tell the owner of the entity to set properties, using the following trigger.
|
The server should tell the owner of the entity to set properties, using the following trigger.
|
||||||
```lua
|
```lua
|
||||||
TriggerClientEvent('lualib:setVehicleProperties', entityOwner, vehNetId, data)
|
TriggerClientEvent('ox_lib:setVehicleProperties', entityOwner, vehNetId, data)
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user