createMobilePhone

CREATE_MOBILE_PHONE0xA4E8E696C532FBC7

The GTA V native CREATE_MOBILE_PHONE of the MOBILE namespace, as LS:MP client scripts call it: the global function createMobilePhone, in JavaScript and in Lua.

SignatureJavaScript
createMobilePhone(phoneType: number): void
SignatureLua
createMobilePhone(phoneType: integer)

Usage

JavaScript
createMobilePhone(phoneType);
Lua
createMobilePhone(phoneType)

Parameters

ParameterTypeJavaScriptLua
phoneTypeintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Creates a mobile phone of the specified type.

Possible phone types:

0 - Default phone / Michael's phone
1 - Trevor's phone
2 - Franklin's phone
3 - Unused police phone
4 - Prologue phone

Higher values may crash your game.

Reference

Namespace
Mobile phone MOBILE
In the game
void CREATE_MOBILE_PHONE(int phoneType)
Hash
0xA4E8E696C532FBC7

Open in the interactive natives reference