Usage & Integration
Decrease/Increase Honor Export
local function lootTruck()
local looting = true
CreateThread(function()
if lib.progressBar({
duration = config.lootDuration,
label = locale('info.looting_truck'),
useWhileDead = false,
canCancel = true,
disable = {
move = true,
car = true,
combat = true,
mouse = false,
},
anim = {
dict = 'anim@heists@ornate_bank@grab_cash_heels',
clip = 'grab',
flag = 1,
},
prop = {
model = `prop_cs_heist_bag_02`,
bone = 57005,
pos = vec3(0.0, 0.0, -0.16),
rot = vec3(250.0, -30.0, 0.0),
}
}) then
local success = lib.callback.await('qbx_truckrobbery:server:giveReward')
-- WE ARE DECREASE HONOR FOR TRUCK ROBBERY ON CLIENT SIDE
exports['qubit-honorsystem']:DecreaseHonor(500, "BANK TRUCK ROBBED")
-- exports['qubit-honorsystem']:IncreaseHonor(500, "BANK TRUCK ROBBED")
if not success then return end
SetPedComponentVariation(cache.ped, 5, 45, 0, 2)
resetMission()
end
looting = false
end)
while looting do
if #(GetEntityCoords(cache.ped) - GetEntityCoords(truck)) > 6 and lib.progressActive() then
lib.cancelProgress()
end
Wait(1000)
end
endGetHonorLevel Honor Export
Last updated