diff --git a/lua/entities/pixel_kart.lua b/lua/entities/pixel_kart.lua index 525573c..4ba10d5 100644 --- a/lua/entities/pixel_kart.lua +++ b/lua/entities/pixel_kart.lua @@ -17,6 +17,11 @@ AccessorFunc(ENT, "pPIXELKartOwner", "PIXELKartOwner") function ENT:Initialize() self:SetModel("models/freeman/vehicles/electric_go-kart.mdl") + if not PIXEL.UI then + SafeRemoveEntityDelayed(self, 0) + return + end + if CLIENT then return end local owner = self:GetPIXELKartOwner() diff --git a/lua/entities/pixel_karts_repair_wrench.lua b/lua/entities/pixel_karts_repair_wrench.lua index 7c0d53f..b5ddb85 100644 --- a/lua/entities/pixel_karts_repair_wrench.lua +++ b/lua/entities/pixel_karts_repair_wrench.lua @@ -13,6 +13,12 @@ ENT.AdminOnly = false if SERVER then function ENT:Initialize() self:SetModel("models/mark2580/gtav/garage_stuff/span_02.mdl") + + if not PIXEL.UI then + SafeRemoveEntityDelayed(self, 0) + return + end + self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS)