Author Topic: ULX Custom Command  (Read 1819 times)

0 Members and 1 Guest are viewing this topic.

Offline DeadVCR

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
ULX Custom Command
« on: February 09, 2017, 03:47:28 PM »
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?

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ULX Custom Command
« Reply #1 on: February 09, 2017, 03:49:28 PM »
First: wrong section, and second: check the difference between RunConsoleCommand and Player:ConCommand
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline DeadVCR

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: ULX Custom Command
« Reply #2 on: February 09, 2017, 03:50:52 PM »
First: wrong section, and second: check the difference between RunConsoleCommand and Player:ConCommand

Oh shoot I'm so sorry...
And thanks :)

Offline DeadVCR

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: ULX Custom Command
« Reply #3 on: February 10, 2017, 09:08:24 AM »
First: wrong section, and second: check the difference between RunConsoleCommand and Player:ConCommand

Hey, thank you SO much for the help. It worked!