hi, you could check these out, the first one seems shorter but it loops and prevents other code from executing, the second code doesn't stop other code from executing so you could add other stuff within the "WHILE TRUE - END" loop
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY...