Custom Conditions Example
Last updated
Last updated
Using , you can restrict the use of Parkour. One suggested area is the prison. Let me explain how you can achieve this with the custom_functions.lua
file.
First, you need to include PolyZone in the manifest file (fxmanifest.lua
) of kc-parkour. For our example, I will only add the client file since we will be using a PolyZone:
Then, we can add our custom PolyZone in custom_functions.lua
. I'm going to use my own prison PolyZone, but you can obviously create your own :
Once the PolyZone has been added, we can do the last step which is adding an isPointInside
function to, for example, the custom condition CanBeginParkour
: