Dice Posted April 3, 2013 Posted April 3, 2013 if I use this will it be synced for other players? what if u set someones position then reconnect? will they be at their old spot or the new position u set?
Moderators IIYAMA Posted April 3, 2013 Moderators Posted April 3, 2013 If you set Element position of yourself, it will be synced for other players, but not directly. player_sync_interval 100ms Default update time. The time before this will be updated after the "setElementPosition" is between 1 t/m 100 milliseconds. https://wiki.multitheftauto.com/wiki/Sy ... l_settings When you set the position of another player, he will be updated back to his old position, unless he isn't streamed. With this you can control that: https://wiki.multitheftauto.com/wiki/Se ... Streamable 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
Moderators IIYAMA Posted April 3, 2013 Moderators Posted April 3, 2013 Also about reconnect: If you reconnect, then you will download the server information from the location from the element. If the element do have sync_interval (ped/player vehicle) you will download the last element position. https://wiki.multitheftauto.com/wiki/Se ... Streamable SetElementStreamable, will only be managed at client side. Note sync_interval, you can disable it by using: (this is server side) https://wiki.multitheftauto.com/wiki/SetElementSyncer 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