mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Merge pull request #1475 from Kenshiin13/fix-actions
fix(es_extended/client/modules/actions): correctly update ped reference in TrackPed
This commit is contained in:
@@ -45,9 +45,9 @@ function Actions:TrackPed()
|
|||||||
|
|
||||||
if playerPed ~= newPed then
|
if playerPed ~= newPed then
|
||||||
ESX.PlayerData.ped = newPed
|
ESX.PlayerData.ped = newPed
|
||||||
ESX.SetPlayerData("ped", playerPed)
|
ESX.SetPlayerData("ped", newPed)
|
||||||
|
|
||||||
TriggerEvent("esx:playerPedChanged", playerPed)
|
TriggerEvent("esx:playerPedChanged", newPed)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user