Tracking the Truck
Remove the NPC:
To disable the NPC, set the cfg.missionNPCs
table in data/npcs.lua
to an empty table.
Start Tracking the Truck:
Use the server event below and spawn a truck from another resource to find out its location.. Here are some examples:
-- Basic usage:
TriggerServerEvent('rm_banktruck:server:startTrackingTruck')
-- With a target player's server ID (e.g., 1)
TriggerServerEvent('rm_banktruck:server:startTrackingTruck', 1)
-- With additional parameters:
TriggerServerEvent('rm_banktruck:server:startTrackingTruck', nil, {
price = 0,
ignorePoliceCount = true,
ignorePlayerCooldown = true
})
-- Specifying a mode value:
TriggerServerEvent('rm_banktruck:server:startTrackingTruck', 1, {
price = 0,
ignorePoliceCount = true,
ignorePlayerCooldown = true
})
These examples show different ways to call the event, depending on your needs. Adjust the parameters as necessary for your specific use case.