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

SetEntityData

Материал из RAGE MP Wiki Archive
Версия от 19:34, 22 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Sets the given data value on the entity. This does not synchronize the data to clients. Use SetEntitySharedData if you want this value to synchronize to clients.

Syntax

<syntaxhighlight lang="C#" >void NAPI.Data.SetEntityData(Entity entity, string key, object value);</syntaxhighlight>

Required Arguments

  • entity: parameter input should be in Entity type.
  • key: parameter input should be in string type.
  • value: parameter input can be of any type.

Usage example(s)

Example Description <syntaxhighlight lang="C#"> NAPI.Data.SetEntityData(player, "Jailtime", 50); </syntaxhighlight>