mirror of
https://github.com/APercy/automobiles_pck
synced 2025-11-13 10:17:59 +01:00
added check
This commit is contained in:
parent
1accd39d73
commit
99a9d21a15
@ -85,7 +85,9 @@ function motorcycle.dettach_driver_stand(self, player)
|
||||
--automobiles_lib.remove_hud(player)
|
||||
|
||||
player:set_detach()
|
||||
player_api.player_attached[name] = nil
|
||||
if player_api.player_attached[name] then
|
||||
player_api.player_attached[name] = nil
|
||||
end
|
||||
player:set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})
|
||||
player_api.set_animation(player, "stand")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user