mirror of
https://github.com/Xerasin/Sit-Anywhere.git
synced 2025-03-04 03:13:07 -05:00
woops
This commit is contained in:
parent
66eabac7d6
commit
68f8e1d8b2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user