GetPlayerWanted
Get a citizens wanted state
-- @param data table The data to be checked. { source = int, stateid = string }
-- @return boolean: Whether the citizen is wanted or not.
exports.drx_mdt:GetPlayerWanted()Example using source
local function getPlayerWantedBySource(source)
local wanted = exports.drx_mdt:GetPlayerWanted({ source = source })
endExample using stateid
local function getPlayerWantedByStateid(source)
local stateid = exports.drx_mdt:GetStateId({ source = source })
local wanted = exports.drx_mdt:GetPlayerWanted({ stateid = stateid })
endLast updated
Was this helpful?