PlayerClient

getIsPlayerDrivingOnHighway

GET_IS_PLAYER_DRIVING_ON_HIGHWAY0x5FC472C501CCADB3

The GTA V native GET_IS_PLAYER_DRIVING_ON_HIGHWAY of the PLAYER namespace, as LS:MP client scripts call it: the global function getIsPlayerDrivingOnHighway, in JavaScript and in Lua.

SignatureJavaScript
getIsPlayerDrivingOnHighway(player: Player): boolean
SignatureLua
getIsPlayerDrivingOnHighway(player: Player): boolean

Usage

JavaScript
const result = getIsPlayerDrivingOnHighway(player);
Lua
local result = getIsPlayerDrivingOnHighway(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Appears once in "re_dealgonewrong"

Reference

Namespace
Player PLAYER
In the game
BOOL GET_IS_PLAYER_DRIVING_ON_HIGHWAY(Player player)
Hash
0x5FC472C501CCADB3

Open in the interactive natives reference