implement nationalities system / added countries.json#1746
implement nationalities system / added countries.json#1746SNAILX808 wants to merge 11 commits intoesx-framework:devfrom
Conversation
[core]/esx_identity/client/main.lua
Outdated
|
|
||
| RegisterNUICallback("ready", function(_, cb) | ||
| ready = true | ||
| SendNUIMessage({ type = "config", data = Config }) |
There was a problem hiding this comment.
Use the
cbparam to send the data. So something likecb({ data = Config })No need to have another event sending the config, unnecessary.
Yep, that's a good idea. Thank you very much! Slipped my mind.
[core]/esx_identity/client/main.lua
Outdated
|
|
||
| RegisterNUICallback("ready", function(_, cb) | ||
| ready = true | ||
| SendNUIMessage({ type = "config", data = Config }) |
There was a problem hiding this comment.
Use the cb param to send the data. So something like cb({ data = Config }) No need to have another event sending the config, unnecessary.
feat(es_extended): add xPlayer.updatePlayerData
- setNationality func to set the nationality and used updatePlayerData to sync the nationality on the client-side - getNationality func to return nationality as string value - removed the parts that use state bag
|
|
Description
implemented nationalities system
Implementation Details
Usage Example
PR Checklist