5150 Posted May 22, 2016 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 Paid Roleplay Mapper/Server Management - Message on forums or Discord for info Fluent with Owlgaming Code. Discord message for paid full set-ups and help My Discord: 5150#5150 (or .5150) Monky Gaming Roleplay/Adventure Discord (English players and servers interested in collaborating or partnering message me) https://discord.gg/SFBUHknpxy
xXMADEXx Posted May 26, 2016 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. The Ultimate Lua Tutorial! | MTA PHP SDK
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