jimathy / jim-mining

FiveM QBCore Script for Mining
159 stars 110 forks source link

copper issue #5

Closed Andyauk closed 2 years ago

Andyauk commented 2 years ago

the error you get when you use the smelter, to do copper, you don't get the message to say you don't have any and when you do have copper it gives you 3 back, so i had 5 and then i had 8 and it does nothing if you have copper ore.

[      script:qb-core] (nil stack trace)SCRIPT ERROR: @jim-mining/server.lua:7: bad argument #1 to 'pairs' (table expected, got number)
[   script:jim-mining] > ref (@jim-mining/server.lua:7)
[   script:jim-mining] > TriggerCallback (@qb-core/server/functions.lua:221)
[   script:jim-mining] > handler (@qb-core/server/events.lua:115)
[      script:qb-core] SCRIPT ERROR: error