- Documentation
- Server events
- onPlayerTriggerInvalidEvent
Event
onPlayerTriggerInvalidEvent
A player triggered an event the server does not know or that does not allow client calls (addEvent(name, true)).
Handler
addEventHandler("onPlayerTriggerInvalidEvent", root, function(eventName, isAdded, isRemote) ... end)Parameters
eventNamestring- The event name.
isAddedbool- Whether the event exists.
isRemotebool- Whether it allows client calls.
Source
source is the player.
Example
addEventHandler("onPlayerTriggerInvalidEvent", root, function(name)
outputServerLog(getPlayerName(source) .. " wywołał nieznane " .. name)
end)
See also
addEventRegisters a custom event with the given name so it can be triggered (triggerEvent,triggerClientEvent,triggerServerEvent) and handled (addEventHandler). WithallowRemoteTrigger = truethe event can come from the other side of the network: on the server - from a client viatriggerServerEvent, on the client - from the server viatriggerClientEvent. Without it, events from the network are rejected, which protects the server from clients faking events.onPlayerTriggerEventThresholdA player sends too many events and actions (over 100 per second). It may be a client script bug or a flooding attempt.