r/lua • u/Practical-Garden7505 • Oct 31 '26
Help Lua client sided
Does anyone know how to make something not client sided and show for other people on a five m server seems ai can’t figure it out or I need server resource files there’s gotta be another way
0
Upvotes
View all comments
0
u/faustinresources 22d ago
You can't skip the server part on FiveM, but it's a small file. The usual pattern is: client asks the server, server tells everyone.
client.lua
server.lua
Add both to fxmanifest (client_script / server_script) and that's it.
If it's an object or vehicle, you don't even need events: create it as a networked entity (CreateObject with isNetwork = true) and with OneSync everyone nearby sees it. For values other players should read, look up state bags (Entity(ent).state), they sync for you.