PIN Code Minigame
Overview

The PIN Code Minigame is designed for GTA V FiveM servers. It challenges players to enter a PIN code within a designated time limit. The minigame offers options such as customizable PIN length, time limits, and multiple attempts.
Features
Customizable PIN Code Length: Set the length of the PIN as needed.
Time Limit: Configure the time allowed to enter the PIN.
Multiple Attempts: Players can have several tries to input the correct code.
Predefined or Random Code: Use a fixed code for testing or generate one randomly.
Native UI: Uses native notifications and a custom NUI interface for an immersive experience.
Installation & Usage
Installation:
Copy the
0g_pingamefolder (which contains the following files) to your FiveM resources directory:fxmanifest.luaclient.luaserver.luahtml/index.htmlhtml/css/pin_code.csshtml/scripts/pin_code.jsREADME.md
Add
start 0g_pingameto yourserver.cfg.
Usage:
To start the minigame in-game, type the command:
/test_pincodeUpon successful completion, an event is triggered that can reward the player (see Events section).
Events
0gravity_pincodes:rewardPlayer(success)
Triggered when the minigame ends.
Parameter
successis a boolean indicating if the player entered the correct PIN.
For more details on the PIN Code Minigame, refer to the inline comments in the source code.
Last updated