Rage UI: Small Problem (Client - Server)

Hi all,

I am making a clock in / out menu using RageUI.

When creating the button to get items that LSPD get (handcuffs, GSR kits etc etc), I encountered an issue.

When I press the button to get said equipment, on the client side it prints once, code provided in screenshot below. (“test” prints once in the F8 client console)

image
(press to see in full screen)

However on the server side of things, when the request is sent from the client it prints sometimes to up to 4 times. I have debugged a bit and the timestamp is the exact same time per request, code provided below:


(press to see in full screen)

As said as above print(os.time()) is printing the same timestamp on all of the requests.

Overview of the problem:

When the client presses a button on my clock in menu to get the equipment for their job, it is printing once in the client console. When the server picks up the request it is printing up to 4 times at the exact same timestamp.

If their is anymore information anyone wants to know, feel free to ask.

Any help would be fantastic.

Thanks,
Jonny

Anyone here

Have you tried triggering the server event using a normal command? To make sure that it’s not an issue with the menu.
Also, make sure that you don’t have the server script loaded multiple times in the fxmanifest.lua, or in multiple resources.