Wert-AmmunationJobs

You can access the setup information you need about this product

INSTALLATION

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

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

Last updated