Frameworks & intégrations
Le téléphone ne dépend d'aucun framework en particulier. Tout ce qui touche à votre serveur passe par des providers, livrés en clair dans le dossier zs-phone/bridge/.
Détection automatique
Au démarrage, le téléphone choisit seul ses providers en regardant quelles ressources tournent. Dans le cas général, vous n'avez rien à configurer.
La console affiche le résultat :
[zs-phone] framework=esx inventory=ox_inventory housing=qs-housing garage=native banking=okokBanking billing=esx_billing society=esx_society voice=pmaOrdre de détection du framework
| Priorité | Ressource présente | Provider retenu |
|---|---|---|
| 1 | core et es_extended | klmstudios |
| 2 | qbx_core | qbox |
| 3 | qb-core | qb |
| 4 | ox_core | ox |
| 5 | es_extended | esx |
| 6 | vrp | vrp2 |
| 7 | aucune | standalone |
Forcer un provider
Chaque axe est indépendant et se force dans zs-phone/config/config.lua :
Config.Phone.Framework = 'auto' -- auto | klmstudios | esx | qb | qbox | ox | vrp2 | standalone
Config.Phone.Inventory = 'auto' -- auto | ox_inventory | qb-inventory | lj-inventory | qs-inventory | codem-inventory | core_inventory | mf-inventory | false
Config.Phone.Housing = 'auto' -- auto | klmstudios | loaf_housing | qb-houses | qs-housing | vms_housing | rtx_housing | false
Config.Phone.Garage = 'auto' -- auto | klmstudios | cd_garage | jg-advancedgarages | qs-advancedgarages | loaf_garage | native
Config.Phone.Banking = 'auto' -- auto | klmstudios | esx | qb | qb-banking | Renewed-Banking | okokBanking | ox | internal
Config.Phone.Billing = 'auto' -- auto | klmstudios | esx_billing | qb | internal
Config.Phone.Society = 'auto' -- auto | klmstudios | esx_society | qb-management | internal
Config.Phone.Voice = 'auto' -- auto | pma | mumble | salty | tokoCe que chaque framework fournit
| klmstudios | esx | qb | qbox | ox | vrp2 | standalone | |
|---|---|---|---|---|---|---|---|
| Identité, nom du personnage | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Argent (Portefeuille) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ |
| Métier, grade (Services, Jobby) | ✅ | ✅ | ✅ | ✅ | ✅ | ⚠️ | ❌ |
| Véhicules (Garage) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| Propriétés (Maison) | ✅ | via housing | via housing | via housing | via housing | ❌ | ❌ |
⚠️ = partiel · ❌ = application inactive
Clé d'identité par framework
Le téléphone est rattaché à un personnage. La valeur utilisée dépend du framework :
| Framework | Clé |
|---|---|
| KLMSTUDIO, ESX | identifier |
| QBCore, Qbox | citizenid |
| ox_core | charId |
| vRP 2 | vrp_<user_id> |
| Standalone | licence FiveM |