Exports
Available exports for you to utilise from Possible Armoured Trucks.
The police chase functionality is available to be utilised in external scripts through exports. Below are the available exports and their usage.
startPoliceChase
This export is used to start a comprehensive police chase with customisable options. It activates the full police response system with waves, helicopters, roadblocks, and more based on your armoured trucks config.
exports['possible_armoured_trucks']:startPoliceChase(options)📥 Parameters
| Name | Type | Required | Description |
|---|---|---|---|
options | table | ❌ | Configuration table for the police chase. All options default to true if not specified. |
Options Table
| Option | Type | Default | Description |
|---|---|---|---|
enableRegular | boolean | true | Whether to spawn regular police cars |
enableSwat | boolean | true | Whether to spawn SWAT vehicles (after configured wave delay) |
enableBikes | boolean | true | Whether to spawn police motorcycles |
enableHelicopter | boolean | true | Whether to spawn police helicopter (after configured delay) |
enableRoadblocks | boolean | true | Whether to create roadblocks ahead of player |
enableWaves | boolean | true | Whether to spawn additional waves of reinforcements |
🧩 Example
exports['possible_armoured_trucks']:startPoliceChase({ enableRegular = true, enableSwat = true, enableBikes = true, enableHelicopter = true, enableRoadblocks = true, enableWaves = true})stopPoliceChase
This export stops and cleans up all active police chase entities including vehicles, peds, helicopters, and roadblocks.
exports['possible_armoured_trucks']:stopPoliceChase()🧩 Example
exports['possible_armoured_trucks']:stopPoliceChase()clearPoliceWantedLevel
This export clears the player's wanted level and optionally disables dispatch services based on your configuration.
exports['possible_armoured_trucks']:clearPoliceWantedLevel()🧩 Example
exports['possible_armoured_trucks']:clearPoliceWantedLevel()spawnPoliceVehicles
This export spawns a specific number of police vehicles with the option to include SWAT units.
exports['possible_armoured_trucks']:spawnPoliceVehicles(numVehicles, includeSwat)📥 Parameters
| Name | Type | Required | Description |
|---|---|---|---|
numVehicles | number | ❌ | Number of vehicles to spawn. Defaults to 2 if not specified. |
includeSwat | boolean | ❌ | Whether to spawn SWAT vehicles instead of regular police. Defaults to false. |
🧩 Example
Regular Police:
exports['possible_armoured_trucks']:spawnPoliceVehicles(3, false)SWAT Units:
exports['possible_armoured_trucks']:spawnPoliceVehicles(2, true)Default:
exports['possible_armoured_trucks']:spawnPoliceVehicles()spawnPoliceBikes
This export spawns police motorcycles for pursuit.
exports['possible_armoured_trucks']:spawnPoliceBikes(numBikes)📥 Parameters
| Name | Type | Required | Description |
|---|---|---|---|
numBikes | number | ❌ | Number of police bikes to spawn. Defaults to 2 if not specified. |
🧩 Example
exports['possible_armoured_trucks']:spawnPoliceBikes(3)spawnPoliceHelicopter
This export spawns a police helicopter for aerial pursuit. Only one helicopter can be active at a time.
exports['possible_armoured_trucks']:spawnPoliceHelicopter()🧩 Example
local success = exports['possible_armoured_trucks']:spawnPoliceHelicopter()if not success then print("Helicopter already active or failed to spawn")endcreatePoliceRoadblock
This export creates a police roadblock ahead of the player's current position and direction.
exports['possible_armoured_trucks']:createPoliceRoadblock()🧩 Example
local success = exports['possible_armoured_trucks']:createPoliceRoadblock()if not success then print("Maximum roadblocks already active")end