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

Entity::getOwnVariable

Материал из RAGE MP Wiki Archive
Версия от 18:50, 29 мая 2024; imported>Shr0x (See More)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Server-Side
Function

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




Gets the value of the key set with player.setOwnVariable(key, value).

Required Params

  • *key: String

Syntax

player.getOwnVariable(key);

Example

This will set the job id for this player, which will only be available to him.

Server-Side
player.setOwnVariable("jobId", 9);


So we get the value that we set earlier.

Server-Side
player.getOwnVariable("jobId"); // 9


See More