MightyAnimals Posted July 8, 2014 Author Posted July 8, 2014 Anyone who can assist me with this part? Need help with something? Message me, and maybe I'll get back to you. And might even do it for a fair price.
.:HyPeX:. Posted July 8, 2014 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. My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
MightyAnimals Posted July 9, 2014 Author Posted July 9, 2014 Yeah, I know that though. That was just what I've tried to do. Need help with something? Message me, and maybe I'll get back to you. And might even do it for a fair price.
MightyAnimals Posted July 9, 2014 Author Posted July 9, 2014 Don't know what I should place there actually. Need help with something? Message me, and maybe I'll get back to you. And might even do it for a fair price.
Moderators IIYAMA Posted July 9, 2014 Moderators Posted July 9, 2014 how did you saved this element data? Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
MightyAnimals Posted July 9, 2014 Author 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]) .. Need help with something? Message me, and maybe I'll get back to you. And might even do it for a fair price.
MightyAnimals Posted July 10, 2014 Author Posted July 10, 2014 Not sure if that's what you mean.. Need help with something? Message me, and maybe I'll get back to you. And might even do it for a fair price.
MightyAnimals Posted July 11, 2014 Author Posted July 11, 2014 Does someone have the solution? Need help with something? Message me, and maybe I'll get back to you. And might even do it for a fair price.
Addlibs Posted July 16, 2014 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? Previously known as MrTasty.
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