Oh man this is tricky. I'm not familiar enough with lua and the syntax of ulx/ulib to be able to figure this out on my own. I'm doing some research, but it looks like nobody has done this before the way I'm doing it. I keep getting this message: "You do not have access to this command"
This is the line I'm currently trying to use:
ULib.addSayCommand( "!playermodel", function(ply, func, args) ply:ConCommand("playermodel_selector") end, "" )
pls halp
EDIT: Now I'm trying to use this:
ULib.addSayCommand( { "!playermodel", "!model" }, function(ply, func, args) ply:ConCommand("playermodel_selector") end, "" )
and I'm getting this error:
[ERROR] addons/aliases/lua/ulib/modules/aliases.lua:1: attempt to call field 'addSayCommand' (a nil value)
1. unknown - addons/aliases/lua/ulib/modules/aliases.lua:1
2. include - [C]:-1
3. unknown - addons/ulib/lua/ulib/cl_init.lua:24
4. include - [C]:-1
5. unknown - addons/ulib/lua/autorun/ulib_init.lua:5