I am hoping that someone can answear me this.
When saving a property either with SetProperty('something') or this.something, is it possible store a property as a float or int?
From my testing, it seems that numbers are converted to string on setting.
local something = 2.5;
type(something) ==> number
this.something = something;
type(this.something) ==> string
Discussion about Mods for Prison Architect
2 posts • Page 1 of 1
Use tonumber() to convert the strings you get back into a number.
Who is online
Users browsing this forum: No registered users and 1 guest