Open TheJokeerTV opened 8 months ago
CreateReport = function() local items = GetInventoryItems('evidence') local options = {} for k,v in pairs(items) do if not v.metadata.evidence then table.insert(options, { title = v.metadata.label, description = 'Type: ' .. tostring(v.metadata.type) .. ' \n Date of collection: ' .. tostring(v.metadata.time), icon = 'file', onSelect = function() Citizen.CreateThreadNow(function() CreateFile(v.metadata, v.slot) end) end, arrow = true, }) end end lib.registerContext({ id = 'identify', title = 'Create Evidence Report', options = options }) lib.showContext('identify') end
We got this issue as some others, and when we look into, its like we are missing a SQL import? hope you have a solution for this problem.