This commit is contained in:
Xerasin 2022-05-15 10:52:37 -07:00
parent 66eabac7d6
commit 68f8e1d8b2

View File

@ -611,16 +611,12 @@ hook.Add("PlayerLeaveVehicle", TAG .. "PlayerLeaveVehicle", function(ply, seat)
if not IsValid(seat) or not IsValid(ply) then return end
if not seat.playerdynseat then return end
NextUse[ply] = CurTime() + 1
local oldpos = seat:LocalToWorld(seat.oldpos)
ply:SetPos(oldpos)
if ply.UnStuck then
ply:UnStuck()
end
for _, v in next, seat:GetChildren() do
if IsValid(v) and v.playerdynseat and IsValid(v.sittingPly) then
v.sittingPly:ExitVehicle()