-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.lua
203 lines (174 loc) · 8.32 KB
/
main.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
Config = {}
-- Language
Config.defaultlang = 'en_lang'
-----------------------------------------------------
Config.devMode = false -- Default: false / Do Not Run on a Live Server
-----------------------------------------------------
Config.discord = {
active = false,
webhookURL = '',
title = 'BCC-Stables',
avatar = ''
}
-----------------------------------------------------
-- Set the currency type
-- 0 = Cash Only
-- 1 = Gold Only
-- 2 = Both
Config.currencyType = 2 -- Default: 2
-----------------------------------------------------
Config.keys = {
shop = 0x760A9C6F, --[G] Open Stable Menu
call = 0x80F28E95, --[L] Call Horse at Stable
ret = 0x27D1C284, --[R] Return Horse at Stable
sell = 0x80F28E95, --[L] Sell Tamed Horse at Sell Point
keep = 0x27D1C284, --[R] Keep Tamed Horse at Sell Point
trade = 0x27D1C284, --[R] Trade Horse to Player
drink = 0xD8F73058, --[U] Horse Drink when in Water
rest = 0x620A6C5E, --[V] Horse Rest
sleep = 0x43CDA5B0, --[Z] Horse Sleep
wallow = 0x9959A6F0, --[C] Horse Wallow
loot = 0x27D1C284, --[R] Loot Horse
}
-----------------------------------------------------
-- Horse Items
Config.horsebrush = 'horsebrush'
Config.horsebrushDurability = true
Config.lantern = 'oil_lantern'
Config.lanternDurability = true
Config.horseFood = {
'consumable_haycube',
'consumable_carrots',
'consumable_apple'
}
-----------------------------------------------------
--- Horse Flaming Hooves
Config.flameHooveItem = 'diamond' -- The item name for flaming hooves
Config.flameHooveDurability = true -- Enable or disable durability for the flaming hooves item
Config.flameHoovesActive = true
Config.flameHooveMaxDurability = 100 -- Maximum durability for the item
Config.flameHooveDurabilityPerUse = 5 -- Durability decrease per use
-----------------------------------------------------
Config.reviver = 'consumable_horse_reviver'
-----------------------------------------------------
-- Change / Translate Stables Commands
Config.commands = {
horseRespawn = 'horseRespawn', -- Respawn Horse if Stuck or Unable to Reach
horseSetWild = 'horseSetWild', -- Dev Mode: Make a Horse Wild
horseWrithe = 'horseWrithe', -- Dev Mode: Set Horse to Writhe State
horseInfo = 'horseInfo', -- Display Additional Horse Info
}
-----------------------------------------------------
-- Max Number of Horses per Player
Config.maxPlayerHorses = 5 -- Default: 5
Config.maxTrainerHorses = 10 -- Default: 10
-----------------------------------------------------
-- If Distance to Horse is too Far, Horse is Returned to Stable
Config.horseDistance = {
enabled = true, -- Default: true / If You Notice Horse Spawn Issues, Set to False
radius = 150, -- Default: 150 / Distance from Player to Horse
}
-----------------------------------------------------
-- Can Spawn Horse Anywhere with Whistle
Config.whistleSpawn = true -- Default:true / Set to false to only Use 'Call Horse' Button at Stable to Spawn Horse
-----------------------------------------------------
-- Can Use Flee Button in Horse Menu
Config.fleeEnabled = true -- Default: true / Set to false to Return Horse at Stable Only
-----------------------------------------------------
-- Can Use when Stable is Closed
Config.closedCall = true -- Default: true / 'Call Horse' Button at Stable
Config.closedReturn = true -- Default: true / 'Return Horse' Button at Stable
-----------------------------------------------------
-- Horse Death Settings
Config.death = {
deselect = false, -- Default: false / If true, Player Must Return to Stable to Select Horse to Spawn
permanent = false, -- Default: false / If true, Horse is Permanently Dead
health = 20, -- Default: 20 / Health Level for First Spawn After Death
stamina = 20, -- Default: 20 / Stamina Level for First Spawn After Death
}
-----------------------------------------------------
-- Horse Inventory
Config.useSaddlebags = true -- Default: true / Require Saddlebags for Inventory
Config.shareInventory = false -- Default: false / Share with All Players / Allows Looting Player Horses
Config.allowWeapons = true -- Default: true / Allow Weapons
-----------------------------------------------------
-- Health and Stamina Boosts (Set to 0 to Disable Boost - Animations Still Work)
Config.boost = {
brushHealth = 10, -- Increase for Brushing Horse
brushStamina = 10,
feedHealth = 20, -- Increase for Feeding Horse
feedStamina = 20,
drinkHealth = 20, -- Increase for Horse Drinking
drinkStamina = 20,
}
-----------------------------------------------------
-- Health and Stamina are Saved when Horse Takes Damage or Dies, is Returned at Stable or Flee'd
-- This Setting will Additionaly Save Horse Health and Stamina on a Timed Interval
Config.saveInterval = 60 -- Default: 60 / Time in Seconds / Set to 0 to Disable
-----------------------------------------------------
-- Horse Drinking
Config.drinkLength = 20 -- Default: 20 / Time in Seconds for Animation to Run
-----------------------------------------------------
-- Places Horse Name Above Horse When Saddle is Empty
Config.horseTag = true -- Default: true / Set to false to disable
Config.tagDistance = 15 -- Default: 15 / Distance from Horse the Tag is Visible
-----------------------------------------------------
-- Horse Training and Taming
Config.trainerOnly = false -- Default: false / Only Trainers can Tame and Keep/Sell Wild Horses / Only Trainers can Train Horses
Config.trainerJob = {
{ name = 'trainer', grade = 0 },
}
Config.horseXpPerCheck = 1 -- Default: 1 / XP Earned per 'trainingDistance' Achieved
Config.horseXpPerBrush = 1 -- Default: 1 / Set to 0 to Disable / Amount of XP Earned when Brushing Horse
Config.horseXpPerFeed = 1 -- Default: 1 / Set to 0 to Disable / Amount of XP Earned when Feeding Horse
Config.horseXpPerDrink = 1 -- Default: 1 / Set to 0 to Disable / Amount of XP Earned When Horse Drinks
Config.showXpMessage = true -- Default: true / Show XP Increase Message on Screen
Config.trainingDistance = 100 -- Default: 100 / Distance to Travel to Earn XP
Config.displayHorseBreed = true -- Default: true / Display Breed of Horse Player Mounted
Config.allowKeep = true -- Default: true / Allow to Register Tamed Horse
Config.regCost = 25 -- Default: 25 / Cost of Registering a Tamed Horse
Config.allowSale = true -- Default: true / Allow Player to Sell Tamed Horse
Config.tamedSellPrice = 0.30 -- Default: 0.30 / Sell Price is 30% of Horse cashPrice in Stable
Config.cooldown = {
sellTame = 15, -- Cooldown for Selling Tamed Horses in Minutes
}
-----------------------------------------------------
Config.disableKick = false -- Default: false / Disable Kick from Horse
-----------------------------------------------------
-- Sell Price for Horse Purchased in Stable is 70% of Horse cashPrice
Config.sellPrice = 0.70 -- Default: 0.70
-----------------------------------------------------
Config.BlipColors = {
LIGHT_BLUE = 'BLIP_MODIFIER_MP_COLOR_1',
DARK_RED = 'BLIP_MODIFIER_MP_COLOR_2',
PURPLE = 'BLIP_MODIFIER_MP_COLOR_3',
ORANGE = 'BLIP_MODIFIER_MP_COLOR_4',
TEAL = 'BLIP_MODIFIER_MP_COLOR_5',
LIGHT_YELLOW = 'BLIP_MODIFIER_MP_COLOR_6',
PINK = 'BLIP_MODIFIER_MP_COLOR_7',
GREEN = 'BLIP_MODIFIER_MP_COLOR_8',
DARK_TEAL = 'BLIP_MODIFIER_MP_COLOR_9',
RED = 'BLIP_MODIFIER_MP_COLOR_10',
LIGHT_GREEN = 'BLIP_MODIFIER_MP_COLOR_11',
TEAL2 = 'BLIP_MODIFIER_MP_COLOR_12',
BLUE = 'BLIP_MODIFIER_MP_COLOR_13',
DARK_PUPLE = 'BLIP_MODIFIER_MP_COLOR_14',
DARK_PINK = 'BLIP_MODIFIER_MP_COLOR_15',
DARK_DARK_RED = 'BLIP_MODIFIER_MP_COLOR_16',
GRAY = 'BLIP_MODIFIER_MP_COLOR_17',
PINKISH = 'BLIP_MODIFIER_MP_COLOR_18',
YELLOW_GREEN = 'BLIP_MODIFIER_MP_COLOR_19',
DARK_GREEN = 'BLIP_MODIFIER_MP_COLOR_20',
BRIGHT_BLUE = 'BLIP_MODIFIER_MP_COLOR_21',
BRIGHT_PURPLE = 'BLIP_MODIFIER_MP_COLOR_22',
YELLOW_ORANGE = 'BLIP_MODIFIER_MP_COLOR_23',
BLUE2 = 'BLIP_MODIFIER_MP_COLOR_24',
TEAL3 = 'BLIP_MODIFIER_MP_COLOR_25',
TAN = 'BLIP_MODIFIER_MP_COLOR_26',
OFF_WHITE = 'BLIP_MODIFIER_MP_COLOR_27',
LIGHT_YELLOW2 = 'BLIP_MODIFIER_MP_COLOR_28',
LIGHT_PINK = 'BLIP_MODIFIER_MP_COLOR_29',
LIGHT_RED = 'BLIP_MODIFIER_MP_COLOR_30',
LIGHT_YELLOW3 = 'BLIP_MODIFIER_MP_COLOR_31',
WHITE = 'BLIP_MODIFIER_MP_COLOR_32'
}