General > Developers Corner

Ulx Custom Command for user groups

(1/2) > >>

proxzei:
Does anyone know hot to make a ulx command where by typing !vip a user would be added to that group. Just !vip though.

JamminR:
Yes.
Many here know how.
What particular challenge are you having with it?

proxzei:
Uh, I don't know how to do it at all and would like the code if thats possible.

Caustic Soda-Senpai:
it's basically a shortened version of ulx adduser.

so you basically want to write the command that gets called on !vip which runs the function to add the calling player to "vip".

RunConsoleCommand("ulx","adduser",calling_ply,"vip")

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version