v2.0.28 menor
Gang cooldowns, keep robbing when a crew member dies, and full Chinese and Arabic
9cambios

Gang cooldowns, keep robbing when a crew member dies, and full Chinese and Arabic
9cambios

[02] Versión
Cooldowns can now apply to a whole gang, robberies can keep going while part of the crew is down, and other scripts can check cooldowns with a new export. Outfit nodes take several clothing pieces at once, ESC on the crew invite now cancels the robbery, and Chinese and Arabic are fully translated.
Nothing to do in the database.
config/main.lua has a new option, Config.EndRobberyOnDeath. If you keep your old config file, robberies behave exactly as before (they end when one crew member dies). To use the new behaviour, add:
Config.EndRobberyOnDeath = 'all' -- 'anyone' (default) or 'all'
server/custom/frameworks/* has a new GetPlayerGang function. If you edited those files, copy the function into your version, or gang cooldowns will not find the player's gang. Everything else keeps working without it.
The Gang scope uses QBCore and Qbox gangs, and qs-crime-creator gangs when that resource is running. A player with no gang gets no gang cooldown.
Other scripts can now check a robbery's cooldown for a player:
local onCooldown, remaining = exports['qs-robberies-creator']:IsOnCooldown(robberyId, source)
It checks the personal, job and gang cooldowns.
Robberies you already saved keep working: older Ped Outfit and Outfit Component nodes with one clothing piece are still read correctly.
config/main.lua: new option Config.EndRobberyOnDeath.server/custom/frameworks/*: new GetPlayerGang function.fxmanifest.lua, client/modules/*, server/modules/*, locales/* and web/*: replace them.The Set Cooldown node has a new Gang scope: the cooldown applies to everyone in the leader's gang. Works with QBCore and Qbox gangs, and with qs-crime-creator gangs when it is running.
New option Config.EndRobberyOnDeath. 'anyone' (default) ends the robbery when one member dies, as before. 'all' keeps it going while at least one member is alive: the crew is told who went down, and if the leader dies, leadership passes to someone still alive.
exports['qs-robberies-creator']:IsOnCooldown(robberyId, source) tells other scripts whether a robbery is on cooldown for a player, checking personal, job and gang cooldowns.
Ped Outfit and Outfit Component now take a list of clothing pieces, so one node can change a whole outfit.
Many texts in these two languages were still in English.
Development mode, Test Start, required fields and unwired-node warnings are now translated everywhere.
Before, closing the invite window with ESC started the robbery alone. Use the Start Solo button to play solo.
It used to apply only to NPCs spawned after the node ran.
Some anticheats blocked the save of a brand-new robbery.