/callbacks

NextGen Callbacks

Primary LanguageLua

[NextGen Callbacks]

  • Client -> Server -> Client (Server Callbacks).
  • Server -> Client -> Server (Client Callbacks). **
  • Able to send data thru the callback and not just on the return via cb(). **

[Credits]


These callbacks were originally made by xander1998 and I came across these inside DRP (cfx.re post). I have gotten permission to post our edits (**) to it from Xander.


[Information]


I have removed the callbacks from our frameworks core and made them standalone. Aside from the edits (**) listed above, some other minor changes were done in order to itegrate it into our codebase.
I have also used this standalone version in various places within our framework (replacing the callbacks inside our core) for testing and it works perfectly! The example code given also works without issues.
It's like 2head simple and should work out of the box as long as you have at least 1 brain cell.


[Installation]


Drop it inside your server's resources folder and ensure it in the cfg. Done. Now isn't that just ezclap??


[FAQ]


  • "It's not working."
    • Stop being a potato. I have no issues on my end so... 2 + 2 = It's your codes fault. Quik maffs.
  • "Why allow Client Callbacks??"
    • Cause why not breh.
  • "What would we use them for??"
    • If you're from the US then this should sound familiar xD -> "It's better to have it and not need it, than to need it and not have it."
  • hopefullynotyou
    • Don't be that guy^^. Be a Chad.