What is this!?
#1

Hey

When i try to add vehicles in dealership using cars.cfg
and add my vehicle

so when i add one car the last car on the list will disapere.
It seems like there's a limit, anyone who can tell me how to edit this so i can add all the vehicles i want.
Reply
#2

what script is this?
Reply
#3

im using Gtarp
Reply
#4

Carinfo and IsAnOwnableCar need updating when adding new purchasable vehicles.
Reply
#5

Quote:

Carinfo and IsAnOwnableCar need updating when adding new purchasable vehicles.

can you tell me a bit more about how to update it?
Reply
#6

pawn Код:
new CarInfo[284][cInfo];
Increase the size of CarInfo to the amount of vehicles you add. It's used later on in the script, for a loop. Won't go into detail.

pawn Код:
public IsAnOwnableCar(vehicleid)
{
    if(vehicleid >= 184 && vehicleid <= 284) { return 1; }
    return 0;
}
In the code you will need to increase the maximum value.


This is basically saying ..

If the cars vehicle id is greater than, or equal to 184 and less than or equal to 284, return true.
Reply
#7

Thanks alot man, i appreciate it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)