CLEO Help Component ignore

CLEO related
Status
Not open for further replies.

notgood

Active member
Joined
Feb 3, 2017
Messages
49
Reaction score
0
Modding a vehicle will cause a warning when tuning the vehicle from the server.
So I am looking for CLEO to eliminate the server tuning effect.
In other words, I want to know if there is a cleo that ignores the AddVehicleComponent function.
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
I don't know. You will have to search for it.

You could setup an incoming RPC hook and block the id of the RPC itself.
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
RPC ID is 96, setup incoming RPC hook and check for ID 96, if it turns true, then return hook value to FALSE via 0BE0, else if you got s0beit then activate SetVehicleUpgrade/Color ingame.

Code:
{$CLEO}

THREAD "NOP"

REPEAT
WAIT 0
UNTIL SAMP.Available()

CONST
PARAM_PACKETID = 1
END

0BE3: @inRPC

WHILE TRUE
WAIT 0
END

:inRPC
WAIT 0
0BE5: 1@ = PARAM_PACKETID
        IF
            1@ == 96
        THEN
            0BE0: FALSE
        END
0BE0 :TRUE

You will need sampfuncs if you use that.
 

notgood

Active member
Joined
Feb 3, 2017
Messages
49
Reaction score
0


0B36 said:
RPC ID is 96, setup incoming RPC hook and check for ID 96, if it turns true, then return hook value to FALSE via 0BE0, else if you got s0beit then activate SetVehicleUpgrade/Color ingame.

Code:
{$CLEO}

THREAD "NOP"

REPEAT
WAIT 0
UNTIL SAMP.Available()

CONST
PARAM_PACKETID = 1
END

0BE3: @inRPC

WHILE TRUE
WAIT 0
END

:inRPC
WAIT 0
0BE5: 1@ = PARAM_PACKETID
        IF
            1@ == 96
        THEN
            0BE0: FALSE
        END
0BE0 :TRUE

You will need sampfuncs if you use that.
Thank you for your very helpful code.
Sorry, can you compile? My sanny builder is broken and can not work.
 
Status
Not open for further replies.
Top