Haykelendin
New member
- Joined
- Jul 26, 2026
- Messages
- 1
- Reaction score
- 0
Hello, I want to create a CLEO script that automatically enters a command when I approach a toll booth. I made the following example for the L key. To open the toll booth, I need to type /gise in the chat. I couldn't figure out how to integrate this into the CLEO script. I want to automatically open the chat and type the /gise command.
{$CLEO .cs}
0000:
:1
wait 0
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 2342.8594 -2332.5425 radius 5.0 5.0
jf @1
0AD1: show_formatted_text_highpriority "GISE ~g~AKTIF" time 2000
// Press the L key
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x4C state 255
wait 30
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x4C state 0
wait 1000
jump @1
:Set_Virtual_Key
{
255 = true
0 = false
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
{$CLEO .cs}
0000:
:1
wait 0
if
00EC: actor $PLAYER_ACTOR sphere 0 near_point 2342.8594 -2332.5425 radius 5.0 5.0
jf @1
0AD1: show_formatted_text_highpriority "GISE ~g~AKTIF" time 2000
// Press the L key
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x4C state 255
wait 30
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x4C state 0
wait 1000
jump @1
:Set_Virtual_Key
{
255 = true
0 = false
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0