CLEO Help Game speed less than 0.

CLEO related
Status
Not open for further replies.

qweasdz

Active member
Joined
Nov 4, 2014
Messages
147
Reaction score
7
When you try to set your game speed to 0% or less and try to drive a car, server thinks that you drive at 100km/h for example, but you barely moving. Is it possible somehow to make that you DONT MOVE AT all but the server thinks that im going at 100km/h?

Thanks <3
 

qweasdz

Active member
Joined
Nov 4, 2014
Messages
147
Reaction score
7
Car slapper

Outgoing veh data speed angles
X += sin(cam rot) * 50.0
Y += cos(cam rot) * 50.0

small pseudon prototype

Hf

Honestly, i dont know nothing about cleos and stuff like that, mind explaining a bit? :D

Thank you tho!
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
226
Location
( ͡° ͜ʖ ͡°)
Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0BE2: setup_outcoming_packet_hook @CarHook



WHILE TRUE
    WAIT 0
    IF
    0AB0: KEY_ON
    THEN
        REPEAT
            WAIT 0
        UNTIL 8AB0: KEY_ON
        0B12: 0@ = 0@ XOR TRUE   
    END
    IF
    0@ == TRUE
    THEN
        PRINTF "Setting velocity to 0" 1000
    
    END
END


:CarHook
IF
0@ == true
THEN
    0BE5: raknet 31@ = get_hook_param PARAM_PACKETID
    
    IF
    31@ == PACKET_VEHICLE_SYNC
    THEN
          
        0BE5: 30@ = get_hook_param PARAM_BITSTREAM
        0AC8: 29@ = allocate_memory_size 64
        0BE8: bit_stream 30@ read_array 29@ size 64         
                      
        0C0C: 1@  = struct 29@ offset 0  size 1    //packetid
        
                  
        0C0C: 12@  = struct 29@ offset 36  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 14@  = struct 29@ offset 40  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 15@  = struct 29@ offset 44  size 4 // float fMoveSpeed[3]; + 36
        
    
        0C0D: struct 29@ offset 28  size 4 = 0  // float fMoveSpeed[3]; + 36
        0C0D: struct 29@ offset 32  size 4 = 0 // float fMoveSpeed[3]; + 36   
        0C0D: struct 29@ offset 36  size 4 = 0 // float fMoveSpeed[3]; + 36

                                  

        0BEA: raknet bit_stream 30@ reset_write_pointer
        0B40: raknet bit_stream 30@ write 29@ type BS_TYPE_ARRAY size 64         
        0AC9: free_allocated_memory 29@
                
                
        END
    END
END
 

qweasdz

Active member
Joined
Nov 4, 2014
Messages
147
Reaction score
7
Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0BE2: setup_outcoming_packet_hook @CarHook



WHILE TRUE
    WAIT 0
    IF
    0AB0: KEY_ON
    THEN
        REPEAT
            WAIT 0
        UNTIL 8AB0: KEY_ON
        0B12: 0@ = 0@ XOR TRUE 
    END
    IF
    0@ == TRUE
    THEN
        PRINTF "Setting velocity to 0" 1000
  
    END
END


:CarHook
IF
0@ == true
THEN
    0BE5: raknet 31@ = get_hook_param PARAM_PACKETID
  
    IF
    31@ == PACKET_VEHICLE_SYNC
    THEN
        
        0BE5: 30@ = get_hook_param PARAM_BITSTREAM
        0AC8: 29@ = allocate_memory_size 64
        0BE8: bit_stream 30@ read_array 29@ size 64       
                    
        0C0C: 1@  = struct 29@ offset 0  size 1    //packetid
      
                
        0C0C: 12@  = struct 29@ offset 36  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 14@  = struct 29@ offset 40  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 15@  = struct 29@ offset 44  size 4 // float fMoveSpeed[3]; + 36
      
  
        0C0D: struct 29@ offset 28  size 4 = 0  // float fMoveSpeed[3]; + 36
        0C0D: struct 29@ offset 32  size 4 = 0 // float fMoveSpeed[3]; + 36 
        0C0D: struct 29@ offset 36  size 4 = 0 // float fMoveSpeed[3]; + 36

                                

        0BEA: raknet bit_stream 30@ reset_write_pointer
        0B40: raknet bit_stream 30@ write 29@ type BS_TYPE_ARRAY size 64       
        0AC9: free_allocated_memory 29@
              
              
        END
    END
