FiGo Posted January 2, 2018 Share Posted January 2, 2018 How to rename any car with another name can you tell me function for it or how to make it Link to comment
DNL291 Posted January 2, 2018 Share Posted January 2, 2018 https://community.multitheftauto.com/index.php?p=resources&s=details&id=488 Link to comment
FiGo Posted January 2, 2018 Author Share Posted January 2, 2018 I donot mean that i mean i want to add in the shop of the car another name like sultan change it to ferrari Link to comment
DRW Posted January 2, 2018 Share Posted January 2, 2018 1 minute ago, FiGo said: I donot mean that i mean i want to add in the shop of the car another name like sultan change it to ferrari You can't change the original name, you can tweak the shop system though. Link to comment
FiGo Posted January 2, 2018 Author Share Posted January 2, 2018 How And another servers made it Link to comment
DNL291 Posted January 2, 2018 Share Posted January 2, 2018 What do you mean by "shop"? It's a script? You can make something like this to get a modified vehicle name: vehicleNames = { ["Infernus"] = "Infernus custom name", ["Jester"] = "Jester custom name" } function getCustomVehicleName( veh ) if veh and isElement(veh) then return vehicleNames[getVehicleName(veh)] or false end return false end 1 Link to comment
FiGo Posted January 3, 2018 Author Share Posted January 3, 2018 Can i change infernus to any name else Link to comment
Storm-Hanma Posted January 3, 2018 Share Posted January 3, 2018 (edited) Go to freeroam folder/vehicles XML edit vehicle.XML rename the infernus to your choice name Edited January 3, 2018 by Khadeer143 1 Link to comment
FiGo Posted January 6, 2018 Author Share Posted January 6, 2018 Guys i have script for vehicle system i want to rename cars but it is made by id i want to make it by names Link to comment
Dimos7 Posted January 22, 2018 Share Posted January 22, 2018 (edited) getVehicleModelFromName Edited January 22, 2018 by Dimos7 Link to comment
FiGo Posted January 22, 2018 Author Share Posted January 22, 2018 and then It donot rename I want to rename regina advanced hummer but it donot work Link to comment
kieran Posted January 22, 2018 Share Posted January 22, 2018 (edited) 51 minutes ago, FiGo said: and then It donot rename I want to rename regina advanced hummer but it donot work I guess you are doing getVehicleNameFromModel as well as a for loop to go through vehicle IDs and get there names, adding a row to a grid list, just add it to check the model, so if you see something like Name = getVehicleNameFromModel then add an if to change "Name" to "advanced hummer" It's hard to give you an answer when nobody has any code for your script, the point of giving a code snippet is so that we know how your script works and in this case, how you are adding the vehicle names.... If we knew that, it would of been solved 20 days ago If you downloaded resource from forums, then would be nice if you gave a link, that way we could add working code. Edited January 22, 2018 by kieran 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