👨💻General config
Config config.lua
Config = {}
Shared = {}
Config.locale = 'en'
Config.ItemName = 'oldkey'
Config.CoinName = 'coin' --Reward coin item name after hard mission, or in the shop
--settlement currency
Config.textui = '[E] - Open Dungeon'
Config.ImagesPath = "nui://ox_inventory/web/images/"
Config.Dungeon = {
[1] = {
coords = vector3(-761.0015, 5946.8325, 19.1696), -- Blip coords
heading = 298.7082, -- NPC heading
ped = 'csb_mweather', -- NPC model | https://docs.fivem.net/docs/game-references/ped-models/
length = 1.0, -- Lenght of third eye box zone
width = 1.0, -- Width of third eye box zone
distance = 3.0 -- Distance that the player can interact with the npc
},
}
Config.Items = {
{item = 'ammo-9', label = 'Ammo', price = 200},
{item = 'weapon_combatpistol', label = 'Comabt Pistol', price = 500},
{item = 'weapon_specialcarbine', label = 'Rifle', price = 1500},
{item = 'water', label = 'Water', price = 200},
{item = 'burger', label = 'Burger', price = 200},
{item = 'ammo-9', label = 'Ammo', price = 200},
{item = 'ammo-rifle', label = 'Ammo', price = 200},
{item = 'weapon_knife', label = 'Knife', price = 200},
{item = 'weapon_combatpistol', label = 'Comabt Pistol', price = 500},
{item = 'weapon_specialcarbine', label = 'Rifle', price = 1500}
}
Config.Rewards = {
{item = 'money', label = 'Money', description = 'You can expect to get a large amount of money'},
{item = 'weapon_rpg', label = 'RPG', description = 'A weapon that can blow everything up!'},
{item = 'weapon_pistol', label = 'Pistol', description = 'A sturdy gun, but bullets are running out fast!'},
{item = 'surprise', label = 'Surprise', description = 'This item is very rare'},
{item = 'weapon_knife', label = 'Knife', description = 'To handle things up close and personal'}
}
-- player spawn after mission is done or when player is dead
Config.locationspawn = vector3(-761.0015, 5946.8325, 20.1696)
-- how meny npc spawns at easy mission 1point (5spawn)
Config.spawnez = 5
-- how meny npc spawns at hard mission 1poin (8spawn)
Config.spawnhard = 8
-- npc aiming rate
Config.aim = 60
-- How many percentage that player can get weapon frotm the list aftet mission
-- 1 = 90% that player can get weapon -- 2 = 80% that player can get weapon
-- 3 = 70% that player can get weapon -- 4 = 60% that player can get weapon
-- amd ......
Config.proc = 1 --90 proc
-- weapons that player can get
Config.weapons = {'weapon_pistol', 'weapon_carbinerifle', 'weapon_knife'}
-- keys requiredCount for easy mission
Config.Keyseasy = 7
-- keys requiredCount for hard mission
Config.Keyhard = 10
--how much moneyquantity player gets after mission
Config.moneyquantity = math.random(5000, 10000)
-- how much poin player gets after hard mission
Config.coinquantity = math.random(200, 500)
--notify
Shared.ServerNotify = function (source, title, description, status)
TriggerClientEvent('ox_lib:defaultNotify', source, {
title = title,
description = description,
position = 'top',
status = status
})
end
Shared.ClientNotify = function (title, description, status)
lib.defaultNotify({
title = title,
description = description,
position = 'top',
status = status
})
end
Last updated