🪛 Lock Picking
Access a comprehensive guide that includes a detailed installation process, examples of code, previews of configurations.
INSTALLATION GUIDE
Step 0 - First Steps
Step 1 - Configure Resource
How do i use it?
You can start the lock picking by using the default settings.
-- Initiates the lockpicking minigame and stores the result
local result = exports['inside-lockpicking']:StartLockPicking()
-- Checks the result of the minigame
if result == 'success' then
-- This section is executed if the player wins the minigame
print('Congratulations, you succeeded!')
elseif result == 'fail' then
-- This section is executed if the player loses the minigame
print('Unfortunately, you did not succeed this time.')
endExample 2
Or you can use the start the lock picking by sending customized settings in a table.
Remember to use item requirements, first configure config.lua correctly to check if the player has a given item.
Last updated