GetIsVehicleEngineRunning server-side always returns false on b2545

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)
  1. Be inside of a vehicle with the engine running (can be spawned through any means.)
  2. Run the /checkVehicleEngine command.
  3. Observe output is false.

Yeah, it appears a data node changed some sizes. This’ll hopefully be fixed shortly.

2 Likes

Fixed on latest server builds. Thank you!