Client

Use TriggerServerEvent inside any client script to send task progress directly to the server.

How it works: The server checks the calling player's currently active task. If its trigger (or startTrigger) matches, progress updates and saves to the database; otherwise the event is ignored.


Heist (event & escape)

  • event: Marks the robbery task ready to claim as soon as the event reaches the server.
  • escape: Arms the escape countdown when startTrigger fires; the player must stay uncuffed and alive for target minutes.
-- Complete 'event' task (e.g. start/finish robbery)
TriggerServerEvent('dailytasks:success:startpacific')
TriggerServerEvent('dailytasks:success:finishpacific')

-- Arm 'escape' countdown (uses startTrigger from config)
TriggerServerEvent('dailytasks:success:finishjewellery')

Explore (visit, drive & event)

  • visit & drive: Tracked automatically by ak47_dailytasks once started — no trigger needed.
  • event: Used for activities like minigolf that fire on completion.
-- Complete activity event task
TriggerServerEvent('dailytasks:success:finishminigolf')

Gathering (counter & counter_unique)

  • counter: Adds amount (defaults to 1) to the active task for any item received from that job.
  • counter_unique: Adds amount only when itemName matches the task's configured item.
-- Any item count ('counter')
TriggerServerEvent('dailytasks:onreceiveitem:prospecting', 3)
TriggerServerEvent('dailytasks:onreceiveitem:houserobbery', 2)

-- Specific rare item ('counter_unique')
TriggerServerEvent('dailytasks:onreceiveitem:prospecting:unique', 'gem', 1)
TriggerServerEvent('dailytasks:onreceiveitem:houserobbery:unique', 'black_card', 1)

Lifestyle (consume)

  • consume: Increments when the consumed itemName matches the task's item.
-- Trigger after player eats or drinks an item
TriggerServerEvent('dailytasks:onconsume:unique', 'big_mac', 1)

Open Menu (Client)

TriggerEvent('ak47_dailytasks:client:openMenu', 'tasks')
TriggerEvent('ak47_dailytasks:client:openMenu', 'shop')