mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 23:16:03 +01:00
feat(vehicleProperties): add statebag handler and server setter
This commit is contained in:
6
resource/vehicleProperties/server.lua
Normal file
6
resource/vehicleProperties/server.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
---@param vehicle number
|
||||
---@param props VehicleProperties
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
function lib.setVehicleProperties(vehicle, props)
|
||||
Entity(vehicle).state:set('ox_lib:setVehicleProperties', props, true)
|
||||
end
|
||||
Reference in New Issue
Block a user