Automated tasks
If you want to make automated task and don't want to use the script's export every time, you need to follow the next steps:
ESX (without ox_inventory)
Locate this line in your es_extended
After that line insert the following code:
TriggerEvent("bc_tasksystem:itemadded", self.source, itemName, count, (GetInvokingResource() or "none"))
ESX (with ox_inventory)
Locate this line in your es_extended
After that line insert the following code:
TriggerEvent("bc_tasksystem:itemadded", self.source, name, count, (GetInvokingResource() or "none"))
Locate this line in your ox_ineventory
After that line insert the following code:
if success and type(inv) == "number" then TriggerEvent("bc_tasksystem:itemadded", inv, item, count, (GetInvokingResource() or "none")) end
QBCore
Locate this line in your qb-inventory
After that line insert the following code:
TriggerEvent("bc_tasksystem:itemadded", Player.PlayerData.source, item, amount, (GetInvokingResource() or "none"))
Now you can use the autocount sections in the config ๐
Last updated