Join my discord server here |
---|
- boostinghack from Lionh34rt here
- Polyzone
- qb-target
- qb-phone
-
Import db.sql to your database
-
Go to your qb-core/server/player.lua, and find
QBCore.Player.CheckPlayerData function
and paste this snippets
-- Car Boosting
PlayerData.metadata['carboostclass'] = PlayerData.metadata['carboostclass'] or 'D'
PlayerData.metadata['carboostrep'] = PlayerData.metadata['carboostrep'] or 0
PlayerData.metadata['laptopdata'] = PlayerData.metadata['laptopdata'] or {
wallpaper = 'default',
apps = {}
}
- Go to your qb-core/shared/items.lua, and add this
-- Hacking
['hacking_device'] = {['name'] = "hacking_device", ['label'] = "Hacking device", ['weight'] = 500, ['type'] = 'item', ['image'] = 'hacking_device.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = "A multi purpose hacking device"},
-- Fake Plate
['fake_plate'] = {['name'] = 'fake_plate', ['label'] = "Plate Number", ['weight'] = 500, ['type'] = 'item', ['image'] = 'fake_plate.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = "A fake plate?"},
Find laptop and change unique and usage to true,
['unique'] = true, ['useable'] = true,
- Go to your
qb-radialmenu/config.lua
and add this on policejob, probably line 711
{
id = 'checkvin',
title = 'Check VIN',
icon = 'search',
type = 'client',
event = 'jl-carboost:client:checkvin',
shouldClose = true
}
- Go to your
qb-vehicleshop/server.lua
find this eventqb-vehicleshop:server:buyShowroomVehicle
, replace that with
RegisterNetEvent('qb-vehicleshop:server:buyShowroomVehicle', function(vehicle)
local src = source
local vehicle = vehicle.buyVehicle
local pData = QBCore.Functions.GetPlayer(src)
local cid = pData.PlayerData.citizenid
local cash = pData.PlayerData.money['cash']
local bank = pData.PlayerData.money['bank']
local vehiclePrice = QBCore.Shared.Vehicles[vehicle]['price']
local plate = GeneratePlate()
if cash > vehiclePrice then
MySQL.Async.insert('INSERT INTO player_vehicles (license, citizenid, vehicle, hash, mods, plate, state) VALUES (?, ?, ?, ?, ?, ?, ?)', {
pData.PlayerData.license,
cid,
vehicle,
GetHashKey(vehicle),
'{}',
plate,
0
})
TriggerClientEvent('QBCore:Notify', src, 'Congratulations on your purchase!', 'success')
TriggerClientEvent('qb-vehicleshop:client:buyShowroomVehicle', src, vehicle, plate)
pData.Functions.RemoveMoney('cash', vehiclePrice, 'vehicle-bought-in-showroom')
exports['jl-carboost']:AddVIN(plate)
elseif bank > vehiclePrice then
MySQL.Async.insert('INSERT INTO player_vehicles (license, citizenid, vehicle, hash, mods, plate, state) VALUES (?, ?, ?, ?, ?, ?, ?)', {
pData.PlayerData.license,
cid,
vehicle,
GetHashKey(vehicle),
'{}',
plate,
0
})
TriggerClientEvent('QBCore:Notify', src, 'Congratulations on your purchase!', 'success')
TriggerClientEvent('qb-vehicleshop:client:buyShowroomVehicle', src, vehicle, plate)
pData.Functions.RemoveMoney('bank', vehiclePrice, 'vehicle-bought-in-showroom')
exports['jl-carboost']:AddVIN(plate)
else
TriggerClientEvent('QBCore:Notify', src, 'Not enough money', 'error')
end
end)
And you're done
Config.BennysSell = {
["brake1"] = {
item = 'brake1', --Item name on your shared/items.lua
image = 'brake_parts_b.png', --Item image
price = 1000, --Item price
stock = 50 -- Item stock
},
}
MAKE SURE YOUR ITEM IS EXIST ON THE SHARED ITEM
Name | Description | Permission |
---|---|---|
settier | Set Boosting Tier | Admin |
giveContract | Give contract to a specific player | Admin |
Thanks to @kentainfr for the amazing icon!
If you love my work, you can buy me a coffee
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.