PedClient

isPedRunningMobilePhoneTask

IS_PED_RUNNING_MOBILE_PHONE_TASK0x2AFE52F782F25775

The GTA V native IS_PED_RUNNING_MOBILE_PHONE_TASK of the PED namespace, as LS:MP client scripts call it: the global function isPedRunningMobilePhoneTask, in JavaScript and in Lua.

SignatureJavaScript
isPedRunningMobilePhoneTask(ped: Ped): boolean
SignatureLua
isPedRunningMobilePhoneTask(ped: Ped): boolean

Usage

JavaScript
const result = isPedRunningMobilePhoneTask(ped);
Lua
local result = isPedRunningMobilePhoneTask(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_RUNNING_MOBILE_PHONE_TASK(Ped ped)
Hash
0x2AFE52F782F25775

Open in the interactive natives reference