• hook before or when starting a server
    5 replies, posted
Hi :) Is there a hook before starting a server? or maybe when starting a server?
Why do you need a hook for that? Just shove a Lua file into lua/autorun/server so it gets run when the server starts up. Or you mean you need to run stuff when most of the stuff finished initializing? For that there's indeed a hook: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/Initialize]GM:Initialize[/url].
i need it run before the server is starting, but when there is nothing i need to run when its starting
you cant run lua if the server isnt running
[QUOTE=poepel;52524956]i need it run before the server is starting, but when there is nothing i need to run when its starting[/QUOTE] How exactly do you think that would work? Because the thing that runs Lua is, you know, [i]the server[/i].
k, you right, fail :D
Sorry, you need to Log In to post a reply to this thread.