DarkloaderTM / boosting

27 stars 26 forks source link

BNE #1

Open soibois opened 2 years ago

soibois commented 2 years ago

how do you add BNE? or do you even need it? ESX old version. Also it just says unidentified BNE for balance on the screen when im looking for a contract.

cowardtv commented 2 years ago

is use 1.1 esx and its works perfect.. you gain BNE by doing drop off jobs

cowardtv commented 2 years ago

and by the error you prob dont have ghmattimysql installed

soibois commented 2 years ago

image

cowardtv commented 2 years ago

try and use the updated version and download it now since he updated it and maybe it will fix your issue

soibois commented 2 years ago

i changed it to mysql-async just now

soibois commented 2 years ago

i get this error when i join que

[ citizen-server-impl] Started resource boosting

[ script:boosting] SCRIPT ERROR: @boosting/server/sv_main.lua:23: attempt to index a nil value (global 'MySQL')

[ script:boosting] > TriggerServerCallback (@es_extended/server/functions.lua:33)

[ script:boosting] > handler (@es_extended/server/common.lua:88)

[ script:es_extended] SCRIPT ERROR: error object is not a string

[ script:es_extended] (nil stack trace)SCRIPT ERROR: @boosting/server/sv_main.lua:23: attempt to index a nil value (global 'MySQL')

[ script:boosting] > TriggerServerCallback (@es_extended/server/functions.lua:33)

[ script:boosting] > handler (@es_extended/server/common.lua:88)

[ script:es_extended] SCRIPT ERROR: error object is not a string

[ script:es_extended] (nil stack trace)SCRIPT ERROR: @boosting/server/sv_main.lua:23: attempt to index a nil value (global 'MySQL')

soibois commented 2 years ago

getting the same error above aswell when trying to start test, using the current updated version from 1 hour ago

cowardtv commented 2 years ago

i believe its missing sql in the fxmanifest

soibois commented 2 years ago

currently what i have

fx_version 'cerulean' games { 'gta5' }

clientscripts { 'config.lua', 'client/cl*.lua', --'@unwind-rpc/client/cl_main.lua', }

serverscripts { 'config.lua', 'server/sv*.lua', --'@unwind-rpc/server/sv_main.lua', }

ui_page 'ui/index.html'

files { 'ui/', 'ui/images/', 'ui/css/', 'ui/webfonts/' }

soibois commented 2 years ago

also what is this for? ["License"] = "lol", --- your license here

can we leave this how it is in the config?

my current setup in the config

Config['General'] = { ["License"] = "lol", --- your license here ["Core"] = "ESX", -- This can be ESX , QBCORE , NPBASE ["SQLWrapper"] = "mysql-async", -- This can be `| oxmysql or ghmattimysql or mysql-async ["EmailEvent"] = "gcPhone:sendMessage", ["PoliceJobName"] = "police", -- police job name ["MinPolice"] = 0, ["UseNotificationsInsteadOfEmails"] = true, -- this is most likely for esx users , cuz they use bunsh of difirent phones , leave as false if you use qbus or np bases ["PoliceNeedLaptopToseeNotifications"] = false, ["BNErewardmultiplier"] = math.random(12, 15) / 10, }

cowardtv commented 2 years ago

ignore the license its there for no reason

cowardtv commented 2 years ago

try to add this to the server_scripts in the fxmanifest

'@mysql-async/lib/MySQL.lua',

soibois commented 2 years ago

no same errors

cowardtv commented 2 years ago

did you do /refresh and restart the script?

soibois commented 2 years ago

ok this time it said not enough BNE on the boostingtest but idk how to add gne or give it

cowardtv commented 2 years ago

go to the SQL and just put yourself there bne

soibois commented 2 years ago

got it. Is there anyway other people can get BNE without having to manually add it to through the DB

cowardtv commented 2 years ago

i think when you do the drop offs you get BNE

soibois commented 2 years ago

ya but there is no way to start a drop off with out BNE right?

cowardtv commented 2 years ago

you can set the BNE price to 0 in the config

soibois commented 2 years ago

where exactly?

cowardtv commented 2 years ago

go to config and search for ClassPrices

soibois commented 2 years ago

ty sir

soibois commented 2 years ago

im getting this error when trying to start a contract

image

cowardtv commented 2 years ago

is it the line for the price? can you send the lines ... mine are different

soibois commented 2 years ago

local owner = Config.CitizenNames[math.random(#Config.CitizenNames)].name

cowardtv commented 2 years ago

did you touch anything in the config ?

cowardtv commented 2 years ago

that error is either mail or the names

soibois commented 2 years ago

Config = {}

Config['General'] = { ["License"] = "lol", --- your license here ["Core"] = "ESX", -- This can be ESX , QBCORE , NPBASE ["SQLWrapper"] = "mysql-async", -- This can be `| oxmysql or ghmattimysql or mysql-async ["EmailEvent"] = "gcPhone:sendMessage", ["PoliceJobName"] = "police", -- police job name ["MinPolice"] = 0, ["UseNotificationsInsteadOfEmails"] = true, -- this is most likely for esx users , cuz they use bunsh of difirent phones , leave as false if you use qbus or np bases ["PoliceNeedLaptopToseeNotifications"] = false, ["BNErewardmultiplier"] = math.random(12, 15) / 10, }

