forked from Simnation/Main
24 lines
696 B
Lua
24 lines
696 B
Lua
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
|