- ox_lib
- qb-core (Can be easily adapted to ox or qbx)
gunrangepreview.mp4
A simple firearms test at Ammunition.
qb-core > shared > items.lua (Old Format)
['gunrangereceipt'] = {['name'] = 'gunrangereceipt', ['label'] = 'Firearms Range Receipt', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'ticket.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Receipt from the your firearms test!'},
qb-core > shared > items.lua (New Format)
gunrangereceipt = { name = 'gunrangereceipt', label = 'Firearms Test', weight = 1000, image = 'ticket.png', unique = true, useable = false, description = 'Test Results from Firing Range' },
qb/ps-inventory > html > js
} else if (itemData.name == "gunrangereceipt") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
'<p><strong>Completed by: </strong><span>' + itemData.info.citizenname + '</span></p>' +
'<p><strong>Final Score: </strong><span>' + itemData.info.score + '</span></p>' +
'<p><strong>Date Issued: </strong><span>' + itemData.info.date + '</span></p>'
);
- Change Zone Settings & Locations
- Change Target Popup Locations
- Change Blip Settings & Locations
- CHange Difficulty Settings
- More Optimizations.
- More Effects when doing the test.
- More Customization
- More Small Bug Fixes
- Rewrite the spawning logic
- Used The Animation and Targeting Spawning Logic https://github.com/justevy/shootingrange