getPursuitData
Definition
-- @/lua/ge/extensions/gameplay/police.lua:463
local function getPursuitData(id) -- returns pursuit data from the given vehicle, or the player vehicle by default
-- exists for backwards compatibility
id = id or be:getPlayerVehicleID(0)
local veh = id and gameplay_traffic.getTrafficData()[id]
if veh then
return veh.pursuit
end
end
Callers
@/lua/ge/extensions/ui/policeInfo.lua
local pursuit = gameplay_police.getPursuitData() -- player vehicle pursuit data
if not pursuit then
@/lua/ge/extensions/flowgraph/nodes/gameplay/traffic/pursuitInformation.lua
self.vehId = self.pinIn.vehId.value or be:getPlayerVehicleID(0)
local pursuit = gameplay_police.getPursuitData(self.vehId)
if not pursuit then return end
@/lua/ge/extensions/ui/apps/minimap/additionalInfo.lua
local function checkPolice()
local pursuitData = gameplay_police.getPursuitData()
local policeMode = "disabled"