Git Product home page Git Product logo

aendir-licenseplate's Introduction

Gerekli olanlar

  • QBCore
  • qb-inventory/lj-inventory
  • oxmysql

  • Görseller dosyasındaki görselleri qb-inventory html görsellerinize ekleyin
  • Alttaki satırı bu dosya yoluna ekleyin: qb-core>shared>item.lua
	['licenseplate'] 				 = {['name'] = 'licenseplate', 			  	  	['label'] = 'License Plate', 			['weight'] = 1000, 		['type'] = 'item', 		['image'] = 'licenseplate.png', 			['unique'] = true, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
  • qb inventory >server > main.lua'ya gidin, 1550-1579 satırları civarında, satırlar envanterinize göre değişebilir, aşağıdaki parçayı arayabilirsiniz
	elseif itemData["name"] == "markedbills" then
		info.worth = math.random(5000, 10000)
  • Aşağıdaki parçayı aşağıya veya yukarıya yapıştırın fark etmez
	elseif itemData["name"] == "licenseplate" then
		info.plate = tostring(QBCore.Shared.RandomInt(2) .. QBCore.Shared.RandomStr(2) .. QBCore.Shared.RandomInt(2) .. QBCore.Shared.RandomStr(2))
  • Html > js > app.js'ye gidin ve aşağıdaki satırları bulun
	} else if (itemData.name == "driver_license") {
		$(".item-info-title").html("<p>" + itemData.label + "</p>");
		$(".item-info-description").html(
			"<p><strong>First Name: </strong><span>" +
			itemData.info.firstname +
			"</span></p><p><strong>Last Name: </strong><span>" +
			itemData.info.lastname +
			"</span></p><p><strong>Birth Date: </strong><span>" +
			itemData.info.birthdate +
			"</span></p><p><strong>Licenses: </strong><span>" +
			itemData.info.type +
			"</span></p><p style=\"font-size:11px\"><b>Weight: </b>" + itemData.weight + " | <b>Amount: </b> " + itemData.amount + " | <b>Quality: </b> " + "<a style=\"font-size:11px;color:green\">" + Math.floor(itemData.info.quality) + "</a>"
		);
  • Ve altına şunu yapıştırın
	} else if (itemData.name == "licenseplate") {
		$(".item-info-title").html('<p>' + itemData.label + '</p>')
		$(".item-info-description").html('<p><strong>Plate Number: </strong><span>'+ itemData.info.plate);

aendir-licenseplate's People

Contributors

aendirr avatar

Watchers

 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.