Single vehicle - 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: Single vehicle (
/showthread.php?tid=630667)
Single vehicle -
AlexPalermitano97 - 17.03.2017
How do I create a list of vehicles and pressing a button will only create these vehicles? For example, only sports cars, I see a sultan, after I see a zr, after I see a tourist and I do not see the other machine types, how do I?
Re: Single vehicle -
Toroi - 17.03.2017
You can use mSelection
https://sampforum.blast.hk/showthread.php?tid=407045
Create a file.txt inside your scriptfiles folder and edit it to match the vehicles you want. Then call for the file with
Quote:
LoadModelSelectionMenu(f_name[])
|
More info in the link.
Re: Single vehicle -
AlexPalermitano97 - 17.03.2017
And for a price of vehicle?
Re: Single vehicle -
Toroi - 17.03.2017
You can manage that under
OnPlayerModelSelection(playerid, response, listid, modelid);
Re: Single vehicle -
AlexPalermitano97 - 17.03.2017
OK, thanks