END


When i try to compile it, it says "Not enough actual parameters. Expected 1 params."
 
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,115
Solutions
5
Reaction score
879
Location
Lithuania
When i try to set KEY_ON to 17 (Ctrl) it says "Not enough actual parameters. Expected 2 params."

Plox help im nub ok
PHP:
{$CLEO .cs}
{$INCLUDE SF}

0000: NOP

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

0BE2: setup_outcoming_packet_hook @CarHook

WHILE TRUE
    WAIT 0
    IF
    0AB0: 90 // Z
    THEN
        REPEAT
            WAIT 0
        UNTIL 8AB0: 90 // Z
        0B12: 0@ = 0@ XOR TRUE   
    END
    IF
    0@ == TRUE
    THEN
        PRINTF "Setting velocity to 0" 1000
    
    END
END


:CarHook
IF
0@ == TRUE
THEN
    0BE5: raknet 31@ = get_hook_param PARAM_PACKETID
    
    IF
    31@ == PACKET_VEHICLE_SYNC
    THEN
          
        0BE5: 30@ = get_hook_param PARAM_BITSTREAM
        0AC8: 29@ = allocate_memory_size 64
        0BE8: bit_stream 30@ read_array 29@ size 64         
                      
        0C0C: 1@  = struct 29@ offset 0  size 1    //packetid
        
                  
        0C0C: 12@  = struct 29@ offset 36  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 14@  = struct 29@ offset 40  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 15@  = struct 29@ offset 44  size 4 // float fMoveSpeed[3]; + 36
        
    
        0C0D: struct 29@ offset 28  size 4 = 0  // float fMoveSpeed[3]; + 36
        0C0D: struct 29@ offset 32  size 4 = 0 // float fMoveSpeed[3]; + 36   
        0C0D: struct 29@ offset 36  size 4 = 0 // float fMoveSpeed[3]; + 36

                                  

        0BEA: raknet bit_stream 30@ reset_write_pointer
        0B40: raknet bit_stream 30@ write 29@ type BS_TYPE_ARRAY size 64         
        0AC9: free_allocated_memory 29@
    END
END
 

qweasdz

Active member
Joined
Nov 4, 2014
Messages
147
Reaction score
7
PHP:
{$CLEO .cs}
{$INCLUDE SF}

0000: NOP

REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

0BE2: setup_outcoming_packet_hook @CarHook

WHILE TRUE
    WAIT 0
    IF
    0AB0: 90 // Z
    THEN
        REPEAT
            WAIT 0
        UNTIL 8AB0: 90 // Z
        0B12: 0@ = 0@ XOR TRUE  
    END
    IF
    0@ == TRUE
    THEN
        PRINTF "Setting velocity to 0" 1000
   
    END
END


:CarHook
IF
0@ == TRUE
THEN
    0BE5: raknet 31@ = get_hook_param PARAM_PACKETID
   
    IF
    31@ == PACKET_VEHICLE_SYNC
    THEN
         
        0BE5: 30@ = get_hook_param PARAM_BITSTREAM
        0AC8: 29@ = allocate_memory_size 64
        0BE8: bit_stream 30@ read_array 29@ size 64        
                     
        0C0C: 1@  = struct 29@ offset 0  size 1    //packetid
       
                 
        0C0C: 12@  = struct 29@ offset 36  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 14@  = struct 29@ offset 40  size 4 // float fMoveSpeed[3]; + 36
        0C0C: 15@  = struct 29@ offset 44  size 4 // float fMoveSpeed[3]; + 36
       
   
        0C0D: struct 29@ offset 28  size 4 = 0  // float fMoveSpeed[3]; + 36
        0C0D: struct 29@ offset 32  size 4 = 0 // float fMoveSpeed[3]; + 36  
        0C0D: struct 29@ offset 36  size 4 = 0 // float fMoveSpeed[3]; + 36

                                 

        0BEA: raknet bit_stream 30@ reset_write_pointer
        0B40: raknet bit_stream 30@ write 29@ type BS_TYPE_ARRAY size 64        
        0AC9: free_allocated_memory 29@
    END
END


Still crashing
 

qweasdz

