Events & Exports

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 targetPlayerServerId? number
---@param options? StartOptions
RegisterNetEvent('rm_banktruck:server:startTrackingTruck', function(targetPlayerServerId, 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.

Exports

Server Exports

setLockdown

exports.rm_banktruckrobbery:setLockdown(state--[[boolean]])

getLockdown

exports.rm_banktruckrobbery:getLockdown()
--Example:
exports.rm_banktruckrobbery:setLockdown(true)
local disabled = exports.rm_banktruckrobbery:getLockdown()
print(disabled)

Last updated