Installation
Last updated
Last updated
-- Blacklisting entities can just be handled entirely server side with onesync events
-- No need to run coroutines to supress or delete these when we can simply delete them before they spawn
AddEventHandler("entityCreating", function(handle)
local entityModel = GetEntityModel(handle)
if Config.BlacklistedVehs[entityModel] or Config.BlacklistedPeds[entityModel] then
if GetResourceState('ak47_qb_wanted') == 'started' then
if GlobalState.CopCount and GlobalState.CopCount > 0 then
CancelEvent()
end
else
CancelEvent()
end
end
end)