Jump to content

Help me


FiGo

Recommended Posts

  • Moderators

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
Link to comment
  • 3 weeks later...
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
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...