Skip to content

PERPGamer/qidentification

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qIdentification

All credits goes to Noms for creating this script first.

An identification card resource modified for ox_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.

ID Card Preview

Dependencies

Hard Dependencies

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.

Soft Dependencies

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

Installation

  1. Drag and drop into your resource folder
  2. Make sure you install the required dependencies (listed above)
  3. Follow the instructions to install the other resources - especially the mugshot one for the imgur API
  4. Done!

Config / Disclaimer

Cards Types

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.

The rest of the config is pretty heavily commented, so it should be self explanatory.

ox_inventory/data/items.lua

	['identification'] = {
		label = 'Identification',
		weight = 0,
		stack = false,
		close = true,
		consume = 0,
		client = {
			export = 'qidentification.identification'
		}
	},
	['drivers_license'] = {
		label = 'Drivers License',
		weight = 0,
		stack = false,
		close = true,
		consume = 0,
		client = {
			export = 'qidentification.identification'
		}
	},
	['firearms_license'] = {
		label = 'Firearms License',
		weight = 0,
		stack = false,
		close = true,
		consume = 0,
		client = {
			export = 'qidentification.identification'
		}
	},

About

An identification resource by Quantus Scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 74.4%
  • JavaScript 13.0%
  • CSS 8.6%
  • HTML 4.0%