An identification card resource created for use with linden_inventory for ESX Legacy. This resource was inspired by the original jsfour identification script and still uses some of the javascript from it. The rest of the LUA is entirely re-written.
These are required resources that this resource was built around. It's not designed to work without these resources and if you want to remove the requirement for them you'll be better off writing your own resource rather than try to remove those dependencies from this resource.
By default this resource needs these resources, however the core functionality (creating identification cards, metadata, showing identification cards) will still work if you remove the appropriate code in peds.lua and menu.lua
- Drag and drop into your resource folder
- Make sure you install the required dependencies (listed above)
- Follow the instructions to install the other resources - especially the mugshot one for the imgur API
- Done!
I've done my best to provide a configurable resource. You are able to add your own identification types to this list however it's not just just plug and play, you'll still need to modify the server event and the js events for additional
You'll have to make sure that the list reflects the items that are available for you and your server, along with your own costs.
['identification'] = {
label = 'Identification',
weight = 0,
stack = false,
close = true,
client = {
consume = 0,
event = true,
}
},
['drivers_license'] = {
label = 'Drivers License',
weight = 0,
stack = false,
close = true,
client = {
consume = 0,
event = true,
}
},
['firearms_license'] = {
label = 'Firearms License',
weight = 0,
stack = false,
close = true,
client = {
consume = 0,
event = true,
}
},