setMobilePhoneScale
SET_MOBILE_PHONE_SCALE0xCBDD322A73D6D932The GTA V native SET_MOBILE_PHONE_SCALE of the MOBILE namespace, as LS:MP client scripts call it: the global function setMobilePhoneScale, in JavaScript and in Lua.
setMobilePhoneScale(scale: number): voidsetMobilePhoneScale(scale: number)Usage
JavaScript
setMobilePhoneScale(scale);Lua
setMobilePhoneScale(scale)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scale | float | number | number |
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.
The minimum/default is 500.0f. If you plan to make it bigger set it's position as well. Also this seems to need to be called in a loop as when you close the phone the scale is reset. If not in a loop you'd need to call it everytime before you re-open the phone.
Reference
- Namespace
- Mobile phone MOBILE
- In the game
void SET_MOBILE_PHONE_SCALE(float scale)- Hash
0xCBDD322A73D6D932