feat(vehicleProperties): add statebag handler and server setter

This commit is contained in:
Linden
2024-07-13 00:25:30 +10:00
parent 6ffc5afd0f
commit c45aa0d893
3 changed files with 27 additions and 9 deletions

View 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