-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.lua
153 lines (113 loc) · 4.78 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
Config = {}
Config.General = {
position = {
coords = vector3(0.0, 0.0, 0.0), -- The position of the NPC and the marker (x, y, z) /// If you want to use the NPC and the marker, you need to set enable to true
interactionRadius = 1.5, -- The radius in which the player can interact with the NPC
interactKey = 38, -- E key
interactText = "Press ~INPUT_CONTEXT~ to open the cityhall", -- Text shown when the player is in the interaction radius
marker = {
enable = true, -- If false, the marker will be disabled
type = 1, -- Marker type (https://docs.fivem.net/docs/game-references/markers/)
scale = vector3(0.5, 0.5, 0.5),
color = vector3(0, 0, 255), -- RGB SYSTEM (0-255)
alpha = 255, -- Opacity
},
},
blip = {
enable = true, -- If false, the blip will be disabled
sprite = 419, -- Blip sprite (https://docs.fivem.net/docs/game-references/blips/)
color = 0, -- Blip color
scale = 0.8, -- Blip scale
name = "Cityhall", -- Blip name
},
npc = {
enable = true, -- If false, the NPC will be disabled
model = "a_m_m_bevhills_01",
heading = 0.0,
pos = vector3(0.0, 0.0, 0.0),
},
}
Config.Namechange = {
price = 1000, -- The price for a namechange
item = {
needItem = false, -- If true, the player will need the item to change his name
itemName = "item_namechange", -- The name of the item
itemLabel = "Namechange", -- The label of the item (shown in the inventory)
},
}
Config.SocialMoney = {
enable = true, -- If false, the social money option will be disabled (DONT TOUCH)
allowedJobs = { -- If empty, all jobs will be allowed /// If not empty, only the jobs in the table will be allowed /// "unemployed" will allow unemployed players
"unemployed",
"police",
"ambulance",
},
money = {
payment = 1000, -- The amount of money the player will receive
paymentSchedule = 60, -- In minutes
automaticMode = true, -- If true, the payment will be automatic transferred to the player's bank account /// If false, the player will need to withdraw the money
},
}
Config.Marriage = {
general = {
allowSameGender = true,
},
cost = {
marriagePrice = 1000, -- The price for a marriage
marriageDivorcePrice = 500, -- The price for a divorce
},
item = {
needItem = false, -- If true, the player will need the item to marry
itemName = "wedding_ring",
itemLabel = "Wedding Ring"
},
notify = {
notifyAll = true, -- this will notify all players in the server
notifyAllmsg = "The player %s is now married with %s", -- %s = name of the player
},
}
Config.Leaderboard = {
enable = true, -- If false, the leaderboard will be disabled
leaderboard = {
limit = 5, -- The amount of players shown in the leaderboard
sortBy = "bank", -- The value to sort by (bank, money, black_money) || Just for "Richest Players"
},
ignoreList = {
richestPlayers = false,
mostPlaytime = false,
mostKills = false,
mostDeaths = false,
},
ignoreIdentifiers = {
"steam:11000010c0a0b2e", -- Example: "steam:11000010c0a0b2e"
},
}
Config.PlaytimeRewards = {
enable = true, -- If false, the rewards will be disabled
rewards = { -- playtime in minute
{playtime = 1, type = 'money', subtype = 'cash', value = 500},
{playtime = 3, type = 'money', subtype = 'bank', value = 1000},
{playtime = 5, type = 'money', subtype = 'black_money', value = 1000},
{playtime = 9, type = 'weapon', value = 'WEAPON_PISTOL', count = 1, ammo = 48},
{playtime = 12, type = 'item', value = 'bread', count = 1},
},
}
Config.Stats = {
enable = true, -- If false, the stats will be disabled
-- If you dont know what you are doing, dont change anything below this line (vehicles is standard esx table)
vehicles = {
tableName = 'owned_vehicles', -- The name of the table in the database
ownerColumn = 'owner', -- The name of the owner column in the database
},
house = {
tableName = 'houses', -- The name of the table in the database
ownerColumn = 'owner', -- The name of the owner column in the database
}
}
-- Change trigger events to your own framework or script
function clientNotify(message)
TriggerEvent("esx:showNotification", message)
end
function serverNotify(source, message)
TriggerClientEvent("esx:showNotification", source, message)
end