IZZY
Shop
โ‚ฌ 2.70
Add To Cart
FEATURES

[Preview Video]


This script protected escrow system


[Discord]


[Docs]


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

RecommendedScripts
Script Lists
izzy Scripts
ยฉ 2025 Izzy Media. All rights reserved.