MatXpl Posted December 28, 2010 Share Posted December 28, 2010 Hi. I wont to get vehicle health local vehh = getElementHealth ( vehicle ) setElementData ( vehicle, "Health", vehh ) and for example it outputs in my dxtext: Veh health: 456.24860721... And i wont change this 456.24860721... to 456 how can i do it ? Link to comment
Aibo Posted December 28, 2010 Share Posted December 28, 2010 math.floor(vehh) or math.ceil(vehh) or math.modf(vehh) http://lua-users.org/wiki/MathLibraryTutorial 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