#CW-CRAFTING tables not spawning and exports into other scripts

1 messages · Page 1 of 1 (latest)

golden estuary
#

Hi, i cant seem to spawn more than one table, i have three set down for gun benches, yet only one spawns with no errors and debug enabled, another thing im being a bit unsure on is where abouts my blueprint export would go, ill attach images of my table configs and also where i have been putting the exports in server.lua for rm-fleecafinal heist 🙂 ty!

wild warren
#

So first, the easy one:
You need to also define the values in the export

Example:
exports['cw-crafting']:giveRandomBlueprint(source, 4, 970)

This means player with source has a 30/1000 chance to get a blueprint of max tier 4

golden estuary
#

ahh okay!! thank u that makes a lot of sense, apologies i didnt even think to look for docs

wild warren
#

And for the tables: You created 3 tables with the same index ("guns"). If you want 3 "guns" tables you can put them all in the spawnTable table

#

Example with two:

    ['guns'] = {
        title = "Weapon Crafting ",
        icon = "pistol",
        gang = "ballas",
        spawnTable = { { coords = vector4(100.52, -1968.95, 20.91, 352.84), prop='gr_prop_gr_bench_02a' },
 { coords = vector4(400.52, 1968.95, 20.91, 352.84), prop='gr_prop_gr_bench_02a' }}
    },
golden estuary
#

i am sorry haha thank you so much

golden estuary
#

so i got everything moved over from my dev server to my test and i cant target them, im sure it must be another script doing it as no errors in console with debug mode on too hm

wild warren
#

Did you forget to remove the gang line?