#cw-racingapp crypto failing to call
1 messages · Page 1 of 1 (latest)
Config.UseResetTimer = true
Config.RaceResetTimer = 300000
Config.ShowMechToolOption = true -- set to false if you dont use cw-mechtool
Config.DoOffsetGps = true -- Set to true if you want the gps to slighlty offset the point (helps with route)
Config.Inventory = 'qb' -- set to 'ox' if you want ox inventory support. Only 'ox' or 'qb' works.
Config.UseRenewedCrypto = false -- set to true if you use Renewed crypto
Config.UseRenewedBanking = false -- set this to true if you use Renewed Banking
Config.UseNameValidation = true -- set to true if you use the name validation - HAVING THIS ON MEANS UNIQUE RACERNAMES
Config.MaxRacerNames = 2 -- Maximum allowed amount of unique names per character
Config.MaxCheckpoints = 60 -- This is just for the warning to show up. You can still go above it, but the script WILL crash clients if there's to many checkpoints. Test higher values at own risk.
Config.AllowCreateFromShare = true -- toggle this to allow using the share track creation
Config.CheckDistance = true -- If enabled, distances to checkpoints are compared for position tracking (If you got alot of racers this might affect client performance)
Config.UseOxLibForKeybind = false -- YOU HAVE TO ENABLE OXLIB IN FXMANIFEST TO USE THIS!!!!!!!!!!!!!!!!!!!!!!!!! Use oxlib for keybinds instead of natives.
Config.TimeOutTimerInMinutes = 5 -- Default = 5 minutes
Config.NotifyRacers = true -- set to true and anyone holding a racing gps will get a notification when races are hosted
Config.OxInput = false -- If you want Oxlib input menus Same as above with fxmanifest ^
Config.LimitTopListTo = 10 -- If this is nil, the Racers Ranking will list all racers that exist, if set to a number it will limit to the top of that amount
Config.DontShowRankingsUnderZero = true -- If this is true, the top rank list will not show player with with 0 or lower ranking
Here is my config
My crpto coin is 'qbit' the default one from qb framework
Here is my config.laptop config
Config.Laptop = {
active = true, -- If the laptop spawns
jobRequirement = { racer = false, creator = true, master = true, god = true }, -- Tied to Config.AllowedJobs
requireToken = false, -- using cw tokens?
model = 'xm_prop_x17_laptop_mrsr', -- entity model
location = vector4(238.8, -882.8, 28.225, 167.07), -- world location
moneyType = 'crypto', -- cash/bank/crypto
cryptoType = 'qbit', -- name of your crypto
racingUserCosts = { -- cost of creating an account
racer = 1000,
creator = 5000,
master = 10000,
god = 1000000
},
}
Here is the error
Pretty sure crypto is setup for renewedphone right? @echo dove
hasEnough should only trigger if using renewed
yeah
crypto with qb is just same as cash/bank
But his is set to false
This shouldn't trigger
and this shouldn't trigger
only two spots it's called
it's triggering the latter one
Hello sorry for the super late reply
Is there a fix for this?
Thanks in advance!
According to the config you sent the code that the error is referencing should never be called
What you sent basically makes no sense 😅
🤣
What does the renewed crpyto mean
Is it a standalone script?
Maybe I could just use that
Is it somewhat better than qb-phone?
It's old and shit tho, don't get it 
damn
You might wanna go over the config thouroughly and make sure there's nothing weird
Ill do a freshinstall of the script see if that fixes anything
all i changed in config were the inventory and mechtooloption as i also installed that
Yeah and if Config.UseRenewedCrypto is set to false it should never call the line where the error you sent is happening. It makes no sense
does this look right to you?
im using default crypto right now from qbcore framework, so i replaced the 'cdc' with 'qbit'
yes, your UseRenewedCrypto is set to false
Doubt that will affect anything
ill run a fresh install of the script and get back to you if its fixed
i couldve done something wrong without fully knowing
thanks for your time!
No problem. Good luck
Hello, I installed a fresh copy of the script and did not touch the renewedcrpyto config and it works fine now
However, when I set it to true and run the server, ofcourse it doesnt work as I am using default qb phone and crypto so i set it back to false
and then the error came back
it still logs it as renewedcrpyto after u set it to false
anyway, got a fresh copy already and it works perfectly fine now just as long as i dont touch that config. Thank you! Great script!
Hello i have questions regarding CW-crafting
Is it ok?
Sure
Thanks
I have the cw-crafting and i inputted the
exports['cw-crafting']:giveRandomBlueprint(source, {min = 1, max = 2}, 0)
line here on my recycleJob script
but i dont seem to be getting any blueprint from the job
Config.GetRandomItemChance = 50 -- Change to receive an item when sorting
Config.RandomItemList = { -- List of items that can be recieved, you can customize what items can be found in each bin by putting them in the correct category (yellow, blue, green) below.
['yellow'] = {
{item = 'metalscrap', min = 1, max = 5},
{item = 'plastic', min = 1, max = 5},
},
['blue'] = {
{item = 'metalscrap', min = 1, max = 5},
{item = 'plastic', min = 1, max = 5},
},
['green'] = {
{item = 'metalscrap', min = 1, max = 5},
{item = 'plastic', min = 1, max = 5},
},
}```
do i have to add item = blueprint here as well?
no errors on server side?
no error but dont seem to receive it?
this is my config for the recyclejob and the yellow blue green lines there indicate where i can get random items or recycled items
i was wondering if i need to add item there = blueprint too
No
cause i saw in ur documentation or github that u cant really giveitem
so makes no sense
cw-crafting gives you the item
yeah
ok hold on ill restart the server
you can just restart the script
Make crafting load first
ok hold on
i can send a copy of my config here in text hold on
Config = {}
Config.Debug = true
Config.oxInv = false -- set this to ox if you have ox_inventory
-- DISABLE OX LIB IN FXMANIFEST IF THIS IS FALSE:
Config.oxLib = false -- set this to ox if you have ox_lib !!! MAKE SURE OX LIB IS ADDED TO SHARED_SCRIPTS IN FXMANIFEST!!
Config.UseLocalImages = false -- set this to true if you want to use local images rather than automatic. Put the images for the recipes and ingredients in the 'images' folder next to the blueprint.png
Config.UseCWRepForCraftingSkill = true -- Set to true if you want to use cw-rep for skill instead of qbs metadata
-- The following all require cw-rep to be enabled:
Config.CraftingSkillName = 'crafting' -- Make sure this matches the crafting skill name in your cw-rep config
Config.CraftingSkillLabel = '"Crafting Skill"' -- Default name for the crafting skill
Config.UseLevelsInsteadOfSkill = false -- If true then cw-rep will use level instead of pure xp
local minimumSkillRep = 1 -- the least amount of skill you can gain per craft
-- You can tweak this function to return different amount of points per skill
-- The default one will give you 1 skill for a crafted item and the +1 for each 100 in skill requirement the item has.
Config.CraftingRepGainFunction = function(skillReq)
if not skillReq then return minimumSkillRep end
local skillGain = 1 + math.floor((skillReq - 1) / 100)
if skillGain < minimumSkillRep then return minimumSkillRep end
if Config.Debug then print('Skill gain:', skillGain) end
return skillGain
end
Won’t help as we don’t know the script as your error is in the recycle job
you might be sending a nil source
Sorry for having ton of questions as i am a bit new to developing servers and scripts 🙂
Show me where you have the export for blueprints added
do i have to to input exports[cw-crafting] inside the config for the job?
exports['cw-crafting']:giveRandomBlueprint(source, {min = 1, max = 2}, 0)
Config = {}
Config.UseESX = false -- Use ESX Framework
Config.UseQBCore = true -- Use QBCore Framework (Ignored if Config.UseESX = true)
Config.UseCustomNotify = false -- Use a custom notification script, must complete event below.
-- Only complete this event if Config.UseCustomNotify is true; mythic_notification provided as an example
RegisterNetEvent('angelicxs-RecylceJob:CustomNotify')
AddEventHandler('angelicxs-RecylceJob:CustomNotify', function(message, type)
--exports.mythic_notify:SendAlert(type, message, 4000)
--exports['okokNotify']:Alert('', Message, 4000, type, false)
end)```
Oh
here is the config for giveRandomBlueprint in recyclejob
not like that haha
There we go
The export should be in your server file, where items are handed out
yes
In the loot function though, not just placed in there
Yup
Ok no error in my consolo
Will try if I receive the item
So sorry for these stupid questions haha
Thank you so much for helping out!
Working ok now. Thanks very much.
I appreciate the help!
Good luck 