Praryo Innovation
  • Praryo Innovation
  • Store
  • Discord
  • 🐌CFX Keymaster
    • Asset Escrow
  • PAID RESOURCES
    • 👕cfx-praryo-clperms
      • 📝Configuration
      • ⚒️Clothing Framework
    • 🎗️cfx-praryo-subscriptions
      • 📝Configuration
      • 👾Usage
    • ☠️cfx-praryo-deathcam
      • 📝Configuration
    • 💻cfx-praryo-deathscreen
      • 📝Configuration
      • 👾Events / Exports
Powered by GitBook
On this page
  1. PAID RESOURCES
  2. cfx-praryo-deathscreen

Configuration

This page contains an example of a configuration file.

cfx-praryo-deathcam/configs/cl_config.lua

--==============================================================
-- The configs written here are basically client-sided configs.
--==============================================================

CLConfig = {}

--@config Enable stuck button
CLConfig.EnableStuck = {
	Enable = true,
	StuckCD = 10000 -- Cooldown in milliseconds.
}

--@config Enable death recap (cfx-praryo-deathcam)
CLConfig.EnableRecap = true

--@config Maximize keybind
CLConfig.MaximizeMinimizeBind = 74

--@config Spawn locations
CLConfig.SpawnLocations = {
	[1] = {
		id = "spawn_1",
		name = "Pillbox Hospital",
		description = 'Spawn in Pillbox Hospital',
		image = 'https://weazel-news.online/wp-content/uploads/2022/12/Pillbox_Exterior_1.5.png',
		coordinates = { x = 298.29, y = -608.35, z = 43.4, w = 66.75 },
		allowed = function() -- Will not be displayed if false.
			--@func default function to take the framework object.
			-- local frameworkObj = getFramework()
			
			--@boolean
			-- return frameworkObj.HasGroup({ ['police'] = 0 }) 
			
			return true
		end,
	},
	[2] = {
		id = "spawn_2",
		name = "Mission Row PD",
		description = 'Spawn in Pillbox Hospital',
		image = 'https://forum-cfx-re.akamaized.net/optimized/4X/5/f/1/5f13454cebdf244ef1bb389352b4dc97d64d6158_2_690x388.jpeg',
		coordinates = { x = 428.58, y = -982.03, z = 30.71, w = 86.17 },
		allowed = function() -- Will not be displayed if false.
			--@func default function to take the framework object.
			-- local frameworkObj = getFramework()
			
			--@boolean
			-- return frameworkObj.HasGroup({ ['police'] = 0 }) 
			
			return true
		end,
	},
}

--@config Notification scripts bro.
CLConfig.Notification = {
	["success"] = function(message)
		lib.notify({
            title = "Death Screen",
            description = message,
            position = "center-left",
            style = {
                backgroundColor = '#212121',
                color = 'white',
                ['.description'] = {
                    color =  'white'
                },
                borderRadius = '14px',
                boxShadow = '0 0 10px rgba(0, 0, 0, 0.5)'
            },
            icon = 'circle-check',
            iconColor = '#1abc9c',
            duration = 5000
        })
	end,
	["info"] = function(message)
        lib.notify({
            title = "Death Screen",
            description = message,
            position = "center-left",
            style = {
                backgroundColor = '#212121',
                color = 'white',
                ['.description'] = {
                    color =  'white'
                },
                borderRadius = '14px',
                boxShadow = '0 0 10px rgba(0, 0, 0, 0.5)'
            },
            icon = 'circle-info',
            iconColor = '#3498db',
            duration = 5000
        })
	end,
	["error"] = function(message)
        lib.notify({
            title = "Death Screen",
            description = message,
            position = "center-left",
            style = {
                backgroundColor = '#212121',
                color = 'white',
                ['.description'] = {
                    color =  'white'
                },
                borderRadius = '14px',
                boxShadow = '0 0 10px rgba(0, 0, 0, 0.5)'
            },
            icon = 'triangle-exclamation',
            iconColor = '#af0516',
            duration = 5000
        })
	end
}

cfx-praryo-deathcam/configs/sv_config.lua

--=========================================================
-- The configs written here are hidden from humpy dumpers.
--=========================================================

SVConfig = {}

cfx-praryo-deathcam/configs/sh_config.lua

--===================================================================
-- Frameworks are detected automatically.
-- Supported frameworks: ESX, QBCore, Standalone / Custom Framework
--===================================================================

-- @overextended locales. (DO NOT REMOVE!!)
lib.locale()

SHConfig = {}

--@config Enable / disable debugging mode.
SHConfig.Debug = true

--@config Framework resource name.
SHConfig.Frameworks = {
	["esx"] = "es_extended",
	["qb"] = "qb-core",
	["qbx"] = "qbx-core",
}

--@config Enable respawn timer decrease after being looted (ox_inventory)
SHConfig.LootedTimer = {
	Enable = true,
	MinimumTimer = 30, -- Minimum timer before resetting, if the current timer is less than the minimum, the timer will not decrease.
	DecreasedTimer = 10
}

Last updated 1 month ago

💻
📝