Jump to content

Help me


FiGo

Recommended Posts

Posted
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.

tJ5zeFm.gif

Proud owner and developer of ZNEXT: Aftermath.

Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience.

Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. 

Español, Pусский, Türk, عربى, Polski, Português

IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB

Posted

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

Please do not PM me with scripting related question nor support, use the forums instead.

  • 3 weeks later...
Posted (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 by kieran

 

 

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...