createMobilePhone
CREATE_MOBILE_PHONE0xA4E8E696C532FBC7The 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.
createMobilePhone(phoneType: number): voidcreateMobilePhone(phoneType: integer)Usage
JavaScript
createMobilePhone(phoneType);Lua
createMobilePhone(phoneType)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
phoneType | int | number | integer |
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