From GT-MP
Jump to: navigation, search
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Gets entity data that was set via setEntitySyncedData.

Note that this data is in a different state than non-synced data that you set with setEntityData (which is only available for the server). To get non-synced data, use getEntityData instead.


API.getEntitySyncedData(NetHandle entity, string key);

Required Arguments

  • entity: parameter input should be in NetHandle type.
  • key: parameter input should be in string type.

NOTE: This function returns data in dynamic type.

Usage example(s)

Example Description

API.getEntitySyncedData(NetHandle entity, string key);