TasksClient

taskUseMobilePhoneTimed

TASK_USE_MOBILE_PHONE_TIMED0x5EE02954A14C69DB

The GTA V native TASK_USE_MOBILE_PHONE_TIMED of the TASK namespace, as LS:MP client scripts call it: the global function taskUseMobilePhoneTimed, in JavaScript and in Lua.

SignatureJavaScript
taskUseMobilePhoneTimed(ped: Ped, duration: number): void
SignatureLua
taskUseMobilePhoneTimed(ped: Ped, duration: integer)

Usage

JavaScript
taskUseMobilePhoneTimed(ped, duration);
Lua
taskUseMobilePhoneTimed(ped, duration)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
durationintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_USE_MOBILE_PHONE_TIMED(Ped ped, int duration)
Hash
0x5EE02954A14C69DB

Open in the interactive natives reference