'LinKin Posted April 14, 2014 Share Posted April 14, 2014 Hello, I have two settings in meta: <setting name="*displayTeamMessages" friendlyname="Add/Remove Team Messages" value="true" accept="true,false" desc="Displays Add/Remove Team Message in the chat." /> <setting name="*errorMsgColor" friendlyname="Error Messages Color" value="#FF0000" accept="Hex Color" desc="The color of the messages when an error occurs." /> When I change a setting via admin panel. It is changed to a string like this: [ "theValueInsterted" ] So for example if I change the setting displayTeamMessages to false, it would take the form [ "false" ] And if I change errorMsgColor it would take the form [ "#FF0000" ] How can I remove this? I just want to take the values like 'true' 'false' '#FF0000'. Without those [ " " ] symbols surrounding the value.. The only solution I see now is using string.gsub. Thanks. EDIT: fromJSON does the work. 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