I have a jailbreak server and I want to add a custom ULX command called !dance because so many people don't know about the console command "act dance" so it is just a way to help them out plus it is easier than opening console and typing act dance (I have it binded but others don't) anyway help would be appreciated
Here, I'll show you an example.
[QUOTE]
local CATEGORY_NAME = "Dance"
function ulx.actdance( calling_ply )
ULib.consoleCommand( "ulx_act_dance" .. "\n" )
ulx.fancyLogAdmin( calling_ply, "#A has started to dance." )
calling_ply:ConCommand( "act dance" )
end
local actdance = ulx.command( CATEGORY_NAME, "ulx actdance", ulx.actdance)
actdance:defaultAccess( ULib.ACCESS_ALL )
actdance:help( "Makes player dance." )
[/QUOTE]
I think this may work?
Oh woops, didn't tell you how to install.
addons > addonname > lua > ulx > modules > sh > filename.lua
I think thats how it works anyway. Correct me if I'm wrong thats from memory.
[QUOTE=QuackDuck;51690271]Here, I'll show you an example.
I think this may work?
Oh woops, didn't tell you how to install.
addons > addonname > lua > ulx > modules > sh > filename.lua
I think thats how it works anyway. Correct me if I'm wrong thats from memory.[/QUOTE]
Doesn't work, literally nothing happens. Not even errors
I think [URL="http://bfy.tw/9Zkt"]THIS[/URL] may have what you are looking for.
Sorry, you need to Log In to post a reply to this thread.