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?
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.
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