Duplicate items Problem (Mining Script)

I have a mine script on the server that should only be for gold, that works fine. Now I have copied the script, renamed what should be specific for iron and as soon as I’m e.g. at the iron mine and mine things there I get the items twice (see picture).

Would be amazing if someone could help me :slightly_smiling_face:

image

Mining script:
longo_eisenjob.zip (3.4 KB)

Can’t see the error in the script at first glance my guess would be you are using the same names for the server events and thus triggering them in both scripts when you just want to trigger one of them.

Fix would be to rename all your server events and their respective calls on the client.

So by Calling TriggerServerEvent(“Farming:Mentalcatch”,Config.Item1, Config.Item2) you trigger it in the server side of the gold script and in the iron script.

1 Like

Youre the best! :smiley: Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.