MightyAnimals Posted July 8, 2014 Author Share Posted July 8, 2014 Anyone who can assist me with this part? Link to comment
.:HyPeX:. Posted July 8, 2014 Share Posted July 8, 2014 Well there you are doing something wrong if you want "carname[model]" to actually do something since its just a key value/string being search for, not any table position thought. Link to comment
MightyAnimals Posted July 9, 2014 Author Share Posted July 9, 2014 Yeah, I know that though. That was just what I've tried to do. Link to comment
MightyAnimals Posted July 9, 2014 Author Share Posted July 9, 2014 Don't know what I should place there actually. Link to comment
Moderators IIYAMA Posted July 9, 2014 Moderators Share Posted July 9, 2014 how did you saved this element data? Link to comment
MightyAnimals Posted July 9, 2014 Author Share Posted July 9, 2014 The carnames, I saved those in a server sided script. That's what I use to let the carname show when I enter the car *Thanks to MrTasty* .. tostring(carname[getElementModel(source)][1]) .. Link to comment
MightyAnimals Posted July 10, 2014 Author Share Posted July 10, 2014 Not sure if that's what you mean.. Link to comment
MightyAnimals Posted July 11, 2014 Author Share Posted July 11, 2014 Does someone have the solution? Link to comment
Addlibs Posted July 16, 2014 Share Posted July 16, 2014 That did work!I got another problem table.insert(content, {" - " ..(getElementData(source, "carname[model]") or getVehicleNameFromModel( getElementModel( source ) ))} ) I've tried some options neither did they work. I actually want the custom carname to show instead of the mta model Aren't you just trying to take out the value from the table? No point of getElementData. I'm pretty sure this'll work: table.insert(content,{ " - " ..(carname[getElementModel(source)] or getVehicleNameFromModel(getElementModel(source)))}) But what exactly are you trying to do by putting the custom name into a table? 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