Skip to content

trclassic92/CircleMinigame

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

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 15, 2022 05:12
October 15, 2022 05:12
October 15, 2022 05:13
October 15, 2022 05:12

CircleMinigame

NoPixel Based Lockpick from QBFramework

This was created into a standalone minigame resource for all frameworks (ESX, OX, and QBCore)

Template

exports['CircleMinigame']:StartLockPickCircle(amount, time, function(success)

Example useage


RegisterCommand("lpgame", function()
	local time = math.random(7,10)
	local circles = math.random(2,4)
	local success = exports['CircleMinigame']:StartLockPickCircle(circles, time, success)
	print(success)
	if success then
		print("WIN")
	else
		print("FAIL")
	end
end)

Amount of time to spin and amount of time to trigger are currently held within the js I am trying to export it to lua

Amount and Time now work, but functioning success now doesn't go over to the export.

About

QB-Lock minigame converted to be a standalone minigame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published