How can I get a string which stores a car's current numberplate? I'm making a mod for LSPD and I need this.
I already have this but it doesn't work.
Thanks in advance guys.
I already have this but it doesn't work.
Code:
/* //////////////////////
// Unidad.cs //
// Autor: Diego Ramone //
////////////////////// */
{$VERSION 3.1.0027}
{$CLEO .cs}
// PRINCIPAL
if
8AF7: get_samp_base_to 0@
then
0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
:UNIT_01
wait 0
[........CODE..........]
0407: create_coordinate 6@ 7@ 8@ from_car 5@ offset 0.0 15.0 0.0
0AE2: 9@ = random_vehicle_near_point 6@ 7@ 8@ in_radius 8.0 find_next 0 pass_wrecked 1
if
056E: car 9@ defined
then
0ADB: 10@v = car 9@ numberplate
0AF5: write_string 10@v to_ini_file "CLEOVEHICULO.INI" section "VEHICULO" key "P" //IF and SET
end
end
end
jump @UNIT_01
Thanks in advance guys.