EventTriggeredByKey

From RAGE Multiplayer Wiki

Client-Side
Event

 C#




C# Syntax

public delegate void OnEventTriggeredByKeyDelegate(ulong key, object[] args, CancelEventArgs cancel);

Parameters

  • key - expects System.UInt64
  • args - expects System.Object Array
  • cancel - expects RAGE.Events.CancelEventArgs

Example

The example below does nothing on invoke of event

Events.EnableKeyRemoteEvent = true;
Events.OnEventTriggeredByKey += OnEventTriggeredByKey;
public void OnEventTriggeredByKey(ulong key, object[] args, RAGE.Events.CancelEventArgs cancel)
{
    //do something epic
}