Jump to content

Exported function


Desaster

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...