RAGE.Events.Add

From RAGE Multiplayer Wiki

Example

C# Syntax

Parameters

  • args:: Object Array

Example

//Constructor
public main()
{
   //Once this custom even has been added you can also call it from CEF(Chromium Embedded Framework)
   RAGE.Events.Add("sendhelloworld", SendHelloWorld);
}

public void SendHelloWorld(object[] args)
{
    Chat.Output("HELLO WORLD!");
}