Description:
Add more realism and roleplay depth to your server with TweekzScripts Drug Test System. This script allows players to take real drug tests through a doctor NPC, buy fake clean papers from a suspicious dealer, and receive realistic results based on actual detected substance use. It is perfect for servers that want more immersive medical roleplay, criminal roleplay, and interactive law-related gameplay.
Core Features:
Automatic QBCore / Qbox Detection: Automatically detects whether your server uses QBCore or Qbox.
Multi-Inventory Support: Supports a wide range of popular inventory systems.
Built-In Tweekz NUI Notifications: Includes a clean and modern notification system.
Doctor Drug Testing System: Players can visit a doctor NPC for a real drug test with configurable price, test time, and validity duration.
Real Drug Test Logic: Results are based on actual drug item consumption.
Metadata-Based Test Results: Real tests generate a drugtest_clean item with stored metadata such as result, detected drug, expiration, and citizen ID.
Nearby Player Visibility: Players close by can automatically see the result.
Result Popup Interface: Test results are shown in a clean NUI popup.
Fake Dealer Paper System: Players can buy drugtest_fake items from a suspicious dealer NPC.
Police Alert Chance: Fake paper purchases can optionally trigger a police alert.
Smart Drug Detection System: Tracks consumed drugs such as joints, coke, meth, XTC, oxy, and more.
QB / Qbox and OX Usage Tracking: Tracks drug use through standard item usage and ox_inventory usedItem events.
Configurable Drug Detection Durations: Each drug can have its own configurable detection time.
Expiring Results: Test results can expire, become outdated, or show detected substances depending on settings.
NPC System Included: Includes both a doctor NPC and a fake dealer NPC, with optional map blips.
Target System Support: Supports both qb-target and ox_target.
Discord Logging: Optional logging for real tests, fake paper purchases, and document viewing.
Fully Configurable Workflow: Pricing, durations, drugs, NPCs, inventories, logs, and behavior can all be adjusted in the config.
Configuration:
The script is highly customizable to fit your server’s needs. You can easily modify the following in the config file:
Drug Test Pricing: Set the price for real doctor tests.
Test Duration: Adjust how long the drug test takes.
Validity Duration: Set how long results remain valid.
Drug Detection Times: Configure how long each substance stays detectable.
NPCs: Change doctor and dealer locations, blips, and behavior.
Fake Papers: Adjust fake document pricing and police alert chance.
Notifications: Edit result popups and notification settings.
Discord Logging: Enable, disable, or customize logging options.
Inventory and Framework Handling: The script automatically detects supported systems.
Information:
Discord: discord.gg/tweekzscripts
Documentation: tweekzscripts.gitbook.io/documents
Store: tweekzscripts-store.tebex.io



