PlayerClient

isPlayerFreeForAmbientTask

IS_PLAYER_FREE_FOR_AMBIENT_TASK0xDCCFD3F106C36AB4

The 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.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Player PLAYER
In the game
BOOL IS_PLAYER_FREE_FOR_AMBIENT_TASK(Player player)
Hash
0xDCCFD3F106C36AB4

Open in the interactive natives reference