: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@