EntityDataChangeByKey

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Client-Side
Event

C.png C#




C# Syntax
C.png

public delegate void OnEntityDataChangeByKey(ulong key, Entity entity, object arg);

Parameters

  • key: key, expects System.UInt64 type.
  • entity: entity, expects RAGE.Elements.Entity type.
  • arg: arg, expects System.Object type.

Example

The example below shows up a message for a player with the key.

Events.EnableKeyDataChangeEvent = true;
Events.OnEntityDataChangeByKey += OnEntityDataChangeByKey;
public void OnEntityDataChangeByKey(ulong key, RAGE.Elements.Entity entity, object arg)
{
    RAGE.Chat.Output($"{key}");
}


See also