Client.lua to server.lua

i have a staff menu script that has 1700 lines in client side and it doesent have server side that it is needed is there any converter or somehow to create the server.lua to work

this is the client.lua : pastebin.com/raw/1yvfTbYU

i will pay someone if can create a server.lua for my script

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

There’s no “easy” way to convert client code to being on the server side, if you don’t know what you’re doing see if someone with a good deal of Lua expertise can help you out.

can you help me

I don’t have nearly enough experience with this stuff to bother unfortunately, it’ll take me forever and I most probably won’t even be successful. Best find someone who knows how to do these things lol

do you know someone who can do it for me

Try using AI, GPT 4o seems to be pretty good at code, I had it create a server.lua for my client.lua on another script I made.

yeah i tried it but it always writes the same thing as the client what did you tell to chat gpt convert the script or create?

I don’t know how well this will work, or if it will even work… But:
server.lua (7.7 KB)

thnx for your time because i dont know how to use well chat gpt as you can you say to chat gpt that the server.lua needs to be at least 700 lines to work and it will do it things but some of the commands are working but the main menu doesent work so if you can do it you would realy help me!!! thnx!!!

What makes you think it needs to be 700 lines? I have full scripts with client luas welly 900 lines, and server lua being 300. Also you say commands work but main menu doesn’t, can you upload your cfx.re log after starting the resource and trying it?

Feel free to reach out to J. Bond @ CrypticRP | FiveM for quicker responses.

i dm’d you

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