Skip to content

T3development/t3_lockpick

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 10, 2023 12:46
June 14, 2023 09:33
June 14, 2023 09:33
June 10, 2023 17:59
June 10, 2023 12:46
June 10, 2023 12:46

t3_lockpick

A lockpick minigame for use with other scripts

Installation

Drag t3_lockpick into your server's resources folder and add ensure t3_lockpick to your server.cfg.

Configure the options to your liking in config.lua.

In your scripts that use lockpicking add the export exports["t3_lockpick"]:startLockpick([item or strength], difficulty, pins). This export returns true if successful, or false if unsuccessful.

Restart your server.

Example

---@param item string|float?
---@param difficulty number?
---@param pins number?
local success = exports["t3_lockpick"]:startLockpick(item, difficulty, pins)
if success then
    -- Unlock vehicle
else
    -- Remove lockpick
end

Support

Support and updates are offered through our Discord: https://discord.gg/t3dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published