renzuzu / renzu_evidence

Fivem - Police Evidence. Fingerprint, Bullet Case, Magazines, Vehicle Fragments/Bullets and more ESX.
GNU General Public License v3.0
44 stars 12 forks source link

v.metadata.type / v.metadata.time #12

Open TheJokeerTV opened 8 months ago

TheJokeerTV commented 8 months ago

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.

Upsszao commented 1 month 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