General > Developers Corner
ULX Custom Command
(1/1)
DeadVCR:
CATEGORY_NAME = "Emotes"
function ulx.emotes(ply)
ply:RunConsoleCommand(+AudioEmotePanel_Show)
end
local emote = ulx.command( CATEGORY_NAME, "ulx emotes", ulx.emotes", "!emotes" )
emote:defaultAccess( Ulib.ACCESS_ALL )
emote:help( "Emote list." )
So I have that in the ULX Modules folder in my server, but when run the command in game nothing happens.
I know +AudioEmotePanel_Show works because I have it bound to a key.
Any ideas?
iViscosity:
First: wrong section, and second: check the difference between RunConsoleCommand and Player:ConCommand
DeadVCR:
--- Quote from: iViscosity on February 09, 2017, 03:49:28 PM ---First: wrong section, and second: check the difference between RunConsoleCommand and Player:ConCommand
--- End quote ---
Oh shoot I'm so sorry...
And thanks :)
DeadVCR:
--- Quote from: iViscosity on February 09, 2017, 03:49:28 PM ---First: wrong section, and second: check the difference between RunConsoleCommand and Player:ConCommand
--- End quote ---
Hey, thank you SO much for the help. It worked!
Navigation
[0] Message Index
Go to full version