Giter Site home page Giter Site logo

modernaesthetics / qidentification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from katotekii/qidentification

0.0 0.0 0.0 1.14 MB

An identification resource by Quantus Scripts

License: GNU General Public License v3.0

Lua 73.06% CSS 9.08% JavaScript 13.69% HTML 4.18%

qidentification's Introduction

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,
		client = {
			consume = 0,
			event = "qidentification:identification",
		}
	},

	['drivers_license'] = {
		label = 'Drivers License',
		weight = 0,
		stack = false,
		close = true,
		client = {
			consume = 0,
			event = "qidentification:drivers_license",
		}
	},

	['firearms_license'] = {
		label = 'Firearms License',
		weight = 0,
		stack = false,
		close = true,
		client = {
			consume = 0,
			event = "qidentification:firearms_license",
		}
	},

qidentification's People

Contributors

katotekii avatar officialnoms avatar thelindat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.