Wert Dev Docs
Tebex StoreDiscord
  • ℹ️About Us
  • Products
    • QBCore
      • Wert-pdroster
      • Wert-JewelRobberyV2
      • Wert-jammer
      • Wert-GpsV2
      • Wert-AmmunationJobs
      • Wert-JobsV2
      • Wert-ContactlessPayment
      • Wert-GoPro (Watch vehicles with gopros)
      • Wert-ShopRobbery
      • Wert-shops + delivery jobs (Buy and manage your shops)
      • Wert-houses
      • Wert-ambulancejob
      • Wert-BodyCam (For civilians and jobs)
      • Wert-PoliceSystemsV2
      • Wert-ChopShopV2
      • Wert-taboo (Play and enjoy)
      • Wert illegal house robbery
      • Wert-banking (Bank ui and system)
      • Wert-PaletoBankRobberyV2
      • Wert Car Arena (Death race, Death match, Arena war)
      • Wert Blackmarket Phone
      • Wert Gang Zone (Advanced Npc System)
      • Wert Fuel Stations (Job, Buy, Manage, Create and more ... )
      • Wert Craft System
      • Wert Merryweather Job
      • Wert Cleaning System And Jobs
      • Wert Weapon Racks (Deployable, Advanced)
      • Wert Water Dispensers (Coolers)
      • Wert Lucky Wheel
      • Wert Evidence System
      • Wert Give Money System
      • Wert Ems Roster System
      • Wert New Year Lottery
      • Wert Vending Machines
    • ESX
      • Wert-ShopRobbery
      • Wert-JewelRobberyV2
      • Wert-GpsV2
      • Wert-PoliceSystemsV2
      • Wert-JobsV2
      • Wert-ContactlessPayment
      • Wert-GoPro (Watch vehicles with gopros)
      • Wert-AmmunationJobs
      • Wert-BodyCam (For civilians and jobs)
      • Wert-ChopShopV2
      • Wert-taboo (Play and enjoy)
      • Wert illegal house robbery
      • Wert-PaletoBankRobberyV2
      • Wert-jammer
      • Wert Car Arena (Death race, Death match, Arena war)
      • Wert-banking (Bank ui and system)
      • Wert Fuel Stations (Job, Buy, Manage, Create and more ... )
      • Wert Gang Zone (Advanced Npc System)
      • Wert Blackmarket Phone
      • Wert Craft System
      • Wert Merryweather Job
      • Wert Cleaning System And Jobs
      • Wert Weapon Racks (Deployable, Advanced)
      • Wert Water Dispensers (Coolers)
      • Wert Lucky Wheel
      • Wert Evidence System
      • Wert Give Money System
      • Wert Ems Roster System
      • Wert New Year Lottery
      • Wert-pdroster
      • Wert Vending Machines
    • Qbox
      • Wert-pdroster
      • Wert-JewelRobberyV2
      • Wert-jammer
      • Wert-GpsV2
      • Wert-AmmunationJobs
      • Wert-JobsV2
      • Wert-ContactlessPayment
      • Wert-GoPro (Watch vehicles with gopros)
      • Wert-ShopRobbery
      • Wert-shops + delivery jobs (Buy and manage your shops)
      • Wert-houses
      • Wert-ambulancejob
      • Wert-BodyCam (For civilians and jobs)
      • Wert-PoliceSystemsV2
      • Wert-ChopShopV2
      • Wert-taboo (Play and enjoy)
      • Wert illegal house robbery
      • Wert-banking (Bank ui and system)
      • Wert-PaletoBankRobberyV2
      • Wert Car Arena (Death race, Death match, Arena war)
      • Wert Blackmarket Phone
      • Wert Gang Zone (Advanced Npc System)
      • Wert Fuel Stations (Job, Buy, Manage, Create and more ... )
      • Wert Craft System
      • Wert Merryweather Job
      • Wert Cleaning System And Jobs
      • Wert Weapon Racks (Deployable, Advanced)
      • Wert Water Dispensers (Coolers)
      • Wert Lucky Wheel
      • Wert Evidence System
      • Wert Give Money System
      • Wert Ems Roster System
      • Wert New Year Lottery
      • Wert Vending Machines
    • STANDALONE
      • Wert Npc Dialog System
      • Wert Racing Hud
