1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[police]/gs_deployablelight/bridge/cl_bridge.lua

25 lines
696 B
Lua
Raw Normal View History

2025-06-07 08:51:21 +02:00
Functions = {}
-- Any additional checks before a player places a light can be addded here
Functions.CanPlayerDeployLight = function(vehicle)
return true
end
-- Any additional checks before a vehicle gets a light can be addded here
Functions.CanVehicleDeployLight = function(vehicle)
return true
end
Functions.OnPlayerDeployLight = function(vehicle)
-- Do something when a player deploys a light
end
Functions.OnPlayerRemoveLight = function(vehicle)
-- Do something when a player removes a light
end
Functions.ShouldLightOnVehicleBeBroken = function(vehicle)
local engineHealth = GetVehicleEngineHealth(vehicle)
return (engineHealth < 100)
end