Baseplate Posted January 23, 2013 Share 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? Link to comment
myonlake Posted January 23, 2013 Share Posted January 23, 2013 It will work just fine Link to comment
Baseplate Posted January 23, 2013 Author Share Posted January 23, 2013 Alright, thanks myonlake! and should I add this to meta? <export function="setPlayerOccupation" type="server"/> Link to comment
Baseplate Posted January 23, 2013 Author Share 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. Link to comment
Anderl Posted January 23, 2013 Share Posted January 23, 2013 If you need to execute the function from other resources, yes. Otherwise no, it's not needed. Link to comment
Baseplate Posted January 23, 2013 Author Share Posted January 23, 2013 Alright, thanks anderl 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