Disable Mission NPC
Getting a Job for Chopshop
Remove the NPC:
To disable the NPC, set the
cfg.missionNPCs
table indata/npcs.lua
to an empty table.
Get a Job:
Use the server event below to receive a chopshop job from another resource. Here are some examples:
-- Example 1: Basic usage (no source and no options)
TriggerServerEvent('rm_chopshop:server:createJob')
-- Example 2: With a target player's server ID (e.g., 42)
TriggerServerEvent('rm_chopshop:server:createJob', 42)
-- Example 3: With options only (no specific source)
TriggerServerEvent('rm_chopshop:server:createJob', nil, {
ignorePoliceCount = true,
ignorePlayerCooldown = true,
ignoreGlobalCooldown = false
})
-- Example 4: With both a source and options
TriggerServerEvent('rm_chopshop:server:createJob', 42, {
ignorePoliceCount = false,
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.
Last updated