1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

fix: resolve issue preventing players from sitting in seats

This commit is contained in:
HellReach
2025-12-06 16:43:18 +03:00
parent 1edaa31051
commit cee0fa22b1

View File

@@ -1194,7 +1194,7 @@ function ENT:CreateSeatEntity(seat_info)
self:DrawShadow(false)
--Assign ownership
if IsValid(self:GetPlayer()) then seat:SetOwner(self:GetPlayer()) end
if IsValid(self:GetPlayer()) then seat:SetCreator(self:GetPlayer()) end
if CPPI and IsValid(self:CPPIGetOwner()) then seat:CPPISetOwner(self:CPPIGetOwner()) end
-- Hide the entity visually