Posts: 46
Threads: 18
Joined: Dec 2017
Reputation:
0
How can I make custom car spawnpack? like when I type, /spawnpack [carid (not model id] and it will added it to spawnpack, so, when you type /car spawnpack, it will spawned all selected vehicle that you choose from spawnpack..
Posts: 111
Threads: 1
Joined: Sep 2017
Reputation:
0
So you want it to store all the ID's you enter with a command and then spawn all the ID's you've stored.
Posts: 46
Threads: 18
Joined: Dec 2017
Reputation:
0
Can you give me example code?
Posts: 357
Threads: 6
Joined: Feb 2018
You can store the player's vehicle in your database like
Reg_ID PlayerName Veh1 Veh2 and so on..
with the command /spawnpack
And so, when a player use the command /car , a dialog with a list of his spawn pack vehicles should appear. He can select which vehicle he wants from that!
If I'm right!
Posts: 428
Threads: 4
Joined: Feb 2017
Reputation:
0
What do you mean by CarID , it works only with its provided vehicle ids(400-611). You can make an array and then insert the element by typing a command, and you have no idea how to handle arrays, then you may look for a tutorial.
TIP: You can use sscanf kustom params( k<vehicle>) to return the vehicle id using its name.