RAGE.Events.Add

From RAGE Multiplayer Wiki
Revision as of 00:49, 27 March 2019 by Crossy1998 (talk | contribs) (RAGE.Events.Add Function)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example

C# Syntax

Parameters

  • text:: String text

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!");
}