Config['CoreSettings'] = { ["ESX"] = { ["Trigger"] = "esx:getSharedObject", ["ProgressBarScriptName"] = "unwind-taskbar", -- progress bar script name link in esx_readme.md }, ["QBCORE"] = { ["Version"] = "new", -- new = using export | old = using events --["Export"] = exports['qb-core']:GetCoreObject(), -- uncomment this if using new qbcore version ["Trigger"] = "QBCore:GetObject", ["HasItem"] = "QBCore:HasItem", -- Imporant [ Your trigger for checking has item, default is CORENAME:HasItem ]

}, 
["NPBASE"] = {
    ["Name"] = "unwind-fw", -- this will be used in server side to call player module
    ["ProgressBarScriptName"] = "unwind-taskbar", -- progress bar script name link in np_readme.md
    ["HasItem"] = "unwind-inventory", -- Imporant [ Your normal export for checking has item, default is yourservername:inventory ] 
    ["HandlerScriptName"] = "unwind_handler",
}

}

Config['Utils'] = { ["Rewards"] = { ["Type"] = "money", -- reward type item or money ["RewardItemName"] = "black_money", -- this will be the reward item name (no need to config if you are using an money as a reward) ["RewardMoneyAmount"] = "0", -- this will be the amount the player recieves when he finish the mission (no need to config if you are using an item as a reward) ["RewardAccount"] = "cash", -- this can be only ywo values (no need to config if you are using an item as a reward) }, ["Contracts"] = { ["TimeBetweenContracts"] = 300000, -- Time in (ms) between contract creations ["ContractChance"] = 60, -- This is the luck percentage of getting a contract }, ["VIN"] = { ["BNEPrice"] = 350, -- Price (BNE) for start a vin scratch ["AmountBneAfterDropOff"] = 50, ["VinLocations"] = {x = 472.08, y = -1310.73, z = 29.22}, -- laptop coords ["ForceVin"] = true, -- this will force vin contract optiion on any created contract turn to false to use days instead ["VinDays"] = 7, -- amount of days between vin contracts , (irl days) }, ["ClassPrices"] = { ['X'] = "35", ['A'] = "30", ['B'] = "25", ['C'] = "20", ['D'] = "0", ['M'] = "0", }, ["Blips"] = { ["BlipUpdateTime"] = 3000, -- Time in (ms) of the police blip update 1000 = 1 second ["DisableTrackingOnDCB"] = false, -- This will disable the police tracking on D , C , B vehicle classes (Turn to false to disable this option) }, ["Notifications"] = { ["NotEnoughBNE"] = "Not enough BNE", ["NoTrackerOnThisVehicle"] = "Seems like this vehicle doesn't have a tracker on", ["TrackerRemoved"] = "Tracker removed", ["TrackerRemovedVINMission"] = "Tracker removed, head to the scratch location", ["TrackerRemoved"] = "Tracker removed", ["FinishComputer"] = "Head to the vehicle and scratch off the vin!", ["VehicleAdded"] = "Vehicle added to your garage!", ["DropOffMsg"] = "Get out of the car and leave the area , you will get your money soon", ["UiStillLoadingMsg"] = "Please wait 3 senconds the nui is loading", ["SuccessHack"] = "Success" , ["NoMissionDetected"] = "No ongoing mission detected", }, ["Commands"] = { ["boosting_test"] = "boostingtest", -- This Command will send you a test contract for testing purposes leave as nil to disable ["force_close_nui"] = "boostingclose", -- This Command will close the nui if it glitches leave as nil to disable ["get_vehicle_class"] = "boostingclass", -- This Command will print (F8) the vehicle class of the one ur sitting in }, ["Laptop"] = { ["LogoUrl"] = "images/winlogo.png", ["DefaultBackground"] = "images/background.png", ["CopNotifyLength"] = 5000, -- Time in (ms) of the police Notify length }, }

