[PAID] vsRestrictedZone

A script by VibeScripts

No reviews yet.
[PAID] vsRestrictedZone main image

Price

Unknown

Full Description

[PAID] vsRestrictedZone

[Description]

The vsRestrictedZone - Resource is a well thought-out, comprehensive, performant and appealing restricted zone system for your FiveM server.

Here is a list of all the important features:

  • Custom N-NUI
  • Menu can be opened by command or trigger (e.g. F6 Menu)
  • You can set the jobs + the job grades of who should have access to them
  • You can stop the NPC cars in front of the exclusion zone
  • You can set a notification for all cops and the whole Server
  • You can display a marker as a restricted zone marker
  • You can create temporary zones (temporary zones disappear automatically).
  • You can create permanent restricted zones
  • You can send out a warning message as soon as someone enters the restricted zone
  • You can “whitelist” jobs that should not get the warning message
  • You can edit the preset reasons for calling out a restricted zone
  • You can configure the Blip and the custom N-NUI.

Showcase

Link to the Showcase Video

Config

Config = {}
Config.Version = true -- select your version (true = old version)

Config.Locale = 'en'

-- Basic-Settings
Config.UseCommand = true -- Should the command be activated?
Config.CommandName = 'restrictedzone' -- What should the command be called?
-- [The event to open the menu is a client-side event: "vsRestrictedZone:openZoneMenu"] --

Config.JobSetting = {['police'] = 0} -- which job can use the system and from which rank
Config.TrafficControl = true -- should the npc traffic be stopped at a restricted zone?

-- Notify-Settings
Config.NotifcationToCops = true -- Should the officers receive a special notification?

Config.AnyoneNotification = false -- a message should be sent to each player as soon as a restricted zone is declared?

Config.DrawRestrictedZone = true -- the exclusion zone should be drawn in the form of a marker?
Config.MinRadius = 5 -- radius required for at least one exclusion zone (min. 0)
Config.MaxRadius = 100 -- maximum allowed radius (max. 999)

Config.EnableTime = true -- can you create temporary zones?
Config.EnablePermanentZones = true -- can there be permanent zones? (if both are active, 0 stands for permanent or leave the field blank)
Config.MinMinutes = 1 -- Minimum number of minutes how long a restricted zone exists (it must be at least 1)
Config.MaxMinutes = 60 -- Maximum length a zone can exist. (It must be between 1 and 99)

Config.EnableWarningMessage = true -- should a warning message come when someone enters a restricted zone?
Config.WhitelistWarningMessage = {'police', 'ambulance', 'sheriff'} -- which jobs are excluded from the warning message?

-- reasons to declare a restricted zone
Config.Reasons = {
    "state bank",
    "jeweler",
    "shoot-out"
}

-- Blip-Settings
Config.Sprite = 373 -- https://docs.fivem.net/docs/game-references/blips/ (373 or 161)
Config.Colour = 79 -- https://docs.fivem.net/docs/game-references/blips/#blip-colors
Config.Scale = 3.0 -- size of the blip

-- Size-Settings
Config.MenuWidth = 0.23 -- menu width || de: 0.2 and en: 0.23
Config.MenuFont = 0 -- font for everything except the title (0 = recommended)

Config.TitleFont = 7 -- font for a title
Config.TitleSize = 0.9 -- title size || de: 1.0 and en: 0.9

Config.TitleColor = {r = 255, g = 0, b = 0} -- color for a title
Config.SubTitleColor = {r = 255, g = 51, b = 51} -- color for a subtitle

Config.BackgroundColor = {r = 32, g = 52, b = 52, a = 255} -- background color

Optimization

  • IDLE: 0.00ms

  • RUNNING: 0.01ms

Further Information

TEBEX: vsRestrictedZone

This resource is using the FiveM Asset Escrow system

Code is accessible No
Subscription-based No
Lines (approximately) 1500
Requirements ESX
Support Yes
Config Merger
Have you tried Config Merger? Merge your configs easily