This script protected escrow system
[Discord]
izzy-restrictedv2 โ New Player / Protection (Restriction) System for FiveM
๐ฆ Overview
* Timed โprotectionโ mode for new or penalized players โ weapon, punch, and vehicle limits
* Works with ESX and QBCore (auto-detect)
* Protection ends automatically when the timer runs out
* Saved in the database โ remaining time continues after disconnect (uses oxmysql)
๐ค Profile area (Theme 2)
* Two screen themes โ Theme 1 or Theme 2
* Theme 2 shows your Discord profile photo on the protection panel
* Welcome text, minutes left, and description โ translate via Config.Lang.UI
* Theme 1: wide bottom banner + time badge
* Theme 2: compact card + profile photo + large minute counter
โฑ๏ธ Timer & UI
* Live countdown in minutes
* Panel closes automatically when time is up and the record is removed
* On disconnect, remaining minutes are saved to the server
* Rejoin and protection resumes where you left off
๐ซ Whatโs blocked during protection (Config.Block)
* Weapons โ no shooting or drawing weapons; disarm via ox_inventory (Config.Disarm)
* Punch / melee โ punch and close-combat controls disabled
* Vehicles โ anti-VDM; entering / driving blocked (config note: Anti VDM)
* Inventory โ optional; when enabled, inventory closes and canโt be opened (default: off)
๐ข Notifications
* Alerts when you try weapons, punching, vehicles, or inventory
* All strings editable in Config.Lang.Notification
๐ฎ Staff command (Config.Command)
* Default: /block [player id] [minutes] [theme]
* Command can be enabled or disabled (Enabled)
* QBCore: admin permission
* ESX: admin or superadmin group
* Theme must be 1 or 2 only
* Example: /block 5 10 2 โ player ID 5, 10 minutes, theme 2
๐ง Server & script integration
* Server export: StartRestriction(playerId, minutes, theme)
* Client export: StartRestrictionClient(minutes, theme) and GetRestrictionStatus() (active or not, minutes left)
* Other resources can start protection automatically
๐ UI text
* Config.Lang โ command usage, errors, success, and UI strings in one place
* Default English; UI.Description is the protection message players see on screen
๐ ๏ธ Setup (server owners)
* sql/install.sql โ izzy_restrictedv2 table
* shared/config.lua โ Block settings, command, language
* functions/server_functions.lua โ DiscordBotToken (for Theme 2 profile photo)
* Escrow ignore: all Lua files are editable