5150 Posted May 22, 2016 Share Posted May 22, 2016 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
xXMADEXx Posted May 26, 2016 Share Posted May 26, 2016 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now