Sim Posted April 7, 2020 Share Posted April 7, 2020 I been going threw the code the last couple days just to see the flow of things, but I still can't figure out what the purpose of these hooks are for? If someone could explain and give a better example of using them cause for now, I don't see much of a purpose to them. They seem to be for creating menu links if I am correct? Also, is there a simple way to call other module methods. For example: $this->leaderboards(): Future reference. As I don't see an easy way to call data from other modules without editing the module itself. 😞 Quote Link to comment Share on other sites More sharing options...
ags_cs4 Posted April 7, 2020 Share Posted April 7, 2020 im not great with hoocks but ik what i seen so far , it add links, with sorting and for me it add icon, you can add condition to them lets say if user is in a gang he get this link instead of the other, i saw once a hook used for timers as for the other Q im not sure never hitted my mind but its great having just one function instead of coping it in 2 mods, i would love to hear more @Dayo Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 7, 2020 Share Posted April 7, 2020 I posted something on hooks here And as for calling other module methods, I don't believe so because I don't think they are auto-loaded. I think that you would have to require/include the file and instantiate the class and call the method but I am unsure of how that would work 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.