MAB Posted March 3, 2016 Posted March 3, 2016 getLocalization code : The language code (eg. "en_US" for "English (United States)" or "ar" for "Arabic").name : The name of the language (eg. "English (United States)" or "Arabic"). This function gets the MTA general language on the player's PC? How i know these language codes or name? am i magician? and what does ["code"] mean? local languageCode = getLocalization()["code"]
Moderators IIYAMA Posted March 3, 2016 Moderators Posted March 3, 2016 Calling/executing the function getLocalization will return a table. A table is an object that can hold multiple data. To get data from a table you must index a table. This means searching inside the table using a value/object/something else, which leads or doesn't lead to data inside the table. This is how you search inside a table[key]. Between those brackets you give the index/key of the data you want to receive. They key in your example is the string "code".
GTX Posted March 3, 2016 Posted March 3, 2016 https://msdn.microsoft.com/en-us/librar ... 88(v=cs.20).aspx Here are all the language codes if that's what you wanted.
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