Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify es:addGroupCommand in es:addCommand for admin and superadmin #2

Open
Slewog opened this issue Jan 26, 2019 · 1 comment
Open

Comments

@Slewog
Copy link

Slewog commented Jan 26, 2019

Hi dude, first of all thank you for your scripts.
I noticed that all the players being outside the group 'USER' so the 'ADMIN' and 'SUPERADMIN' could not use the command and I took the liberter to modify the function which adds the command of :

--old command /givecarkeys
TriggerEvent('es:addGroupCommand', 'givecarkeys', 'user' , function(source, args, user)
TriggerClientEvent('esx_darcoche:Dar', source)
end, function(source, args, user)
TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'ERROR - Regardez codeina.pro pour plus d information.' } })
end)

to this so that the group 'admin' and 'superadmin' can use the command too :

--new command /givecarkeys
TriggerEvent('es:addCommand', 'givecarkeys', function(source, args, user)
TriggerClientEvent('esx_darcoche:Dar', source)
end

Here I do not know if you intend to change your rating but those who want to do it themselves have the code at least

@c0deina
Copy link
Owner

c0deina commented Mar 20, 2019

All the other groups worked for me, on my end at least.
But yeah, thanks for your contribution, hope people know how to change them haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants