isPlayerFreeForAmbientTask
IS_PLAYER_FREE_FOR_AMBIENT_TASK0xDCCFD3F106C36AB4The GTA V native IS_PLAYER_FREE_FOR_AMBIENT_TASK of the PLAYER namespace, as LS:MP client scripts call it: the global function isPlayerFreeForAmbientTask, in JavaScript and in Lua.
isPlayerFreeForAmbientTask(player: Player): booleanisPlayerFreeForAmbientTask(player: Player): booleanUsage
JavaScript
const result = isPlayerFreeForAmbientTask(player);Lua
local result = isPlayerFreeForAmbientTask(player)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Player PLAYER
- In the game
BOOL IS_PLAYER_FREE_FOR_AMBIENT_TASK(Player player)- Hash
0xDCCFD3F106C36AB4