I cannot get the script to work. The PED shows, but I don't get any prompt to open the store.
- Check your logs, both client and server side.
Are there any errors?
SCRIPT ERROR: @cw-trader/client/client.lua:99: attempt to concatenate a nil value (field 'tradeLabel')
- When did the error occur?
This happened when starting/restarting the cw-trader resource.
- Did you change anything in the config?
Yes.
- If you've been editing the Config:
CHECK FOR MISSING COMMAS!!
This is not the issue
-
Did you change anything in the client/server side code?
-
Enable debug and recreate the error. We'll most likely need these print outs to help you debug. (can be done in our Configs).
Do these print outs give a hint? Maybe try to read them and find the issue yourself before posting.
Nothing helped here.
- Do you have any other scripts that might have and impact on the issue?
Think REALLY hard, and then go verify this before you post
I can't think of any that would conflict at this time.
- If any items, did you add all the items?
This includes ALL items mentioned in the Config also, not just from the readme (extra important for CW-Crafting that all of them exist)
This is good to go
- If you got errors: Read the actual error message.
Check the file and line where the error message mentions. Consider if this could be due to another script. Maybe you use a different inventory system, or maybe another payment system
✅
- Include AS MUCH information as you can.
If all you can bring is "It's not working" then please fuck off. Be specific. Exactly what did you do to cause the error. If we can't repeat it we most likely can't help.
Originally I edited the script prior to installing it. I found this and wanted to use it as a "Supporter Store," a place where my monthly subscribers can receive a special currency to get specific items available only to them. So I redid cw-trade and cw-trader with just my items. I could not get the pawn to show.
There was an fxmanifest issue coming up in the console, and I looked and realized there was no server.lua in the cw-trader folder. I copied the server folder from cw-trade over to cw-trader to see if it would fix any issues. It went in the server okay, but I couldn't get the trader to actually open any menu or even get a prompt to open the menu.
I looked at the F8 and there was an error as listed above: SCRIPT ERROR: @cw-trader/client/client.lua:99: attempt to concatenate a nil value (field 'tradeLabel')
Still unsure why nothing was working, I installed the script as it came and got immediate errors for the fxmanifest and it crashed the server.
- Did you remove the "-main" from the folder name??
If no, then do so.
Yes.
- We only support OX and QB inventory. If you set your inventory to anything else in the config then that's the issue.
I use qb-inventory.
) then yeah, sounds pretty good.