I know this seems stupid to ask but could someone show me how to make this code No Collided to players. Im not very good at making stuff like this
local entTable = { ["zfs_shop"] = true
}
hook.Add("playerBoughtCustomEntity", "SetOwnerOnEntBuy", function(ply, enttbl, ent, price)
if entTable[ent:GetClass()] then --Check table of entities
ent:CPPISetOwner(ply)
end
end)