Help How can I get specific area from string (CLEO)

Batuhan337tr

Member
Joined
May 8, 2020
Messages
19
Solutions
1
Reaction score
0
Location
Turkey
I have string from textdraw

GH5 M10015~n~0kmh~n~4m~n~VCPD Devriye

A How can I get before '~n~' like GH5 M10015? (this plate number is Plate length may vary)
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,115
Solutions
5
Reaction score
879
Location
Lithuania
I wasted my precious time for your request..
This is first and last time when i help you.

Use Code below to obtain vehicle number plate.:
PHP:
:SAMPGetCurrentVehicleNumberPlate
{
    0.3.DL
    0AB1: @SAMPGetCurrentVehicleNumberPlate 0 _Returned: NumberPlate 0@
}
IF 0AA2: 31@ = "samp.dll"
THEN
    31@ += 0x2ACA24 // SAMP_INFO_OFFSET
    0A8D: 31@ readMem 31@ sz 4 vp 0
    31@ += 0x3DE // SAMP_PPOOLS_OFFSET
    0A8D: 31@ readMem 31@ sz 4 vp 0
    31@ += 0xC // SAMP_PPOOL_VEHICLE_OFFSET
    0A8D: 31@ readMem 31@ sz 4 vp 0
    0085: 29@ = 31@ // COPY MEMORY
    29@ -= 0x14 // SAMP_CURRENT_VEHICLE_ID_OFFSET
    0A8D: 29@ readMem 29@ sz 4 vp 0
    IF AND
    NOT 29@ == 65535
    29@ >= 0
    00DF:   actor $PLAYER_ACTOR in_car
    THEN
        29@ *= 0x4 // VEHICLE_ID * 0x4
        29@ += 0x1134
        005A: 31@ += 29@
        0A8D: 31@ = readMem 31@ sz 4 vp 0
        31@ += 0x93 // SAMP_VEHICLE_NUMBER_PLATE_OFFSET
        0A8D: 30@ = readMem 31@ sz 1 vp 0
        IF 30@ > 0
        THEN 0485:  return_true
        ELSE
            059A:  return_false
            31@ = 0
        END
    END
END
0AB2: ret 1 31@
 
Last edited:
Top