2022-10-04 00:31:22 +02:00
|
|
|
RegisterNetEvent("ND:returnCharacters", function(characters)
|
|
|
|
|
NDCore.Characters = characters
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- updates the money on the client.
|
|
|
|
|
RegisterNetEvent("ND:updateMoney", function(cash, bank)
|
2023-07-10 02:40:39 +02:00
|
|
|
NDCore.SelectedCharacter.cash = cash
|
|
|
|
|
NDCore.SelectedCharacter.bank = bank
|
2022-10-04 00:31:22 +02:00
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- Sets main character.
|
|
|
|
|
RegisterNetEvent("ND:setCharacter", function(character)
|
2023-07-10 02:40:39 +02:00
|
|
|
NDCore.SelectedCharacter = character
|
2022-10-04 00:31:22 +02:00
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- Update main character info.
|
|
|
|
|
RegisterNetEvent("ND:updateCharacter", function(character)
|
2023-07-10 02:40:39 +02:00
|
|
|
NDCore.SelectedCharacter = character
|
2022-10-04 00:31:22 +02:00
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- Updates last lcoation.
|
|
|
|
|
RegisterNetEvent("ND:updateLastLocation", function(location)
|
2023-07-10 02:40:39 +02:00
|
|
|
NDCore.SelectedCharacter.lastLocation = location
|
2022-10-04 00:31:22 +02:00
|
|
|
end)
|