setMobilePhoneScale

SET_MOBILE_PHONE_SCALE0xCBDD322A73D6D932

The 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.

SignatureJavaScript
setMobilePhoneScale(scale: number): void
SignatureLua
setMobilePhoneScale(scale: number)

Usage

JavaScript
setMobilePhoneScale(scale);
Lua
setMobilePhoneScale(scale)

Parameters

ParameterTypeJavaScriptLua
scalefloatnumbernumber

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

Open in the interactive natives reference