Car locking help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car locking help (
/showthread.php?tid=247110)
Car locking help -
yarrum3 - 07.04.2011
I have made this for my car dealership but i can't work out how can i lock the car as well.
here is the code
pawn Code:
new vehicle_id1, Text3D:vehicle3Dtext1;
vehicle3Dtext1 = Create3DTextLabel("Blade For Sale | Price: $50000", COLOR_LIGHTBLUE, 0.0, 0.0, 0.0, 20.0, 0, 1);
vehicle_id1 = AddStaticVehicleEx(536,2120.4929,-1133.8273,25.0410,299.3176,0,0,1);
Attach3DTextLabelToVehicle(vehicle3Dtext1, vehicle_id1, 0.0, 0.0, 0.0);
Re: Car locking help -
Alby Fire - 07.04.2011
pawn Code:
new
a,b,c,d,e,f,g;
GetVehicleParamsEx(vehicle_id1,a,b,c,d,e,f,g);
SetVehicleParamsEx(vehicle_id1,a,b,c,1,e,f,g);