GetAllEntityData

From RAGE Multiplayer Wiki
Revision as of 01:40, 27 November 2019 by Muphy (talk | contribs) (Created page with "Gets all keys set in the server's entity data, set with SetEntityData. ==Syntax== <syntaxhighlight lang="C#" >string[] NAPI.Data.GetAllEntityData(NetHandle entity);</synt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Syntax

string[] NAPI.Data.GetAllEntityData(NetHandle entity);

Required Arguments

  • entity: parameter input should be in NetHandle type.

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

Usage example(s)

string[] keys = NAPI.Data.GetAllEntityData(entity);
foreach (string key in keys) {
  NAPI.Util.ConsoleOutput("\"{0}\": \"{1}\"", key, NAPI.Data.GetEntityData(entity, key));
}