Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Hello guys!


flippaaa111
 Share

Recommended Posts

Hello guys! I have something to say first. I love Marty Mcfly, ZaZ and Opcode.exe thank you guys for great hard work! Also I have a cleo script that seems to not work. Once again I am kind of messing around with code in SannyBuilder just to see what I can do. Here is the code, How can i get this to work with keypress 8, backspace.

 

{$CLEO .cs}
:DEMOTEXT
03A4: name_thread "DEMO"
wait 1000

:DEMOTEXT_1
wait 0
if
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @DEMOTEXT_1
if
00E1:   key_pressed  0  8
then
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0
end
004D: jump_if_false @DEMOTEXT_1
00BA: text_styled 'FEM_OK'  1000 ms  1
0A93: end_custom_thread

Edited by flippaaa111
Link to comment
Share on other sites

use opcde 0AB0:   key_pressed 8

 

-------------------------------------------

 

opcode 00E1: is the original from Rockstar and can be set in controller menue

 

00E1:   player 0 pressed_key 15
 

 

player 0 means the default player in opposite to player 1 for second player of console version

its allways player 0 in our scripts

 

pressed_key 15 is the real key_press number

15 = enter/exit

 

The explanation of the 00E1: key numbers is documented in Sannybuilder HELP: SCM Documentation >> GTA SA >> Keypress numbers

They are discribed as function which are changeable in controller menue

 

-------------------------------------------

 

opcode 0AB0: can only be used if Cleo is installed

 

0AB0:   key_pressed 8
 

 

8 = Backspace (Decimal)

 

The explanation of the 0AB0: key numbers is documented in Sannybuilder HELP: CLEO 3 Code Library >> Virtual key codes (for 0AB0)

 

 

Quote

Virtual Key Codes

 


1      left mouse button
2     right mouse button
3     control-break processing
4     middle mouse button
8     backspace key
9     tab key
12     clear key
13     enter key
16     shift key
17     ctrl key
18     alt key
19     pause key
20     caps lock key
27     esc key
32     spacebar
33     page up key
34     page down key
35     end key
36     home key
37     left arrow key
38     up arrow key
39     right arrow key
40     down arrow key
41     select key
42     print key
43     execute key
44     print screen key
45     ins key
46     del key
47     help key
48     0 key
49     1 key
50     2 key
51     3 key
52     4 key
53     5 key
54     6 key
55     7 key
56     8 key
57     9 key
65     a key
66     b key
67     c key
68     d key
69     e key
70     f key
71     g key
72     h key
73     i key
74     j key
75     k key
76     l key
77     m key
78     n key
79     o key
80     p key
81     q key
82     r key
83     s key
84     t key
85     u key
86     v key
87     w key
88     x key
89     y key
90     z key
96     numeric keypad 0 key
97     numeric keypad 1 key
98     numeric keypad 2 key
99     numeric keypad 3 key
100     numeric keypad 4 key
101     numeric keypad 5 key
102     numeric keypad 6 key
103     numeric keypad 7 key
104     numeric keypad 8 key
105     numeric keypad 9 key
106     multiply key
107     add key
108     separator key
109     subtract key
110     decimal key
111     divide key
112     f1 key
113     f2 key
114     f3 key
115     f4 key
116     f5 key
117     f6 key
118     f7 key
119     f8 key
120     f9 key
121     f10 key
122     f11 key
123     f12 key
144     num lock key
145     scroll lock key
160     left shift key
161     right shift key
162     left control key
163     right control key

 

 

 

 

 

Edited by ZAZ
  • Like 1
Link to comment
Share on other sites

hey zaz can you tell me why I press the keypress key and the velocity code only works once and then it wont move me ever again?

Link to comment
Share on other sites

 

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0

 

opcode 083C: needs to loop

 

If you understand the code as a drive and compare it with an car engine, then the code acts like 1x igniting to move the piston of the engine
But a lot of ignition processes are necessary to drive

 

you can easily test this way, put more codes with wait 10 inside

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0
wait 10
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0
wait 10
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0
wait 10
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0
wait 10
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0
wait 10
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0

 

Edited by ZAZ
  • Like 1
Link to comment
Share on other sites

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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.