Minokon Posted May 28, 2011 Posted May 28, 2011 (edited) Hello My next question: Can I use functions from included resource? Like in meta.xml I have: <include resource="SomeScript" /> And I can use functions from SomeScript in my current resource? Thanks Edited August 21, 2011 by Guest Pawn Programmer(SA-MP) and Webmaster Now LUA...
Castillo Posted May 28, 2011 Posted May 28, 2011 Use exported functions, <export function="myFunctionName" type="can be server or client" /> Then you do: exports.SomeScript:myFunctionName(args) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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