[HELP] PERSONNAL MENU [wip]

Hello, I want to declare this is event in a server.lua TriggerServerEvent (‘GivemoneyCiv’ to be able via the personal menu to give money to a players.

link client.lua : https://pastebin.com/Ai5y0XwK

Menu Personnal

And then I will share my menu on the forum.

The server function you’re looking for is RegisterServerEvent.

Hello, yes I know app met app is to declare it I have to specify the money table with the user or not?

You need to run the RegisterServerEvent for any event you want the client to be able to trigger. Without it, the event cannot be triggered by the client.

Once you have registered the event you can create a handler for it with the AddEventHandler function. This takes two arguments, the name of the event and the function that is called when the event is triggered.

For example, if you had

RegisterServerEvent("event")
AddEventHandler("event", function(arg1, arg2)

end)

on the server, you would be listening for “event”. This would take two arguments and would be triggered by the client using TriggerServerEvent("event", arg1, arg2). Obviously you would change the arguments to be what you want but, you should get the general idea.

Thank you to you I will try

So i tried but i got an error message

screen:
Error

script server.lua : Error

L'index se trouve en dehors des limites du tableau =
google translated: The index is outside the boundaries of the table

So you’re trying to get an element from an array wich doesn’t exist, right?

If it exists in the script: https://pastebin.com/Ai5y0XwK

Please provide the full code and the full error to allow us to help you further, we cannot help without this information.

https://pastebin.com/gsrK8MHp

And the error: The index is outside the limits of the table =

server.lua: https://pastebin.com/yL9ps7TZ

Hey, The error is when i put the some for give money i have an error like:

Nobody Know how to fix That ?

Yeah we give us but first we need to fix the problem for give money ^^

Good luck mate ! If you need any help , just text me .

1 Like

@Galardowyn Hello, yes if you want to help us for the script give money to a civilian through a menu server.lua by themselves que la customer is already done, if you code in lua ca will be with pleasure.

Sorry for my english i use google translation.

So, Yes wee need Help Nobody can help us to fix the Give money to player ?

@nicolas4412

EN : Can you to teamspeak ? (ts.five-m.fr) and poke me plz

FR : Peut-tu me poke sur ts stp ? J’ai une question (ts.five-m.fr)