GetAllEntityData

From GT-MP
Jump to: navigation, search
GetAllEntityData
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

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


Syntax

API.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)

var keys = API.getAllEntityData(NetHandle entity);
foreach (var key in keys) {
  API.consoleOutput("\"{0}\": \"{1}\"", key, API.getEntityData(key));
}

References