Native referenceFiveM

GET_IS_PLAYER_DRIVING_ON_HIGHWAY

0x5FC472C501CCADB3 PLAYER
FUNCTION SIGNATURE
BOOL GET_IS_PLAYER_DRIVING_ON_HIGHWAY(Player playerId);
Property Value
Native Name GET_IS_PLAYER_DRIVING_ON_HIGHWAY
Hash 0x5FC472C501CCADB3
Return Type BOOL
Parameters playerId (Player)

Parameters

  • playerId (Player) — The local index of the player to check (see PLAYER_ID)

Examples

-- Get and store the local player index
local playerId = PlayerId()

if GetIsPlayerDrivingOnHighway(playerId) then
    print("Player is driving on a highway!")
else
    print("Player is not driving on a highway.")
end
Back to PLAYER