TasksClient

taskUseMobilePhone

TASK_USE_MOBILE_PHONE0xBD2A8EC3AF4DE7DB

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

SignatureJavaScript
taskUseMobilePhone(
  ped: Ped,
  usePhone: boolean,
  desiredPhoneMode: number
): void
SignatureLua
taskUseMobilePhone(ped: Ped, usePhone: boolean, desiredPhoneMode: integer)

Usage

JavaScript
taskUseMobilePhone(ped, usePhone, desiredPhoneMode);
Lua
taskUseMobilePhone(ped, usePhone, desiredPhoneMode)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
usePhoneBOOLbooleanboolean
desiredPhoneModeintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void TASK_USE_MOBILE_PHONE(Ped ped, BOOL usePhone, int desiredPhoneMode)
Hash
0xBD2A8EC3AF4DE7DB

Open in the interactive natives reference