Jump to content

admin panel


5150

Recommended Posts

what is the file that has the list of vehicles in the admin panel? like, there are XML files inside [ADMIN] for skin, weather, interior, etc but where is the one for vehicles? i want to delete some vehicles from the vehicle spawn list on the admin panel

Link to comment

The vehicles actually don't have a "list." The script just uses a loop to get all the vehicle models. Go into admin\client\gui\admin_main.lua. There's a for loop, should be lines ~126-130:

                            for i = 400, 611 do 
                                if ( getVehicleNameFromModel ( i ) ~= "" ) then 
                                    table.insert( vehicleNames, { model = i, name = getVehicleNameFromModel ( i ) } ) 
                                end 
                            end 

You can write if statements to check the vehicle model and tell the script if it should add it or not.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...