βš™οΈ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)

  1. Locate this line in your es_extended

  2. After that line insert the following code:

TriggerEvent("bc_tasksystem:itemadded", self.source, itemName, count, (GetInvokingResource() or "none"))

ESX (with ox_inventory)

  1. Locate this line in your es_extended

  2. After that line insert the following code:

TriggerEvent("bc_tasksystem:itemadded", self.source, name, count, (GetInvokingResource() or "none"))

  1. Locate this line in your ox_ineventory

  2. 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

  1. Locate this line in your qb-inventory

  2. 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