v1.2.45 parche
Organizations can sync to QBCore and Qbox gangs, plus a cleaner update checker
3cambios

Organizations can sync to QBCore and Qbox gangs, plus a cleaner update checker
3cambios

[02] Versión
A new option creates every organization as a QBCore or Qbox gang and gives each member their gang and rank automatically, so other scripts that check the framework gang recognise them. The creator now keeps updating even when an organization hook fails, and the update checker in the console is shorter.
config/main.lua. It is optional: without it the script works exactly as before. Add it under Config.InteractionsForEveryone:Config.SyncOrganizationsToFrameworkGang = false
custom/qb/server.lua, copy the new gang sync block (from local GANG_NAMES_KVP to the CreateThread before the territory war comment) into your file, and add this line at the end of the QBCore:Server:OnPlayerLoaded handler:framework:syncPlayerGang(src)
Replace every file in the resource, except what you edited yourself:
client/modules/record.luaserver/modules/record.luaserver/modules/version.luacustom/qb/server.lua: see above.config/main.lua: one new option, see above.fxmanifest.lua: version only.New option Config.SyncOrganizationsToFrameworkGang. When it is true, every organization is also created as a QBCore or Qbox gang with its ranks and a boss grade, and each member gets their gang and rank automatically. Other scripts that check the framework gang (doors, shops, menus) then recognise them. Joining, leaving or changing rank updates straight away. It is false by default.
When you are up to date, the console shows a single line. When a new version is out, it shows a short summary with the three most important changes, and each new version is announced only once.
If an error happened while an organization or another record was created or edited, the creator could stop showing the change. The error is now logged in the console and the list still updates.