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 }) end
Example using stateid
local function getPlayerWantedByStateid(source) local stateid = exports.drx_mdt:GetStateId({ source = source }) local wanted = exports.drx_mdt:GetPlayerWanted({ stateid = stateid }) end
Last updated 8 months ago