Question about certain addHooks

Shanon

Member
hello, i have a question how works the boolean in this certain addHooks
---
addHook("JumpSpecial", function(player)
addHook("AbilitySpecial", function(player)
---
i know the function its "player" but i dont know where put the boolean true and false
 
For me, I consider that optional, and only needed in certain cases. But in case you need it, functions can return a value. that applies for functions in hooks too. in case with booleans you can just do return false or return true

Here's an example of use
1761522171181.png


You should check out in the wiki (Hooks) to see what's the behavior of returning true or false. Anyways you should test with both to see which one works for you.
 
For me, I consider that optional, and only needed in certain cases. But in case you need it, functions can return a value. that applies for functions in hooks too. in case with booleans you can just do return false or return true

Here's an example of use
View attachment 176848

You should check out in the wiki (Hooks) to see what's the behavior of returning true or false. Anyways you should test with both to see which one works for you.
thx for the help, I will try both and lets see :wonderful:
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top