fix dettach pax
parent
be23b311e4
commit
ef6ded5062
10
init.lua
10
init.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue