FiGo

Help me

Recommended Posts

How to rename any car with another name can you tell

me function for it or how to make it

Share this post


Link to post

I donot mean that i mean i want to add in the shop of the car another name like sultan change it to ferrari

Share this post


Link to post
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.

Share this post


Link to post

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

 

  • Thanks 1

Share this post


Link to post

Go to freeroam folder/vehicles XML edit vehicle.XML rename the infernus to your choice name 

Edited by Khadeer143
  • Like 1

Share this post


Link to post

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

Share this post


Link to post

and then It donot rename

I want to rename regina advanced hummer but it donot work

Share this post


Link to post
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 by kieran

Share this post


Link to post

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.