feat(client): new update character event

This commit is contained in:
Andyyy7666
2022-09-19 20:17:39 +02:00
committed by GitHub
parent 4d71e3ed71
commit 28761103b3

View File

@@ -73,6 +73,11 @@ RegisterNetEvent("ND:setCharacter", function(character)
NDCore.SelectedCharacter = character
end)
-- Update main character info.
RegisterNetEvent("ND:updateCharacter", function(character)
NDCore.SelectedCharacter = character
end)
-- Updates last lcoation.
RegisterNetEvent("ND:updateLastLocation", function(location)
NDCore.SelectedCharacter.lastLocation = location