20.05.2018, 17:55
I won't advise you to do that. Because that will mess up the script, as it will interfere with the way that the script works. Unless You wan't to re-script the thing, I may have a solution. And that is to just add your Pizza bikes inside the FS.
To add a pizza bike, Follow these steps.
Change the number 'x' to the amount of pizza bikes you are going to add.
Next, You would add a pizza bike like so:
Remember, You have to specify each vehicles coords. Click here for CreateVehicle syntax.
Now comes a part which you can deal with in two ways. Static and Dynamic. You have to change the limit of the loops. You do that by changing all the for loops that look like this:
to this:
where x is the number you mentioned earlier.
The other way is to do:
This automatically get the array size and you don't have to keep on changing this. The second way is much better.
NOTE: I have not tested this code. This is to make you understand different approach to solve your problems. There might be other places in the script where the script creator uses 5 vehicles. You have to learn to adapt and improvise.
To add a pizza bike, Follow these steps.
PHP код:
new pizzabikes[x];
Next, You would add a pizza bike like so:
PHP код:
pizzabikes[x] = CreateVehicle(448,2094.0500,-1821.4058,12.9817,90.0841,3,6,60000,0); // Pizzaboy
Now comes a part which you can deal with in two ways. Static and Dynamic. You have to change the limit of the loops. You do that by changing all the for loops that look like this:
PHP код:
for(new j=0;j<5;j++)
PHP код:
for(new j=0;j<x;j++)
The other way is to do:
PHP код:
for(new j=0;j<sizeof(pizzabikes);j++)
NOTE: I have not tested this code. This is to make you understand different approach to solve your problems. There might be other places in the script where the script creator uses 5 vehicles. You have to learn to adapt and improvise.