This repository was archived by the owner on Sep 26, 2024. It is now read-only.
forked from cadburry6969/cad-hunting
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathconfig.lua
More file actions
171 lines (153 loc) · 5.02 KB
/
config.lua
File metadata and controls
171 lines (153 loc) · 5.02 KB
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
Config = Config or {}
Config.DEBUG = false -- make sure it's false
-- Let players slaughter every animal without bait
-- only animals spawned by baits give rewards
-- note: in my tests if it's true you need to restart QB-target first and then keep-hunting afterward
Config.SlughterEveryAnimal = false
-- protection system againts players
-- if hunters have this weapons they can't shoot players with it!
Config.ShootingProtection = false
Config.ProtectedWeapons = { 'weapon_musket' }
-- End
-- hunting hours
Config.HuntingHours = {
active = false,
range = {
start = 23,
ends = 7
}
} --allowed rage
--
Config.BaitIndicator = {
active = false,
model = 'prop_peanut_bowl_01'
}
Config.BaitCooldown = 1000 * 30 -- 1000 per sec
Config.SpawningTimer = 1000 * 10 -- script will wait until "SpawningTimer" time out then it will spwan animal
Config.AnimalsEatingSpeed = 1000 * 15 -- how much animals will wait in baits location
Config.AnimalsFleeView = 15.0 -- animal Flee range if they get to see players
Config.BaitPlacementSpeed = math.random(1000 * 5, 1000 * 7)
Config.SlaughteringSpeed = math.random(1000 * 5, 1000 * 7)
Config.maxSpawnDistance = 100 -- animal spwan radius from placed bait
Config.minSpawnDistance = 60 -- animal spwan radius from placed bait
Config.spawnAngle = { 0, 360 } -- animal spwan radius from placed bait
Config.animalDespawnRange = 150.0
Config.spawnedAnimalsBlips = true -- when animals spawend it will appears in map with blips on them
Config.AnimalBlip = {
sprite = 463, -- icon https://docs.fivem.net/docs/game-references/blips/
color = 5
}
-- 25 , 75 => 25% chance to call police
-- 100 , 0 => 100% chance to call police
-- 0 , 100 => 0% chance to call police
Config.callPoliceChance = { 25, 75 }
Config.llegalHuntingNotification = function(animalCoord)
TriggerEvent("police:client:policeAlert", animalCoord, "illegal Hunting in area")
end
-- loot Multiplier settings
Config.activateLootMultiplier = true
Config.maxMultiplier = 10
Config.weaponQualityMultiplier = {
['weapon_musket'] = 5,
['default'] = 1 -- animal died by anything else
}
Config.boneHitMultiplier = {
['head'] = {
bondeId = 31086,
multiplier = 5, -- SKEL_Head
lastHit = true -- headshot => if animal died by shooting this bone once
},
['SKEL_ROOT'] = {
bondeId = 0,
multiplier = -1, -- SKEL_ROOT
},
['default'] = {
multiplier = -1 -- everything else
}
}
Config.Animals = { {
model = "a_c_deer",
-- {legal area spawn chance , illegal area spawn chance}
spwanRarity = { 20, 25 },
hash = -664053099,
-- HOW to use "Loots" element:
-- { {"ITEMNAME" , Chance , Sell Price} , {"ITEMNAME" , Chance , Sell Price} , ....}
-- note: 100% chance means every time players gonna get that item no RNG involves.
-- IMPORTANT: script will skip duplicate loots and only use one of them (first one)
-- script will skip other prices and only uses the first seen value.
-- IMPORTANT: if you leave the price with nil value players can't sell those items to Vendor.
Loots = { { "meatdeer", 100, 150 }, { "plastic", 50, 25 } }
}, {
model = "a_c_pig",
spwanRarity = { 20, 0 },
hash = -1323586730,
Loots = { { "meatpig", 100, 150 }, { "plastic" } }
}, {
model = "a_c_boar",
spwanRarity = { 30, 25 },
hash = -832573324,
Loots = { { "meatpig", 100 }, { "plastic", 50 } }
}, {
model = "a_c_mtlion",
spwanRarity = { 25, 50 },
hash = 307287994,
Loots = { { "meatlion", 100, 150 }, { "plastic", 50 } }
}, {
model = "a_c_cow",
spwanRarity = { 0, 0 },
hash = -50684386,
Loots = { { "meatcow", 100, 150 }, { "plastic", 50 } }
}, {
model = "a_c_coyote",
spwanRarity = { 0, 0 },
hash = 1682622302,
Loots = { { "meatcoyote", 100, 150 }, { "plastic", 50 } }
}, {
model = "a_c_rabbit_01",
spwanRarity = { 0, 0 },
hash = -541762431,
Loots = { { "meatrabbit", 100, 150 }, { "plastic", 50 } }
}, {
model = "a_c_pigeon",
spwanRarity = { 0, 0 },
hash = 111281960,
Loots = { { "meatbird", 100, 150 }, { "plastic", 50 } }
}, {
model = "a_c_seagull",
spwanRarity = { 0, 0 },
hash = -745300483,
Loots = { { "meatbird", 100 }, { "plastic", 50 } }
} }
Config.HuntingArea = {
{
name = "llegal hunting Area",
coord = vector3(-840.6, 4183.3, 215.29),
radius = 1000.0,
llegal = true,
showBlip = true
},
{
name = "illlegal hunting Area",
coord = vector3(870.01, 5158.01, 452.54),
radius = 500.0,
llegal = false,
showBlip = true
}
}
Config.SellSpots = {
[1] = {
BlipsCoords = vector3(570.34, 2796.46, 42.01),
name = 'sell hunting stuff!',
showBlip = true,
SellerNpc = {
model = 'csb_chef',
coords = vector4(570.34, 2796.46, 42.01, 294.27),
minusOne = true,
freeze = true,
invincible = true,
blockevents = true,
flag = 1,
currentpednumber = 0
}
}
}