OnClientCoreCommand: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client event}} {{New feature/item|3.0161|1.6.0|22649| This event is triggered when a built-in client command is used, check Client Commands.}} ==Parameters== <syntaxhighlight lang="lua"> string command </syntaxhighlight> *'''command:''' The command that was executed. ==Example== This example outputs the name of the command used. <syntaxhighlight lang="lua"> addEventHandler("onClientCoreCommand", localPlayer, function(cmd) outputChatBox("Core command...") |
Fernando187 (talk | contribs) mNo edit summary |
||
Line 9: | Line 9: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''command:''' The command that was executed. | *'''command:''' The command that was executed. | ||
==Source== | |||
The source of this event is the localPlayer player element. | |||
==Example== | ==Example== |
Latest revision as of 16:13, 29 May 2025
Parameters
string command
- command: The command that was executed.
Source
The source of this event is the localPlayer player element.
Example
This example outputs the name of the command used.
addEventHandler("onClientCoreCommand", localPlayer, function(cmd) outputChatBox("Core command: "..cmd.." executed!", 255, 255, 255) end)
See Also
Other client events
- onClientChatMessage
- onClientConsole
- onClientDebugMessage
- onClientExplosion
- onClientFileDownloadComplete
- onClientHUDRender
- onClientMinimize
- onClientMTAFocusChange
- onClientPedsProcessed
- onClientPlayerNetworkStatus
- onClientPreRender
- onClientRender
- onClientRestore
- onClientTransferBoxProgressChange
- onClientTransferBoxVisibilityChange
- onClientWorldSound
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled