Guest Posted July 10, 2018 Posted July 10, 2018 Hello there I wanted to ask you guys when i must do client.lua and server.lua because theres resources with them both and theres resources with server.lua only
Moderators IIYAMA Posted July 10, 2018 Moderators Posted July 10, 2018 (edited) It all depends which computer should execute the code. They run in different environments, even if you run a server on your own device. 1. server (code) Server = computer PING / (~ 2) is IN BETWEEN client and server! = delay = LAG 2. client (same code for every client) client = player = computer client = player = computer client = player = computer etc. Edited July 10, 2018 by IIYAMA Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now