monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,127
- Solutions
- 1
- Reaction score
- 158
Can someone explain me how to make use of the following opcodes?
The mod called mastercar.cs released by TH3RM4L which allows to enter restricted vehicles consists mainly of those two opcodes and I wonder how it works.
I google'd 0x12D60 0xC390 and the rest of these addresses to check what they stand for, find similar ones and potentially make use of them but I can't find anything about it.
Code:
0B2E: 1@ = read_samp_memory
0B2D: write samp_memory
The mod called mastercar.cs released by TH3RM4L which allows to enter restricted vehicles consists mainly of those two opcodes and I wonder how it works.
Code:
{$CLEO .cs}
thread 'NOPS'
0ACD: show_text_highpriority "CLEO MADE BY ~R~TH3RM4L" time 10000
:NOPS_1
wait 0
if
0AB0: key_pressed 101
else_jump @NOPS_1
0ACD: show_text_highpriority "NOPS ~G~ON" time 1500
0B2E: 1@ = read_samp_memory 0x12D60 size 2
0B2D: write samp_memory 0x12D60 value 0xC390 size 2
0B2E: 2@ = read_samp_memory 0x13FA0 size 2
0B2D: write samp_memory 0x13FA0 value 0xC390 size 2
0B2E: 3@ = read_samp_memory 0x78560 size 2
0B2D: write samp_memory 0x78560 value 0xC20400 size 2
wait 500
jump @NOPS_2
:NOPS_2
wait 0
if
0AB0: key_pressed 101
else_jump @NOPS_2
0ACD: show_text_highpriority "NOPS ~R~OFF" time 1500
0B2D: write samp_memory 0x12D60 value 1@ size 2
0B2D: write samp_memory 0x13FA0 value 2@ size 2
0B2D: write samp_memory 0x78560 value 3@ size 2
wait 500
jump @NOPS_1
I google'd 0x12D60 0xC390 and the rest of these addresses to check what they stand for, find similar ones and potentially make use of them but I can't find anything about it.