Black City Scripts
  • ๐Ÿ’ฏBlack City Scripts
  • ๐Ÿงนbc_communityservice
    • ๐Ÿ“šExports
    • โš™๏ธConfig
  • ๐ŸงŸbc_zombie
  • ๐Ÿฅ‡bc_vip
    • ๐Ÿ“šExports
    • ๐Ÿ’ธTebex Integration
  • ๐Ÿ“œbc_tasksystem
    • โš™๏ธAutomated tasks
    • ๐Ÿ“šExports
Powered by GitBook
On this page
  • ESX (without ox_inventory)
  • ESX (with ox_inventory)
  • QBCore
  1. bc_tasksystem

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 ๐Ÿ˜‰

Previousbc_tasksystemNextExports

Last updated 7 days ago

๐Ÿ“œ
โš™๏ธ