GithubHelp home page GithubHelp logo

complex-gunrange's Introduction

Gun Range Test

Dependencies

  • ox_lib
  • qb-core (Can be easily adapted to ox or qbx)

Preview

gunrangepreview.mp4

Description

A simple firearms test at Ammunition.

Installation

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>'
);

Configuration

  • Change Zone Settings & Locations
  • Change Target Popup Locations
  • Change Blip Settings & Locations
  • CHange Difficulty Settings

Updates for later maybe

  • More Optimizations.
  • More Effects when doing the test.
  • More Customization
  • More Small Bug Fixes
  • Rewrite the spawning logic

Original Idea / Snippets by Just Evy

complex-gunrange's People

Contributors

complexza avatar solareon avatar

Stargazers

António Neves 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.