-------------- SERVER FUNCTIONS -------------- AddVehicle = function(data) if Config['General']["Core"] == "QBCORE" then SQL('INSERT INTO player_vehicles (steam, citizenid, vehicle, hash, mods, plate, state) VALUES (?, ?, ?, ?, ?, ?, ?)',{data.steam, data.cid, data.vehicle, data.hash, data.vehicleMods, data.vehicleplate, data.vehiclestate}) elseif Config['General']["Core"] == "ESX" then SQL('INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES (?, ?, ?)',{data.steam, data.vehicleplate, data.vehicle}) elseif Config['General']["Core"] == "NPBASE" then local v = { ["owner"] = data.steam, ["cid"] = data.cid, ['name'] = data.vehicle, ["model"] = data.vehicle, ["vehicle_state"] = "Out", ["fuel"] = 100, ["engine_damage"] = 1000, ["body_damage"] = 1000, ["current_garage"] = "T", ["license_plate"] = data.vehicleplate } local k = [[INSERT INTO characters_cars (owner, cid, name, model, vehicle_state, fuel, engine_damage, body_damage, current_garage, license_plate) VALUES(@owner, @cid, @name, @model, @vehicle_state, @fuel, @engine_damage, @body_damage, @current_garage, @license_plate);]] SQL(k, v) end end

AddBNE = function(cid, pBne, amount) SQL('UPDATE bropixel_boosting SET BNE=@bne WHERE citizenid=@citizenid', {['@citizenid'] = cid , ['@bne'] = pBne + amount}) end

RemoveBNE = function(cid, pBne, amount) SQL('UPDATE bropixel_boosting SET BNE=@bne WHERE citizenid=@citizenid', {['@citizenid'] = cid , ['@bne'] = pBne - amount}) end

cowardtv commented 2 years ago

no need to send all the config XD

soibois commented 2 years ago

sorry lol my b

soibois commented 2 years ago

when i go to vin scratch a car it gives me this error image

tried to vin scratch a car and went to the laptop at point in the video and there was no option to vin scratch and no blip to go to after using the disabler.

soibois commented 2 years ago

ya i cant get any car to vin scratch. there is just no option

image

soibois commented 2 years ago

@cowardtv i cant get anything to work after doing one vin scratch or even one normal drop. I get one done and everything works then it just doesnt work again. i get to the next drop off lockpick the car and then the script thinks im not on a mission when i start the disabler even tho in the laptop i have a contract in progress in the car i already lockpicked at the location and the blue circle doesnt go away unless i cancel it. Seems like doing just one job breaks the whole thing

ShivamGoyal1234 commented 2 years ago

I have QB-core How can I add BNE ? If there is a way to change in Qbit i need help?