Main/resources/[qb]/qb-smallresources/server/entities.lua

9 lines
411 B
Lua
Raw Permalink Normal View History

2025-06-07 08:51:21 +02:00
-- 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
CancelEvent()
end
end)