mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-24 04:18:34 +00:00
feat(client): new update character event
This commit is contained in:
1 parent
4d71e3ed71
commit
28761103b3
1 file changed
+5
@@ -73,6 +73,11 @@ RegisterNetEvent("ND:setCharacter", function(character)
|
|||||||
NDCore.SelectedCharacter = character
|
NDCore.SelectedCharacter = character
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- Update main character info.
|
||||||
|
RegisterNetEvent("ND:updateCharacter", function(character)
|
||||||
|
NDCore.SelectedCharacter = character
|
||||||
|
end)
|
||||||
|
|
||||||
-- Updates last lcoation.
|
-- Updates last lcoation.
|
||||||
RegisterNetEvent("ND:updateLastLocation", function(location)
|
RegisterNetEvent("ND:updateLastLocation", function(location)
|
||||||
NDCore.SelectedCharacter.lastLocation = location
|
NDCore.SelectedCharacter.lastLocation = location
|
||||||
|
|||||||
Reference in new issue
Block a user