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

GetAllEntityData

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

Gets all keys set in the server's entity data, set with SetEntityData.

Syntax

<syntaxhighlight lang="C#" >string[] NAPI.Data.GetAllEntityData(Entity entity);</syntaxhighlight>

Required Arguments

  • entity: parameter input should be in Entity type.

NOTE: This function returns an array of string[] type.

Usage example(s)

<syntaxhighlight lang="C#"> string[] keys = NAPI.Data.GetAllEntityData(entity); foreach (string key in keys) {

 NAPI.Util.ConsoleOutput("\"{0}\": \"{1}\"", key, NAPI.Data.GetEntityData(entity, key));

} </syntaxhighlight>