From cddb2ff6adf2aa9508c79c320720e28878baf4dc Mon Sep 17 00:00:00 2001 From: Lorraxs Date: Sun, 10 Dec 2023 04:51:14 +0700 Subject: [PATCH] Update README.md --- README.md | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 564fc79..979a0e9 100644 --- a/README.md +++ b/README.md @@ -55,27 +55,12 @@ Config.Dev = false Config.Nui = true -- will wait NUI trigger RegisterNUICallback('AppReady', ...) before init ``` -# Hook method +# This boilerplate will export all method from all modules -```lua -impl:HookMethod(methodName, hookFunc) --hookFunc must return args from reciver -``` - -## example: - -```lua -local hud = main:GetImpl("Hud") -hud:HookMethod("ShowHUD", function(this, ...) - main:LogInfo("ShowHud was called") - return(...) -end) -``` - -# Export all method from all modules - -```lua -exports['lr_addon']:ImplCall(name, func, ...) --Call a method in module external -``` +- To call method in module out side of script + ```lua + exports['lr_addon']:ImplCall(name, func, ...) --Call a method in module external + ``` # Main