fix dettach pax

master
Alexsandro Percy 2022-01-22 19:09:09 -03:00
parent be23b311e4
commit ef6ded5062
1 changed files with 6 additions and 4 deletions

View File

@ -130,10 +130,12 @@ function motorboat.dettach_pax(self, player)
self._passenger = nil
-- detach the player
player:set_detach()
player_api.player_attached[name] = nil
player:set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})
player_api.set_animation(player, "stand")
if player then
player:set_detach()
player_api.player_attached[name] = nil
player:set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})
player_api.set_animation(player, "stand")
end
end
--painting