Code Breakdown
🌟 Core Configuration
reward
: Stores the calculated reward amount.itemControl
: Tracks whether the player possesses a stolen item.atmEntity
: The entity of the stolen prop.
🛠️ Robbery Functionality
Checks if the player has the required item.
Executes a Word Scramble Minigame to simulate hacking.
If successful, removes the prop and attaches it to the player.
🚨 Police Notification System
Randomly determines if the police should be notified.
Uses a configurable chance percentage.
🎯 Targeting System Compatibility
Supports both
qb-target
andox_target
for easy interaction.Displays an interaction prompt when near the designated prop.
📦 Drop-Off NPC System
Verifies if the player is carrying a stolen prop.
If successful, removes the prop and grants a cash reward.
🛠️ Drop-Off NPC Creation
Spawns an NPC at a configured location to serve as the fence for stolen items.
Adds interaction compatibility with
qb-target
andox_target
.
Last updated