Your instruction are not very clear. I have tried modifying a simple vehicle blacklist script to use these perms but i get an IsPlayerAceAllowed error in the server console.
Here is the script.
if (IsDuplicityVersion()) then
RegisterServerEvent("blacklist.checkForAdminPermissions")
AddEventHandler('blacklist.checkForAdminPermissions', function()
if IsPlayerAceAllowed(player, "administrator") then
TriggerClientEvent("blacklist.setAdminPermissions", source, true)
end
end
end)
cfx> InvokeNative: execution failed: Argument at index 0 was null.
Error running system event handling function for resource blacklist: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: Execution of native 00000000dedae23d in script host failed.
stack traceback:
[C]: in upvalue '_in'
citizen:/scripting/lua/natives_server.lua:264: in function 'IsPlayerAceAllowed'
script.lua:4: in upvalue 'handler'
citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
citizen:/scripting/lua/scheduler.lua:218: in function <citizen:/scripting/lua/scheduler.lua:182>
what, no? If you want to use this resource, at least know what youre doing, im not going to assist in simple coding things like this, you should research this type of thing yourself.
How do i add more than one role. Cause right now i can only use members and when i try adding another one it wont work. Can someone please send me a screen shot or something!
Im getting this in my console: An error occured, please check your config and ensure everything is correct. Error: <ācodeā: 50001, āmessageā: āMissing Accessā>. Any Ideas?