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