Hooks

finishedLocalJob hook.

This hook is triggered once NPC job is finished and player is paid. You can hook into it, for additional functionality like money washing or something.

Payload Reference

  ---@class FinishedLobalJobPayload
  ---@field source number
  ---@field coords vector3
  ---@field reward money

Usage example

Make sure you're using it on server side.

server.lua
exports.fd_taxi:registerHook('finishedLocalJob', function(payload)
    -- Do anything here
end)