I have an old lua script my friend gave me that he used for GTA. I looked at it and i tried many ways to separate the script to client.lua and server.lua but I cannot figure out how to do it. Everytime I think I did it messes up and doesnt work. What its suppose to do is fix your vehicle at the gas station. This way you can roleplay when you break your car taking it to a mechanic to fix it. If anyone has any idea on how to properly seperate it, that would be great! I have attached the original final untouched so you guys can have a look at it.
vehicleRepairStation.lua (15.5 KB)
Uhm there is no “server code”. This is fully client side.
Also tell your friend to look into:
Because this script is a mess