Desaster Posted October 18, 2013 Share Posted October 18, 2013 I want to make this function exported how ? ps : it also have a .fx file and how I can use it after i mean the arguments local w, h = guiGetScreenSize( ); local enable = false; addEventHandler("onClientMarkerHit", marker, enableBlackWhite) function renderEffect( ) --some stuff end function enableBlackWhite( ) -- some stuff end Link to comment
.:HyPeX:. Posted October 18, 2013 Share Posted October 18, 2013 you should do it into the meta: this is a taken example of how mapmanager works: > function="getGamemodes"/> > function getGamemodes() local resourceList = getResources() local gamemodeList = {} for i,theResource in ipairs(resourceList) do if isGamemode(theResource) then table.insert(gamemodeList, theResource) end end return gamemodeList Link to comment
Desaster Posted October 19, 2013 Author Share Posted October 19, 2013 then I can use it like this export.myresourcename:getGamemodes() 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