MrStein Posted November 2, 2017 Share Posted November 2, 2017 I wanted to make a script of hunger and thirst and sleep, so I can not find the functions help me My channel https://www.youtube.com/channel/UCmUZW_3JCmvTH7PxxhQYFTw?view_as=subscriber Link to comment
Moderators IIYAMA Posted November 2, 2017 Moderators Share Posted November 2, 2017 You can't find them, because you have to make them. setElementData Would help you doing that. Link to comment
itHyperoX Posted November 2, 2017 Share Posted November 2, 2017 setElementData(localPlayer,"food",100) setTimer(function() local food = getElementData(localPlayer, "food") if food then setElementData(localPlayer, "food", food-1) end end, 60 * 500, 0) Link to comment
ShayF2 Posted November 3, 2017 Share Posted November 3, 2017 Check a decompiled version of MTA DayZ for reference on element data. 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