onClientCoreCommand
Client-side
Server-side
Shared
This event is triggered when a built-in client command is used, check Client Commands.
Parameters
string command
- command: The command that was executed.
Source
element: The source of this event is the localPlayer player element.
Code Examples
client
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 Events
- onClientChatMessage
- onClientConsole
- onClientCoreCommand
- onClientDebugMessage
- onClientExplosion
- onClientFileDownloadComplete
- onClientHUDRender
- onClientMTAFocusChange
- onClientMinimize
- onClientPedsProcessed
- onClientPlayerNetworkStatus
- onClientPreRender
- onClientRender
- onClientRestore
- onClientTransferBoxProgressChange
- onClientTransferBoxVisibilityChange
- onClientWorldSound