RAGE.Events.Add: Difference between revisions
Crossy1998 (talk | contribs) |
Crossy1998 (talk | contribs) |
||
| Line 10: | Line 10: | ||
public main() | public main() | ||
{ | { | ||
//Once this custom | //Once this custom event has been added you can also call it from CEF(Chromium Embedded Framework) | ||
RAGE.Events.Add("sendhelloworld", SendHelloWorld); | RAGE.Events.Add("sendhelloworld", SendHelloWorld); | ||
} | } | ||
Revision as of 00:50, 27 March 2019
Example
C# Syntax
Parameters
- args:: Object Array
Example
//Constructor
public main()
{
//Once this custom event 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!");
}