OnClientCoreCommand

From Multi Theft Auto: Wiki
Revision as of 13:49, 31 July 2024 by FileEX (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22649:
This event is triggered when a built-in client command is used, check Client Commands.

Parameters

string command
  • command: The command that was executed.

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


Client event functions