CommandEngine is plugin for BeamMP.
Plugin for handle commands from client chat or server console.
Wiki
Installation
Copy CommandEngine dir to Resources/Server/
Add command to engine
-- Plugin body functiononInit()-- Plugin init then-- Firstly: Wait to mod initializationlog("Wait CommandEngine init..")localisCommandEngineReady=falsewhilenotisCommandEngineReadydolocalFuture=MP.TriggerGlobalEvent("CE_isReady")whilenotFuture:IsDone()doMP.Sleep(100)endlocalresult=Future:GetResults()ifresult[1]==truethenisCommandEngineReady=trueendend-- Secondary: Register commands MP.TriggerGlobalEvent("CE_addCommand",{ban={"banUser","a",{"ban <name> [reason]","Ban user."}},unban={"unbanUser","a",{"unban <name>","Unban user."}},banlist={"seeBanList","a","See ban list on server."}})end