CLEO Help Activating sobeit?

CLEO related
Status
Not open for further replies.

ChampaRando

Active member
Joined
Jan 17, 2020
Messages
62
Reaction score
3
Location
INDIA
Hey lads.

I have my script that detects coords and sends messages to chat.
But what I wanna do is activate/toggle S0beit at a certain location.
As you know F12 is the keyboard key used to toggle sobeit, how can I do it with Cleo?
Is there a function to press keys like AHK or are they only registered in GTA SA itself?
How can I do this?

I want to do this because I want to temporarily use the NOP SetPlayerPos at a certain location, for like 10 sec, then disable it. I don't know if any Cleo can do that with a toggle, I only know sobeit
What's my best option?

Thank you heaps.
 

ChampaRando

Active member
Joined
Jan 17, 2020
Messages
62
Reaction score
3
Location
INDIA
Okay, since I do not want to create more threads, can someone help me here again? it's a different context but;

Code:
        if
                00EC:   actor $PLAYER_ACTOR sphere 0 near_point 2373.9546 -1138.9854 radius 3.0 3.0 //CL-HOUSE
        then
                0B2E: 0@ = read_samp_memory offset 0x015970 size 2          //SetPlayerPos NOP ON
                0B2D: write_samp_memory offset 0x015970 value 0xC390 size 2  //SetPlayerPos NOP ON
                0AF8: samp add_message_to_chat "{00FF00}NOP ON"  
                wait 2000
                0C8F: samp process_chat_input "/enter" //get inside the house
                wait 2000
                0C8F: samp process_chat_input "/tp BIZ" // tp to BIZ
                wait 2000
                0B2D: write_samp_memory offset 0x015970 value 0@ size 2 //SetPlayerPos NOP OFF
                0AF8: samp add_message_to_chat "{00FF00}NOP OFF"
                0C8F: samp process_chat_input "/enter" // get inside the biz
                wait 2000
                0C8F: samp process_chat_input "/exit" //get outside the biz
                wait 2000
                0C8F: samp process_chat_input "/.playa" //walk to DH via WalkPathA.txt & WalkPathA.cs
                0AF8: samp add_message_to_chat "{00FF00}walking rn"
                while true
                    if
                            00EC:   actor $PLAYER_ACTOR sphere 0 near_point 51.8815 -293.4846 radius 3.0 3.0 //outside of DH
                    jf Break
                    //0AF8: samp add_message_to_chat "{00FF00}entering DH"   IGNORE I WAS DEBUGGING HERE
                end  
                wait 150
                0AF8: samp add_message_to_chat "{00FF00}entering DH"  // get inside the DH              
        end

See where my "while true" statement exists near the bottom qaurter, I want to achieve this but I can't: Once my cleo script types the cmd "/.playa", I want to again iniate a player's position check. So basically, I the script to pause and check until I arrive at the position noted below (00EC: actor $PLAYER_ACTOR sphere 0 near_point 51.8815 -293.4846 radius 3.0 3.0 //outside of DH). Once I reach here, then this CMD code can continue and print message "entering DH". How can I achieve this? I am a very beginner apologies.

I am sort of getting an idea but just need some help! Currently the entering DH message executes straight away, I want it to wait until the player reaches the DH position
 
Last edited:
Status
Not open for further replies.
Top