PDA

View Full Version : Single vehicle


AlexPalermitano97
17/03/2017, 11:07 AM
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?

Toroi
17/03/2017, 11:19 AM
You can use mSelection

http://forum.sa-mp.com/showthread.php?t=407045

Create a file.txt inside your scriptfiles folder and edit it to match the vehicles you want. Then call for the file with
LoadModelSelectionMenu(f_name[])

More info in the link.

AlexPalermitano97
17/03/2017, 12:42 PM
And for a price of vehicle?

Toroi
17/03/2017, 12:52 PM
You can manage that under OnPlayerModelSelection(playerid, response, listid, modelid);

AlexPalermitano97
17/03/2017, 12:59 PM
OK, thanks