Jump to content

guiCheckBox problem


ARYDER

Recommended Posts

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 by sadvely
Link to comment

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...