GE Lua Documentation

Press F to search!

vehicleActiveChanged

Definition


-- @/lua/ge/main.lua:734

-- Callback when vehicles are activated or deactivated (e.g. by the traffic pooling system)
-- This is unrelated to tabbing into other cars (that would be the vehicleSwitched() function)
function vehicleActiveChanged(vehicleID, active)
  extensions.hook('onVehicleActiveChanged', vehicleID, active)
end

Callers