CLEO Help Get info from server script

CLEO related
Status
Not open for further replies.

Grubitsh

Active member
Joined
Jul 28, 2014
Messages
104
Reaction score
0
Hi,

Here is a server script for the gym where you have to hit the arrow keyboard to complete it. Is their a way to get the information about "what arrow you need to hit" with CLEO ?

Thanks

[video=youtube]https://youtu.be/9Pikvo89TV4//[/video]​
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Looks like GamText, but could also be a textdraw? https://wiki.sa-mp.com/wiki/GameTextStyle

From the wiki
~u~ up arrow (gray)
~d~ down arrow (gray)
~<~ left arrow (gray)
~>~ right arrow (gray)
You can either use SF and hook the gameText RPC. And compare the string with those above.
Or you can check the current text at this address 0x00BAAE43, and check if it's ~u~ etc.
And then either set the key using http://ugbase.eu/Thread-SNIPPET-Send-KeyPress-via-Gta
or SF opcode 0B56: set_game_key 1@ state 2@
 
Status
Not open for further replies.
Top