Class ModuleEvents.OnNuiEvent
Called when a player triggers an event in the NUI system.
public sealed class ModuleEvents.OnNuiEvent : IEvent
- Inheritance
-
ModuleEvents.OnNuiEvent
- Implements
- Inherited Members
- Extension Methods
Constructors
Properties
- ArrayIndex
Get the array index of the current event.
This can be used to get the index into an array, for example when rendering lists of buttons.
Returns -1 if the event is not originating from within an array.
- ElementId
Gets the ID of the NuiElement that triggered the event.
- EventType
Gets the type of Nui event that occurred.
- Player
Gets the player that triggered this event.
- Token
Gets the window token associated with this event.
Methods
- GetEventPayload<T>()
Gets the payload data associated with this event.