Powered by GitBook
On this page
  • INSTALLATION
  • IMPORTANT
  • QB JOB TABLE EXAMPLE (MY USE)
  • I want to add new gun shop?
  • Installation complete
  1. Products
  2. Qbox

Wert-AmmunationJobs

You can access the setup information you need about this product

PreviousWert-GpsV2NextWert-JobsV2

Last updated 11 hours ago

INSTALLATION

1 - Prepare the depends scripts and upload them to the resources folder.

  • DEPENDS

  • PolyZone ()

  • qb-target or ox_target or any target system

2 - Open server.cfg

3 - Give the command to start the script

4 - Don't forget to edit your config file for your own server

IMPORTANT

  1. Open qb-inventory/server/main.lua

  2. Add the following codes to the place shown in the picture

TriggerClientEvent('wert-ammotransferjob:client:UpdateShop', src, QBCore.Shared.SplitStr(shopType, "_")[1], itemData, fromAmount)
TriggerClientEvent("wert-shopanim", -1, QBCore.Shared.SplitStr(shopType, "_")[1])
exports['qb-management']:AddMoney(QBCore.Shared.SplitStr(shopType, "_")[1], price)

QB JOB TABLE EXAMPLE (MY USE)

  • Go qb-core/shared/jobs.lua and add your job table this codes

['ammushop1'] = {
	label = 'Ammunatin job',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
        ['0'] = {
            name = 'Sales',
            payment = 50
        },
        ['1'] = {
            name = 'Manager',
			isboss = true,
            payment = 50
        },
    },
},
['ammushop2'] = {
	label = 'Ammunatin job',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
        ['0'] = {
            name = 'Sales',
            payment = 50
        },
        ['1'] = {
            name = 'Manager',
			isboss = true,
            payment = 50
        },
    },
},
['ammushop3'] = {
	label = 'Ammunatin job',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
        ['0'] = {
            name = 'Sales',
            payment = 50
        },
        ['1'] = {
            name = 'Manager',
			isboss = true,
            payment = 50
        },
    },
},
['ammushop4'] = {
	label = 'Ammunatin job',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
        ['0'] = {
            name = 'Sales',
            payment = 50
        },
        ['1'] = {
            name = 'Manager',
			isboss = true,
            payment = 50
        },
    },
},
['ammushop5'] = {
	label = 'Ammunatin job',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
        ['0'] = {
            name = 'Sales',
            payment = 50
        },
        ['1'] = {
            name = 'Manager',
			isboss = true,
            payment = 50
        },
    },
},
['ammushop6'] = {
	label = 'Ammunatin job',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
        ['0'] = {
            name = 'Sales',
            payment = 50
        },
        ['1'] = {
            name = 'Manager',
			isboss = true,
            payment = 50
        },
    },
},

I want to add new gun shop?

  • Follow these steps :

  1. First of all, add the job you will add to your job table.

  2. Do not forget to add the name of the newly added profession to the Config.Jobs table.

  3. Add the coordinate of the new profession to the Config.GunShops table to determine the delivery box point.

  4. Take a coordinate from the front of the shop and add it to the Config.PolyGunShops table.

  5. Add your new shop information to the Config.AmmunationShops table.

  6. Add your new profession's sales items to the Config.ShopItems table.

  7. Do not forget to create the polyzone of the new profession in the local PolyGunShops table in client.lua.

  8. Don't forget the html update too.

  9. #-- PLEASE LOOK AT THE EXAMPLES I MADE WHEN ADDING A PROFESSION --#

Installation complete

https://github.com/mkafrin/PolyZone