Active member
Joined
Nov 4, 2014
Messages
147
Reaction score
7
Reinstalled sf and cleo, just goes black screen and after 2-4 secs turns off.

SF version: 5.4.1
Cleo: 4.1
 

qweasdz

Active member
Joined
Nov 4, 2014
Messages
147
Reaction score
7
Crash log:

SA-MP 0.3.7
Exception At Address: 0x00000000
Base: 0x04170000

Registers:
EAX: 0x000000A7 EBX: 0x040205B0 ECX: 0x040205B0 EDX: 0x00001F1F
ESI: 0x00000064 EDI: 0x00004156 EBP: 0x00004156 ESP: 0x0177F548
EFLAGS: 0x00210202

Stack:
+0000: 0x723E2052 0x040205B0 0x723E2037 0x722774E7
+0010: 0x00004156 0x0F27B840 0x040205B0 0x0177F764
+0020: 0x01ADC9E0 0x722774FC 0x040205B0 0x0177F754
+0030: 0x7226B3E9 0x040205B0 0x01AD5EA8 0x0EE925E8
+0040: 0x0177F780 0x00000101 0x0177F764 0x00200246
+0050: 0xCB6D1023 0x044701DC 0x00200206 0x00200217
+0060: 0x12229752 0x00000000 0x00000000 0x00000000
+0070: 0x00000000 0x00000000 0x00000000 0x00000000
+0080: 0x00000000 0x00000000 0x0177F878 0x6AF6317B
+0090: 0x14F93C20 0x0177F878 0x044545B3 0x00000009
+00A0: 0x6AF6317B 0x0417B517 0x0417B517 0x22FFE15F
+00B0: 0x0417B517 0x22FFE15F 0x04178515 0x00200217
+00C0: 0x0417B468 0x0417B468 0x0177F730 0x0425B18E
+00D0: 0x0177F8C0 0x0177F710 0x41085E15 0x0417A603
+00E0: 0x0177F878 0x0177F772 0x0177F730 0x0425B18F
+00F0: 0x0177F8C0 0x0177F730 0x41085E15 0x0417A601
+0100: 0x0177F878 0x0417B517 0x00200216 0x00000014
+0110: 0x0000003C 0x0000FF00 0x00001115 0x01000000
+0120: 0x00000000 0x00000000 0x01000000 0x00200246
+0130: 0xCB6D1023 0x044701DC 0x00200206 0x00200217
+0140: 0x12229752 0x00000000 0x00000000 0x00000000
+0150: 0x00000000 0x00000000 0x00000000 0x00000000
+0160: 0x00000000 0x00000000 0x0177F878 0x6AF6317B
+0170: 0x14F93C20 0x0177F878 0x044545B3 0x00000009
+0180: 0x6AF6317B 0x0417B517 0x0417B517 0x22FFE15F
+0190: 0x0417B517 0x22FFE15F 0x04178515 0x00200217
+01A0: 0x0417B468 0x0417B468 0x0177F730 0x0425B18E
+01B0: 0x0177F8C0 0x0177F710 0x41085E15 0x0417A603
+01C0: 0x0177F878 0x0177F772 0x0177F730 0x0425B18F
+01D0: 0x0177F8C0 0x0177F730 0x41085E15 0x0417A601
+01E0: 0x0177F878 0x0417B517 0x00200216 0x00000014
+01F0: 0x0000003C 0x0000FF00 0x00001115 0x01000000
+0200: 0x00000000 0x00000000 0x01000000 0x7226C79D
+0210: 0x0F27B840 0x0177F790 0x0177F8C8 0x0177F78C
+0220: 0x0177F8B4 0x0177F77F 0x0177F78C 0x0177F8B4
+0230: 0x0177F77F 0x01ABBC88 0x0177F8DC 0x7226D205
+0240: 0x0177F8B4 0x00000001 0x14F93C20 0x0F48E478
+0250: 0x00000028 0x00000150 0x00000800 0x00000000
+0260: 0x0177F7AD 0x41280C01 0x44413333 0x43314232
+0270: 0x44313535 0x41363446 0x36323341 0x45373039

SCM Op: 0x160, lDbg: 0 LastRendObj: 0

Game Version: US 1.0

State Information: Ped Context: 0
 
Status
Not open for further replies.
Top