ConfigurationAdvanced
Custom Interaction
Learn how to set up custom interaction.
Setting Up Custom Interaction
To set up a custom interaction, follow these steps:
- 
Open
src/resource/shared/const.luain the resource folder. - 
Find the
CustomInteractiontable (typically at line 98). - 
Enable the custom interaction by changing the
enabledvalue totrue. - 
You need to make the functions
onEnterandonExitcompatible with your interaction script. These functions are called when a player enters or exits the interaction area.There's by default a example of
qb-targetin theonEnterandonExitfunctions. You can replace it with your own script. Click here to see how the code looks like. - 
Save the file and restart the resource for changes to take effect.