exports['redutzu-mdt']:CreateWarrant({
reason = 'Warrant reason',
players = { 'license:1234', 'license:4321' }, -- array of identifiers/citizenids
house = 1, -- depends on your housing script (usually the id)
tag = 'tag identifier',
date = 1716935068 -- javascript timestamp (this is the starting date)
}) -- number (id)
UpdateWarrant
-- It returns a boolean (if it was successfully updated)
exports['redutzu-mdt']:UpdateWarrant(id, {
reason = 'New reason',
players = { 'license:0000' }
}) -- boolean
local success = exports['redutzu-mdt']:UpdateWarrant(1, {
reason = 'New reason',
players = { 'license:0000' }
})
if not success then
print('There was an error updating the warrant')
return
end
print('Warrant updated')
DeleteWarrant
-- It returns a boolean (if it was successfully deleted)
exports['redutzu-mdt']:DeleteWarrant(id: number) // boolean
local success = exports['redutzu-mdt']:DeleteWarrant(1)
if not success then
print('There was an error deleting the warrant')
return
end
print('Warrant deleted')