About
Ace Whitelist is a Ace permission based whitelist script for your server. I have seen some inside bigger resources like vBasic made by @Vespura . This script is just a standalone. It’s extremely basic but should serve helpful.
Why are you setting the game type every time any resource starts…? Seems really inefficient to me considering a lot of servers use > 150 resources…
-- Main Code
AddEventHandler('onResourceStart', function()
Citizen.Wait(150)
SetGameType(gametypemsg)
end)
You probably want to make sure this only happens whenever the current resource gets started.
-- Main Code
AddEventHandler('onResourceStart', function(resourceName)
if resourceName == GetCurrentResourceName() then
Citizen.Wait(150)
SetGameType(gametypemsg)
end
end)
Just increase the delay if you want to make sure this gets called after all resources have started, or use another delayed event. Which I’d have to look up to see which one that is.