Make a folder with an fxmanifest.lua and a client.lua, register a command with RegisterCommand, start it with ensure and use restart yourscript after each change. Server code goes in server.lua and talks to the client through events.
The full guide: Write your first FiveM script in Lua
Questions, corrections or something the guide missed? Reply here and we will fold the good answers back into it.
The full guide: Write your first FiveM script in Lua
Questions, corrections or something the guide missed? Reply here and we will fold the good answers back into it.
0 likes