I would like to allow any user access to the /skin command that is included with the esx_skin script. I’m sort of new to the permissions and how to allow people access to certain commands without elevated perms.
-Thanks in advance!
I would like to allow any user access to the /skin command that is included with the esx_skin script. I’m sort of new to the permissions and how to allow people access to certain commands without elevated perms.
-Thanks in advance!
Hi !!!
Replace command “skin” from esx_skin/server/server.lua,
to :
RegisterCommand(‘skin’, function(source, args, rawCommand)
TriggerClientEvent('esx_skin:openSaveableMenu', source)
end, false)
I recommend to read this :
https://docs.fivem.net/docs/scripting-manual/migrating-from-deprecated/creating-commands/
Good Luck
es:addGroupCommand
'admin'
with 'user'
There are 2 occurrences:
TriggerEvent('es:addGroupCommand', 'skin', 'admin', function(source, args, user)
TriggerEvent('es:addGroupCommand', 'skinsave', 'admin', function(source, args, user)
The other responder answered it for you, and they are right that you should replace those horrible chat commands and essentialmode group commands with the RegisterCommand native function, but given that you are asking this question, that’s probably outside your skillset. And they didn’t format the code very well with markdown to make it more readable for you. So hopefully my response makes it clear what to do. But their answer is in fact another way that you can achieve it, if you’re up for editing the code a bit more than 2 words.
I actually managed this own my own after finding where the command line ran through and did just that, but I appreciate the info anyways man.