From a6390d1038a4cd9f93cfa136ba8e0fdf253dd028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20N=27gadi?= Date: Thu, 31 Aug 2017 09:51:01 +0200 Subject: [PATCH] Fix revive --- client/main.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 3424420f..0f85f2d1 100644 --- a/client/main.lua +++ b/client/main.lua @@ -665,7 +665,12 @@ AddEventHandler('esx_ambulancejob:revive', function() Citizen.Wait(0) end - ESX.SetPlayerData('lastPosition', Config.Zones.HospitalInteriorInside1.Pos) + ESX.SetPlayerData('lastPosition', { + x = coords.x, + y = coords.y, + z = coords.z + ) + TriggerServerEvent('esx:updateLastPosition', { x = coords.x, y = coords.y,