diff --git a/qbx_entitiesblacklist/server.lua b/qbx_entitiesblacklist/server.lua index b64f11e..51772ac 100644 --- a/qbx_entitiesblacklist/server.lua +++ b/qbx_entitiesblacklist/server.lua @@ -2,7 +2,7 @@ local config = require 'qbx_entitiesblacklist.config' local bucketLockDownMode = GetConvar('qbx:bucketlockdownmode', 'relaxed') -- If you want to blacklist peds and vehicles from certaiin locations utilize Car gens ymaps as done in streams/car_gen_disablers, as entityCreating handler is very expensive compared to ymap. -if bucketLockDownMode == 'inactive' or #config.blacklisted == 0 then return end +if bucketLockDownMode == 'inactive' or table.type(config.blacklisted) == 'empty' then return end -- 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