Skip to content

execCmd

Toon edited this page Jan 5, 2026 · 3 revisions

Documentation

void execCmd(<string> cmdStr, <Player> speaker)

Description

Executes the command cmdstr from speaker's perspective. If speaker is not provided then it'll default to LocalPlayer.

Example

-- Note: This is just a snippet
["Function"] = function(args, speaker)
    execCmd("rj", speaker) -- if you ran the command yourself, then it's the same as execCmd("rj")
end

Clone this wiki locally