SetEntityData: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "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== <...")
 
m (Xabi moved page NAPI.Data.SetEntityData to SetEntityData)
(No difference)

Revision as of 13:13, 27 November 2019

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

void NAPI.Data.SetEntityData(NetHandle entity, string key, object value);

Required Arguments

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

Usage example(s)

Example Description

NAPI.Data.SetEntityData(player, "Jailtime", 50);