Baseplate Posted January 23, 2013 Posted January 23, 2013 function setPlayerOccupation(thePlayer, occupation) return setElementData(thePlayer, "Occupation", occupation) end function getPlayerOccupation(thePlayer) return getElementData(thePlayer, "Occupation") end I don't have MTA so I can't test it, will this work?
myonlake Posted January 23, 2013 Posted January 23, 2013 It will work just fine If I helped you, please click the like button on the right Thanks!
Baseplate Posted January 23, 2013 Author Posted January 23, 2013 Alright, thanks myonlake! and should I add this to meta? <export function="setPlayerOccupation" type="server"/>
Baseplate Posted January 23, 2013 Author Posted January 23, 2013 Samer said: Alright, thanks myonlake! and should I add this to meta? <export function="setPlayerOccupation" type="server"/> BUMP! still in need of help.
Anderl Posted January 23, 2013 Posted January 23, 2013 If you need to execute the function from other resources, yes. Otherwise no, it's not needed. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Anderl Posted January 23, 2013 Posted January 23, 2013 You're welcome. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
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