Patrols

MDT allows players to create patrol units and patrol zones. This exports gives you option to obtain data about active patrols, all existing patrol zones and patrol types.

Types for functions below are listed in file server/exportTypes.lua as Patrol, PatrolZone and PatrolType.

Get Patrols

Get Patrols

To retrieve created patrols, use export as presented below:

exports["bl-mdt"]:GetPatrols()
Get Patrol Types

To retrieve patrol types, use export as presented below:

exports["bl-mdt"]:GetPatrolTypes()
Get Patrol Zones

To retrieve all created patrol zones, use this function in your resource:

exports["bl-mdt"]:GetPatrolZones()

Last updated