#cw-racingapp crypto failing to call

1 messages · Page 1 of 1 (latest)

valid panther
#

Hello, I was trying to create a new user in the laptop and I have the crpyto for the currency to be used. After I set my name, i receive an error saying: no such export hasEnough in resource qb-phone.

#
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

knotty stone
#

Pretty sure crypto is setup for renewedphone right? @echo dove

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

valid panther
#

Hello sorry for the super late reply

#

Is there a fix for this?

#

Thanks in advance!

echo dove
#

According to the config you sent the code that the error is referencing should never be called

#

What you sent basically makes no sense 😅

valid panther
#

🤣

#

What does the renewed crpyto mean

#

Is it a standalone script?

#

Maybe I could just use that

echo dove
#

it's a phone

#

that has several crypto types

valid panther
#

Is it somewhat better than qb-phone?

echo dove
#

It's old and shit tho, don't get it PepeLaugh

valid panther
#

damn

echo dove
#

But yeah better than qb-phone at least

#

alot more features

valid panther
#

Alright will look into it

#

Anyway, so for the issue on hand

echo dove
#

You might wanna go over the config thouroughly and make sure there's nothing weird

valid panther
#

Ill do a freshinstall of the script see if that fixes anything

valid panther
echo dove
#

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

valid panther
#

im using default crypto right now from qbcore framework, so i replaced the 'cdc' with 'qbit'

echo dove
#

yes, your UseRenewedCrypto is set to false

valid panther
#

i couldve done something wrong without fully knowing

#

thanks for your time!

echo dove
#

No problem. Good luck

valid panther
#

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?

echo dove
#

Sure

valid panther
#

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?

echo dove
#

no errors on server side?

valid panther
#

no error but dont seem to receive it?

valid panther
#

i was wondering if i need to add item there = blueprint too

echo dove
#

No

valid panther
#

cause i saw in ur documentation or github that u cant really giveitem

#

so makes no sense

echo dove
#

cw-crafting gives you the item

valid panther
#

yeah

echo dove
#

or it should

#

enable debug for cw-crafting

valid panther
#

ok hold on ill restart the server

echo dove
#

you can just restart the script

valid panther
#

I got this from my recycleJob

knotty stone
valid panther
#

ok hold on

echo dove
#

Do you need to for exports?

#

You also have an error with your config it seems

valid panther
valid panther
#
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
knotty stone
#

Won’t help as we don’t know the script as your error is in the recycle job

echo dove
valid panther
#

Sorry for having ton of questions as i am a bit new to developing servers and scripts 🙂

knotty stone
#

Show me where you have the export for blueprints added

valid panther
valid panther
# knotty stone Show me where you have the export for blueprints added
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)```
echo dove
#

Oh

valid panther
#

here is the config for giveRandomBlueprint in recyclejob

echo dove
#

not like that haha

knotty stone
#

There we go

echo dove
#

The export should be in your server file, where items are handed out

valid panther
#

Oh

#

so in recylcejob server.lua right?

#

im so sorry haha

echo dove
#

yes

knotty stone
#

In the loot function though, not just placed in there

valid panther
#

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!

echo dove
#

Good luck 7735_pepe_wave

buoyant sphinx
#

help