Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

glua how to call a hook

local function DoSomething()
    -- Does something
    hook.Call( "DoneDoingSomething" )
end

local function DoSomethingElse()
    -- Does something else, once the hook "DoneDoingSomething" is called.
    print( "Done!" )
end
hook.Add( "DoneDoingSomething", "Does something else", DoSomethingElse )

DoSomething()
 
PREVIOUS NEXT
Tagged: #glua #call #hook
ADD COMMENT
Topic
Name
8+7 =