πConfiguration
This page contains an example of a configuration file.
--==============================================================
-- 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
}Last updated