Skip to content

Commit

Permalink
Merge pull request #2 from ND-Framework/wip-v2
Browse files Browse the repository at this point in the history
v2
  • Loading branch information
Andyyy7666 authored Dec 10, 2023
2 parents 6d101c2 + e4ca9c1 commit 76c377b
Show file tree
Hide file tree
Showing 8 changed files with 580 additions and 474 deletions.
53 changes: 35 additions & 18 deletions config.lua
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6

config = {
Config = {
changeCharacterCommand = "changecharacter", -- this is the command to open the ui again and change your character.
enableAppearance = false, -- if this is true you need to install fivem-appearance otherwise you won't be able to customize and save ped.
characterSelectionAopDisplay = false, -- if this is true then you must add a export below and return the value.
aopExport = function()
return exports["SimpleHUD"]:getAOP() -- exports["ModernHUD"]:getAOP()
end,
characterLimit = 5,
logo = "https://i.imgur.com/02A5Cgl.png",

-- set your backgrounds, if you have more than 1 then it will randomly change everytime you open the ui.
backgrounds = {
"https://i.imgur.com/E51ckFx.png", -- Credits: Fuzzman270#0270
"https://i.imgur.com/SeZD7TP.png", -- Credits: Fuzzman270#0270
"https://i.imgur.com/ZWKfYD9.png" -- Credits: 2XRondo#6374
"https://i.imgur.com/E51ckFx.png",
"https://i.imgur.com/SeZD7TP.png",
"https://i.imgur.com/ZWKfYD9.png"
},

departments = { -- these are the required discord role ids to be able to access these departments (enable developer mode in discord's advanced settings and right click the role)
["CIV"] = {"0"},
["SAHP"] = {"0"},
["LSPD"] = {"0"},
["BCSO"] = {"872921520719142932"},
["LSFD"] = {"872921520719142932"}
startingMoney = {
cash = 2500,
bank = 8000
},

departmentPaychecks = false, -- if you would like salaries to be paid out to the departments, set this to true
paycheckInterval = 24, -- this is how often (in minutes) paychecks are to be paid out if departmentPaychecks is set to true
departmentSalaries = { -- the amount given to the character per interval of time set via paycheckInterval
-- these are the required discord role ids to be able to access these departments (enable developer mode in discord's advanced settings and right click the role)
jobs = {
["CIV"] = {
"0" -- everyone will have this if 0
},
["SAHP"] = {
"872921520719142932",
"872921520719142932"
},
["LSPD"] = {
"872921520719142932",
"872921520719142932"
},
["BCSO"] = {
"872921520719142932",
"872921520719142932"
},
["LSFD"] = {
"872921520719142932",
"872921520719142932"
}
},

paychecks = false, -- if you would like salaries to be paid out to the departments, set this to true
paycheckInterval = 24, -- this is how often (in minutes) paychecks are to be paid out if departmentPaychecks is set to true
salaries = { -- the amount given to the character per interval of time set via paycheckInterval
["CIV"] = 300,
["SAHP"] = 700,
["LSPD"] = 600,
Expand Down
27 changes: 14 additions & 13 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
-- For support join my discord: https://discord.gg/Z9Mxu72zZ6

author "Andyyy#7666, N1K0#0001"
description "ND Character Selection (DOJ Based)"
version "2.3.1"
author "Andyyy#7666"
description "ND Character Selection (legacy)"
version "2.0.0"

fx_version "cerulean"
game "gta5"
lua54 "yes"

files {
"source/ui/index.html",
"source/ui/script.js",
"source/ui/style.css"
}
ui_page "source/ui/index.html"
dependency "ND_Core"

shared_script "config.lua"
shared_scripts {
"@ox_lib/init.lua",
"@ND_Core/init.lua",
"config.lua"
}
server_script "source/server.lua"
client_script "source/client.lua"

dependencies {
"ND_Core",
-- "fivem-appearance" [TODO] to be implemented properly later
files {
"ui/index.html",
"ui/script.js",
"ui/style.css"
}
ui_page "ui/index.html"
Loading

0 comments on commit 76c377b

Please sign in to comment.