Events

Server Events

rm_banktruck:server:startTrackingTruck

---@class StartOptions
---@field price? number   -- will be used instead of cfg.prices.locationInfo in data/prices.lua
---@field ignorePoliceCount? boolean   -- should the number of police officers be ignored?
---@field ignorePlayerCooldown? boolean  -- should the player cooldown be ignored?

---@param _source? targetPlayerServerId
---@param options? StartOptions
RegisterNetEvent('rm_banktruck:server:startTrackingTruck', function(_source, options) end)
Key
Type
Description

price?

number

Will be used instead of cfg.prices.locationInfo in data/prices.lua

ignorePoliceCount?

boolean

Should the number of police officers be ignored?

ignorePlayerCooldown?

boolean

Should the player cooldown be ignored?

## Notes:
- If triggered from the client, _source is not required; if triggered from the server, it must be provided. 
- To disable the event, set cfg.disableServerEvent = true.

Last updated