SA-MP Forums Archive
Cars defaultly have paintjobs? [needs fixing] - 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: Cars defaultly have paintjobs? [needs fixing] (/showthread.php?tid=212429)



Cars defaultly have paintjobs? [needs fixing] - Deal-or-die - 17.01.2011

Hey all
with my server cars that i spawn or just any other cars like sultans elegy and a few other models of cars, when you goto a mod garage and mod your car colour (Default car colour is black) to white the paintjob is then visable, anyway to fix this? (its really annoying on a RP serve :P)
thanks alot in advance
Steve


Re: Cars defaultly have paintjobs? [needs fixing] - Joe Staff - 17.01.2011

Make sure you're not setting the vehicles' paintjob to 0


Re: Cars defaultly have paintjobs? [needs fixing] - Deal-or-die - 17.01.2011

lol well thats what i AM doing, what am i ment to set it to? 1(one) mayby?


Re: Cars defaultly have paintjobs? [needs fixing] - Voldemort - 17.01.2011

Paintjobs, same as everything else starts with 0, thats why you need to set paintjob to -1, because 0-3 is paintjobs, but -1 is none

example
pawn Код:
new Paitnjob[MAX_VEHICLES] = { -1, ...};
So by default you set paintjob to -1, but this is just to script understand that car dont have PJ.