Fingerprint scanner / evidence laptop item not working (ESX Legacy) #10
-
|
Hello — I need help getting the fingerprint scanner / evidence laptop to work with ESX Legacy. What I did Items configuration (my items file) ["evidence_laptop"] = {
label = 'Computador de Provas',
description = 'Este computador destina-se à polícia para poder registar provas criminais',
weight = 1000,
stack = false,
close = true,
},
["evidence_box"] = {
label = 'Caixa de Provas',
description = 'Esta caixa destina-se à polícia para guardar provas criminais',
weight = 1000,
stack = false,
close = true,
},
["baggy_blood"] = {
label = 'Saco de Sangue',
weight = 1000,
stack = false,
close = true,
},
["baggy_empty"] = {
label = 'Saco Vazio',
weight = 1000,
stack = false,
close = true,
},
["baggy_magazine"] = {
label = 'Saco com Munição',
weight = 1000,
stack = false,
close = true,
},
["fingerprint_brush"] = {
label = 'Pincel de Impressão Digital',
weight = 1000,
stack = false,
close = true,
},
["fingerprint_scanner"] = {
label = 'Scanner de Impressão Digital',
weight = 1000,
stack = false,
close = true,
},
["fingerprint_taken"] = {
label = 'Impressão Digital Coletada',
weight = 1000,
stack = false,
close = true,
},
["hydrogen_peroxide"] = {
label = 'Peróxido de Hidrogénio',
weight = 1000,
stack = false,
close = true,
}, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
Hello @LeonScripts-PT! When the evidence laptop/fingerprint scanner item is used, ox_inventory executes the respective export from the evidence script. These exports must therefore be registered in your items file. So, simply copy this into your ['evidence_laptop'] = {
label = 'Computador de Provas',
description = 'Este computador destina-se à polícia para poder registar provas criminais',
weight = 1500,
stack = true,
close = true,
client = {
export = 'evidences.evidence_laptop'
}
},
['evidence_box'] = {
label = 'Caixa de Provas',
description = 'Esta caixa destina-se à polícia para guardar provas criminais',
weight = 250,
stack = false,
close = false,
buttons = {{
label = 'Label',
action = function(slot)
exports.evidences:evidence_box(slot)
end
}}
},
['baggy_empty'] = {
label = 'Saco Vazio',
weight = 100,
stack = true
},
['baggy_blood'] = {
label = 'Saco de Sangue',
weight = 200,
stack = false
},
['baggy_magazine'] = {
label = 'Saco com Munição',
weight = 200,
stack = false
},
['hydrogen_peroxide'] = {
label = 'Peróxido de Hidrogénio',
weight = 500,
stack = true,
client = {
export = 'evidences.hydrogen_peroxide'
}
},
['fingerprint_brush'] = {
label = 'Pincel de Impressão Digital',
weight = 250,
stack = true
},
['fingerprint_taken'] = {
label = 'Impressão Digital Coletada',
weight = 5,
stack = false
},
['fingerprint_scanner'] = {
label = 'Scanner de Impressão Digital',
weight = 500,
stack = false,
close = true,
consume = 0,
client = {
export = 'evidences.fingerprint_scanner',
},
}, |
Beta Was this translation helpful? Give feedback.
-
|
When I use the fingerprint reader, it shows animations and does not give an error. Where am I supposed to go to view the information?
|
Beta Was this translation helpful? Give feedback.


Hello @LeonScripts-PT! When the evidence laptop/fingerprint scanner item is used, ox_inventory executes the respective export from the evidence script. These exports must therefore be registered in your items file.
So, simply copy this into your
items.luaand then the laptop and fingerprint scanner should work properly: