setMobilePhoneDofState

SET_MOBILE_PHONE_DOF_STATE0x375A706A5C2FD084

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

SignatureJavaScript
setMobilePhoneDofState(toggle: boolean): void
SignatureLua
setMobilePhoneDofState(toggle: boolean)

Usage

JavaScript
setMobilePhoneDofState(toggle);
Lua
setMobilePhoneDofState(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Mobile phone MOBILE
In the game
void SET_MOBILE_PHONE_DOF_STATE(BOOL toggle)
Hash
0x375A706A5C2FD084
Introduced
Game build 372 legacy numbering
Formerly
_SET_MOBILE_PHONE_UNK

Open in the interactive natives reference