Event system

From Multi Theft Auto: Wiki
Revision as of 11:10, 11 September 2006 by EAi (talk | contribs)
Jump to navigation Jump to search

Canceling

Events can be canceled with cancelEvent. This can have a variety of effects, but in general this means that the server will not perform whatever action it would usually do. For example, canceling onPickupUse would prevent a player being given what they tried to pick up, canceling onVehicleStartEnter would prevent the player entering the vehicle. You can check if the currently active event has been canceled using wasEventCanceled.