SA-MP Forums Archive
Target car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Target car (/showthread.php?tid=484070)



Target car - cuemur - 29.12.2013

Is it possible to target moving car? Like it updates the position when it moves and shows on map?


Re: Target car - Emmet_ - 29.12.2013

Yes - enable "objective" for that vehicle.

pawn Код:
new
    engine,
    lights,
    alarm,
    doors,
    bonnet,
    boot,
    objective;

GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, 1);