Expected Behavior
GetIsVehicleEngineRunning()
executed on the server returns the engine status of the vehicle.
Actual Behavior
GetIsVehicleEngineRunning
()` executed on the server always returns false.
Reproduction
Server-Side Command
RegisterCommand('checkVehicleEngine', function(source, _, _)
local playerPed = GetPlayerPed(source)
local vehicle = GetVehiclePedIsIn(playerPed, false)
if vehicle <= 0 then
print('No vehicle found.')
return
end
print(GetIsVehicleEngineRunning(vehicle))
end)
- Be inside of a vehicle with the engine running (can be spawned through any means.)
- Run the
/checkVehicleEngine
command. - Observe output is false.