This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Вопрос RedAge v3 - Adding/Replacing vehicles in autorooms.

n0mercy93

Новый участник
25 Дек 2023
5
2
15
Hello, I wonder what steps in total do I have to do in order to properly add/remove vehicle from autoroom.
By search I found if for example

C++:
 new List<string>() // elite
            {
                "Caddy",
                "new_vehicle" // example of the vehicle name
            } // elite
        };


C++:
 { NAPI.Util.GetHashKey("Deathbike3"), new VehicleInfo("Elite Autoroom", 5, 700000, "Deathbike3")},
 { NAPI.Util.GetHashKey("new_vehicle"), new VehicleInfo("Elite Autoroom", 15, 999000, "New Vehicle")} // example of the new vehicle

Number 15 in code represents what? And number 999000 represent price, right?

In database I found only "bus_products" that is related to ordering a products in the biz.

I can spawn the car that's no issue but regarding all the steps into properly replacing cars for another cars without real life badges that's not clear to me.

Thanks in advance for reading.
 

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
2,284
234
5
To properly add or remove a vehicle from an autoroom, you will need to follow these steps:

1. Define the vehicle names in the elite list. For example:

Код:
new List<string>()
{
    "Caddy",
    "new_vehicle" // example of the vehicle name
}

2. Add the vehicle information to the vehicle hash key list. For example:

Код:
{ NAPI.Util.GetHashKey("Deathbike3"), new VehicleInfo("Elite Autoroom", 5, 700000, "Deathbike3")},
{ NAPI.Util.GetHashKey("new_vehicle"), new VehicleInfo("Elite Autoroom", 15, 999000, "New Vehicle")} // example of the new vehicle

Here, the number 15 represents the number of vehicles that can be stored in the autoroom, and 999000 represents the price of the vehicle.

Please note that in the database, the "bus_products" table is only related to ordering products in the business, not to adding or replacing vehicles in the autoroom.

You can spawn the car without any issues. However, make sure to follow the above steps to properly replace cars with other cars that don't have real-life badges.

Hope this helps!
 
Реакции: n0mercy93