Example

From GT-MP
Jump to: navigation, search

This event is triggered when an example happens. (Click Edit and copy the template)

Requirements

First of all, it should be defined in your Main constructor for it to be called, otherwise it wouldn't be initiated at all!

   public Main() 
   {
      API.onExample += OnExample;
   }

Arguments

   object example, object example2
  • example: argument returns in object type.
  • example2: argument returns in object type.

Usage example(s)

This example outputs "Example" in console output when the event is triggered.

   public void OnExample(object example, object example2)
   { 
      API.consoleOutput("Example");
   }

Changelog

Version Description
1.0 Release.

References