So on my server our cars spawn as a blocked entity and that makes it admin´s can´t pickup the cars. We can make admins pickup blocked entity´s but then they would be able to pickup doors and windows and we don´t want that. So does anyone know how we make it spawn in a world entity so we can make admins pick them up?. We are using the TCB car dealer.
local function PhysgunPickup(ply, ent) --If the player is an admin, and the entity is a door or a player, if ply:IsAdmin() and (ent:GetClass():lower() == "func_door" or ent:GetClass():lower() == "player") then return false -- Deny pickup elseif ply:IsSuperAdmin() then return true end end hook.Add("PhysgunPickup", "Physgun.Deny", PhysgunPickup)