Перейти к содержанию

Mobile::getMobilePhonePosition

Материал из RAGE MP Wiki Archive

Client-Side
Function

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения JavaScript



Returns the position of the phone created.

Syntax

mp.game.mobile.getMobilePhonePosition(position);

Required Arguments

  • position: Vector3

Return value

  • Object

Example

Client-Side
mp.keys.bind(0x77, true, function() {   // F8
    let mpos = mp.game.mobile.getMobilePhonePosition(new mp.Vector3(0,0,0));
    mp.gui.chat.push(`Mobile Pos: ${JSON.stringify(mpos)}`);
});

See also