#error with qb target using traders script
1 messages · Page 1 of 1 (latest)
What did you change in the cw trader/trade scripts?
Just the config to set my own trades up
the trade script isn't erroring, just this one seemingly
Yeah but they work together. Does this happen on all trades or one specific one?
It's pretty much all of them since I only have 2 traders set up. I third eye them, but get no prompt for anything
seems the target is just broken
just appears AddTargetEntity is not functioning
Using an old or new qb target version?
I'm not quite sure - I'm using a no pixel inspired ver of it, but whether or not it's latest, or outdated I have no clue sadly - I apologize for that 😦
Could you try with a normal version of qb-target?
Just to make sure it's not that script that's causing it
I sure can, I can also send the area of the script it's erroring at currently if that's of any help
what's odd is there's 2 of these funcs?
not sure if it's normal
Prob wont help much since I haven't used QB target for years 
Seems like it's the same as qb target tho
what's interesting, is removing the top func there changes my error to this
so it must recognize it's there, it's just finding nil
can you send the trade you ar trying? to use
like the trade in config.lua for cw trade
the comma placement on the items is odd in that pic, but it's on purpose (just throwing shit at the wall and hoping it sticks lol)
but no matter what I change, same error
are you using cw-tokens?
I am, yes
Can you try a trade without the tokenValue
Adn the trader youre trying to use has the tradeNames added to them?
Try setting Config.SecretTrades to false in the trader config
Maybe Qb target can't handle empty tables
yeah, that's already set too 😦
Do you have the token on you to do the trade?
I do, yeah
Alright then I have no idea.
Try with a normal qb target
still not working sadly
if it's any help, removing the comma off the end of traderped here, does return a diff error
and removing traderped entirely, gives the old error
Yeah if you remove that comma you break the entire script
hahah
add a print(json.encode(getOptions(ped), {indent=true}) on line 183
It's missing a ) at the end
should be
print(json.encode(getOptions(ped), {indent=true}))
did fix that, but the same error
What does is print?
prints this still
Oh
yeah
in that case I'm stumped
unless you've accidentally changed some code then I don't know what'd even cause that
it must be some kind of issue with my qb target ultimately
idk what
but I appreciate you trying to help
Yeah I use ox-taget, and I don't experience that error.
Try reinstalling the trading scripts just to be sure
scroll up a couple of lines from where the export to qb target is
ah