Corner Scritps - Advanced Perc System
An advanced, standalone drug and medication system for FiveM. Designed for high-performance servers, featuring a dynamic mission system, leveling, and immersive visual effects. Fully integrated with `ox_inventory`, `ox_target`, and supports both `ox_lib` and `ESX` notifications.
🌟 Key Features
* 🍬 **Standalone Drug System**: Easily add new drugs entirely via `config.lua` without touching core logic or locales.
* 📦 **Packaging & Leaflets**: Open drug boxes to receive pills and a dynamic patient information leaflet.
* 🕵️ **Dynamic Mission System**:
* Talk to NPCs to start missions.
* **Search Area**: Find rewards within a configurable radius (Area Blip) rather than a fixed point.
* **XP & Leveling**: Gain reputation to unlock better rewards and different drug types.
* 🎬 **Immersive Animations**: Smooth usage animations with high-quality prop interaction.
* 🌈 **Vibrant Visual Effects**: High-quality screen filters (timecycles) and camera shakes that fade out gradually.
* 📈 **Stats & Overdose**:
* Dynamic stat boosts (Health, Armor, Stamina, Speed).
* Configurable overdose thresholds with intense terminal effects.
* 🛡️ **Security**: Built-in server-side distance checks, event validation, and framework-specific identifier handling.
* 🔔 **Unified Notifications**: Choose between `ox_lib` and `ESX` notifications in the config.
* 💰 **Configurable Money Item**: Change the money item used in shop purchases via config.
📋 Requirements
ox_inventory, ox_lib, ox_target, es_extended
🚀 Installation
1. Extract the `corner_perc` folder into your resources directory.
2. Add `ensure corner_perc` to your `server.cfg`.
3. The database table `bj_perc_levels` will be **automatically created** on the first run.
4. Add items to your `ox_inventory/data/items.lua`:
🛠️ Configuration
All customization happens in `config.lua`:
* **Language**: Support for `en` and `pl`.
* **Notify**: Switch between `ox` and `esx`.
* **Money Item**: Change the item used for purchases (`Config.MoneyItem`).
* **Drugs**: Add items to `Config.Pills` to define stats, effects, and overdose logic.
* **Missions**: Configure rewards, levels, and search radius (`Config.Missions.Blip`).
Made by Bartvs (BJ)