ARYDER Posted September 4, 2023 Share Posted September 4, 2023 (edited) Greetings to all! Imagine that there is a GUI-checkbox with the title "Engine on", which, when pressed, turns on/off the vehicle engine. So, if you make a random double click, it may turn out that there is an active "Engine on" checkbox but the engine is turned off - conversely. I know for sure that this problem was bypassed in the standard freeroam and admin resources, but is it always so difficult to solve it? Edited September 4, 2023 by sadvely Link to comment
DiSaMe Posted September 8, 2023 Share Posted September 8, 2023 I'm not sure I can think of a scenario where avoiding such problem would be difficult. If you call triggerClientEvent, then there will be a (usually short) window of time when the state of the checkbox has changed on the client side but the signal hasn't arrived at the server yet. But as long as you pass the desired engine state along with the event data, the checkbox state and the actual engine state should be consistent in the end. Link to comment
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