Update Client.md

This commit is contained in:
Katoteki authored and GitHub committed 2022-07-28 23:43:36 +02:00
1 parent d21e19e9a3
commit 50ec7b2762
1 file changed
+2 -2
+2 -2
View File
@@ -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)
``` ```