Repository navigation
Expand file tree
/
Copy pathconfig.lua
More file actions
430 lines (405 loc) · 23.5 KB
/
Copy pathconfig.lua
File metadata and controls
430 lines (405 loc) · 23.5 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
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
PET = {
-- "/petinfo" para desligar a parte que aparece quando você se aproxima de animais de estimação.
debugMode = false, -- Certain prints are turned on, if you don't understand this you don't need to turn it on at all, it's here to help us understand where the error is when the script has problems.
--
petInfoCommand = "petinfo", -- Comando usado para desligar as informações do pet na tela
showPetCommand = "showmyPets", -- Blip mostrando a localização do animal de estimação
--
DefaultPetIMG = "https://cdn.discordapp.com/attachments/919180635388653618/1035353250242777138/pet-logo-design-paw-vector-animal-shop-business_53876-136741.webp",
DefaultPetName = "Amazing Pets", -- se o nome for "", o sistema irá preenchê-lo automaticamente com este aqui.
-- Pet Shop area
petBuyCoords = vector3(-1368.35, 56.31, 53.7), -- purchase marker part of the pet
petShowCoords = vector4(-1366.09,56.68,54.1,119.19),-- Where to spawn when in the pet purchase menu
-- SQL
Mysql = "oxmysql",
--NEEDS SYSETM
petHealFillItem = "pethealth", -- the pad's full of health, hunger and thirst remain as they are.
petHealFillAmount = 97, -- How much to fill when used --max 97
petHungryFillItem = "petfood", -- item to fill pet's hunger
petHungryFillAmount = 97, -- How much to fill when used --max 97
petThirstFillItem = "petthirst", -- item to fill pet's thirst
petThirstFillAmount = 50, -- How much to fill when used --max 97
-- DEADTH SIDE
PermanentlyDie = false, -- if "true", the pet will be directly deleted when it dies and will never come back.
-- UPTADES
UpdateAnimInterval = 0, -- If the pad is going into animation, like dying, etc., how many seconds will it be checked?
UpdateInterval = 1, -- "1minutes" will update all pets' death, hunger, thirst, location and many other updates every 1 minute (it will be good to do this in a short time to live without problems).
UpdateXPInterval = 10, -- "1minutes" Every 1 minute all pets will gain a set amount of xp.
LevelingDifficulty = 20,--% Indicates the health starvation value that the pet will have directly when you buy it the difficulty to level up in [ % ]
--
lossOfLife_hungry = 3, -- Selects how many lives to take when Hunger drops to 0.
lossOfLife_thirst = 1, -- Selects how many lives to take when Thirst drops to 0.
--
earnXPAmount = 10, -- "UpdateXPInterval" time during which all pets will gain +1 xp for the specified amount of time
--
NotificationInScript = true, -- If this is "true" you will use the script's own notify system.
Notification = function(text, inform) -- You can put your own notify text here
end,
PetMiniMap = { showblip = true, sprite = 442, colour = 2, shortRange = false },
-- ROPE SIDE
ropeLength = 4, -- How long the towing rope should be (in meters) I highly recommend keeping it between 6 and 10 meters
ropeItem = "petrope",
-- Ball
petBallItem = "petball",
--Pet Attack
chaseDistance = 50.0,
chaseIndicator = true, -- huge marker on hunted target head
petAttackKeyCode = 49, --https://docs.fivem.net/docs/game-references/controls/
petAttackKeyCodeDisplay = "PRESS ~g~F~w~PARA ATACAR O ALVO", --Displaying Text
-- PET Interact
petInteractKeyCode = 38, -- [ E ] https://docs.fivem.net/docs/game-references/controls/
-- Random animations
RandomAnim = {
["dog"] = {
-- {
-- animName = "creatures@rottweiler@amb@",
-- animID = "hump_loop_chop"
-- },
{
animName = "creatures@rottweiler@amb@world_dog_sitting@idle_a",
animID = "idle_b"
},
{
animName = "creatures@rottweiler@amb@world_dog_barking@idle_a",
animID = "idle_a"
},
{
animName = "creatures@rottweiler@amb@sleep_in_kennel@",
animID = "sleep_in_kennel"
},
},
["cat"] = {
{
animName = "creatures@cat@amb@world_cat_sleeping_ground@base",
animID = "base"
},
{
animName = "creatures@cat@amb@world_cat_sleeping_ledge@base",
animID = "base"
},
-- {
-- animName = "creatures@cat@step",
-- animID = "step_lft"
-- },
},
["bird"] = {
{
animName = "creatures@chickenhawk@amb@world_chickenhawk_feeding@base",
animID = "base"
},
{
animName = "creatures@cormorant@amb@world_cormorant_standing@base",
animID = "base"
},
},
["coguar"] = {
{ -- rest
animName = "creatures@cougar@amb@world_cougar_rest@idle_a",
animID = "idle_a"
},
{ -- getup
animName = "creatures@cougar@getup",
animID = "idle_a"
},
}
},
--
--[[
petTexureID => {
Rottweiler => Hiç Rengi yok
Shepherd => {
[0] : Basic,
[1] : White and black,
[2] : Brown,
}
Husky => {
[0] : Basic,
[1] : Gold Brown,
[2] : White,
}
Retriever => {
[0] : Basic,
[1] : Black,
[2] : White Gold,
[3] : Brown,
}
Cat => {
[0] : Basic,
[1] : White And Black,
[2] : Brown- like a redhead :D,
}
}
]]
AvailablePets = {
{
price = 1,
hungryRatio = 30, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 80, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 70, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 90, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 1, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 1, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Rottweiler",
petLabel = "The Rottweiler is one of the oldest known dog breeds,[1] dating back to the Roman Empire. With their herding and guarding characteristics, they have been the helpers of people in many matters. It is even recognized as the breed that led the herds of the Roman armies crossing the alpine mountains and protected the people in the caravan.",
petIMG = "https://cdn.discordapp.com/attachments/697541709713899545/1050974691810082896/domestic-dog_thumb_4x3.webp",
pedHash = "a_c_chop",
petTexureID = 0, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.
petGender = "Femea", -- Pet'in cinsiyeti "M ya da F" tarzında olacaktır M = male F = female
petLevel = 5, -- Pet'i satın aldığınız zaman otomatik olarak olacak olan leveli
petBoughtAnim = true, -- With or without a purchase animation?
listOf = "dog", -- which list to be on
},
{
price = 1,
hungryRatio = 30, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 80, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 70, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 90, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 1, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 1, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Popu",
petLabel = "O Rottweiler é uma das raças de cães mais antigas conhecidas,[1] que remonta ao Império Romano. Com suas características de pastoreio e guarda, eles têm ajudado as pessoas em muitos assuntos. É ainda reconhecida como a raça que liderou os rebanhos dos exércitos romanos atravessando as montanhas alpinas e protegeu as pessoas na caravana..pu",
petIMG = "",
pedHash = "a_c_westy",
petTexureID = 0, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.
petGender = "Femea",
petLevel = 5,
petBoughtAnim = false, -- With or without a purchase animation?
listOf = "dog", -- which list to be on
},
{
price = 2,
hungryRatio = 10, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 20, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 50, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 98, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 5, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 5, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Retriever",
petLabel = "Golden Retriever, dog breed. It originated in Scotland around the 19th century and was used as an aid in hunting activities at that time.",
petIMG = "https://cdn.discordapp.com/attachments/697541709713899545/1050974692388900954/unnamed.png",
pedHash = "a_c_retriever",
petTexureID = 0, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.s
petGender = "Macho",
petBoughtAnim = true, -- With or without a purchase animation?
petLevel = 10,
listOf = "dog", -- which list to be on
},
{
price = 1,
hungryRatio = 30, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 80, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 70, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 90, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 1, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 1, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Pug",
petLabel = "O Rottweiler é uma das raças de cães mais antigas conhecidas,[1] que remonta ao Império Romano. Com suas características de pastoreio e guarda, eles têm ajudado as pessoas em muitos assuntos. É ainda reconhecida como a raça que liderou os rebanhos dos exércitos romanos atravessando as montanhas alpinas e protegeu as pessoas da caravana.",
petIMG = "",
pedHash = "a_c_pug",
petTexureID = 0, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.
petGender = "Femea",
petLevel = 5,
petBoughtAnim = false, -- With or without a purchase animation?
listOf = "dog", -- which list to be on
},
{
price = 1,
hungryRatio = 30, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 80, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 70, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 90, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 1, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 1, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Poodle",
petLabel = "O Rottweiler é uma das raças de cães mais antigas conhecidas,[1] que remonta ao Império Romano. Com suas características de pastoreio e guarda, eles têm ajudado as pessoas em muitos assuntos. É ainda reconhecida como a raça que liderou os rebanhos dos exércitos romanos atravessando as montanhas alpinas e protegeu as pessoas da caravana.",
petIMG = "",
pedHash = "a_c_poodle",
petTexureID = 0, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.
petGender = "Femea",
petLevel = 5,
petBoughtAnim = false, -- With or without a purchase animation?
listOf = "dog", -- which list to be on
},
{
price = 1,
hungryRatio = 30, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 80, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 70, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 90, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 1, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 1, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Shepherd",
petLabel = "A raça do cão pastor é uma das mais antigas raças de cães conhecidas,[1] que remonta ao Império Romano. Com suas características de pastoreio e guarda, eles têm ajudado as pessoas em muitos assuntos. É ainda reconhecida como a raça que conduziu os rebanhos dos exércitos romanos na travessia das montanhas alpinas e protegeu as pessoas da caravana.",
petIMG = "",
pedHash = "a_c_shepherd",
petTexureID = 2, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.
petGender = "Femea",
petLevel = 5,
petBoughtAnim = true, -- With or without a purchase animation?
listOf = "dog", -- which list to be on
},
{
price = 2,
hungryRatio = 10, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 20, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 50, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 98, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 5, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 5, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Rootti",
petLabel = "Canis é um gênero de mamíferos da família canina, que inclui cães, coiotes e a maioria dos lobos. As espécies deste gênero são caracterizadas por seu tamanho médio a grande, crânios e dentição grandes e bem desenvolvidos, pernas longas e orelhas e asas relativamente curtas.",
petIMG = "",
pedHash = "a_c_husky",
petTexureID = 0, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.
petGender = "Macho",
petLevel = 10,
petBoughtAnim = true, -- With or without a purchase animation?
listOf = "dog", -- which list to be on
},
{
price = 1,
-- ped'i satın aldığınız zaman otomatik olarak gelecek olan değerler
hungryRatio = 10, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
thirstRatio = 20, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
energyRatio = 50, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
healthRatio = 98, --% When you buy the pet, it will directly indicate the health hunger value of the pet.
hungryDecrase = 1, -- When the pet is updated it will go " -1 ", example => Hunger level 40, "the number you specify" in the specified time interval - 40
thirstDecrase = 1, -- When the pet is updated it will go " -1 ", example => Thirst level 20, At the set time interval "the number you specify" - 20
petName = "Catty",
petLabel = "Domestic cat, small, usually hairy, domesticated, carnivorous mammal. Usually kept as pets, they are called house cats, or simply cats if it is not necessary to distinguish them from other felines and small cats. People value the companionship of cats and their ability to hunt vermin and household pests.",
petIMG = "",
pedHash = "a_c_cat_01",
petTexureID = 0, -- Pet TexureID > decides what color your pet will be so that it doesn't change color all the time or can have different colors.s
petGender = "Macho",
petBoughtAnim = true, -- With or without a purchase animation?
petLevel = 10,
listOf = "cat", -- which list to be on
},
},
--ORDER
Orders = { -- In this section you can edit the orders that come directly to the pet, you can add different commands if you want.
-- DOG
{
label = "SEGUIR",
listOf = "dog", -- if he's a dog, his action
args = "lab-pet:client:followOwner", -- In the 1st list of arguments that come with the content of the pet system, there is "Animal Type", i.e. cat or dog, and the 2nd argument is the networkID of the animal, so the first two functions will be filled with whatever you type here.
level = 0, -- at what level it can be applied
},
{
label = "SENTAR",
listOf = "dog", -- if he's a dog, his action
args = "lab-pet:client:sit",
level = 0, -- at what level it can be applied
},
{
label = "LEVANTAR",
listOf = "dog", -- if he's a dog, his action
args = "lab-pet:client:getup",
level = 0, -- at what level it can be applied
},
{
label = "DORMIR",
listOf = "dog", -- if he's a dog, his action
args = "lab-pet:client:sleep",
level = 0, -- at what level it can be applied
},
{
label = "ATAQUE",
listOf = "dog", -- if he's a dog, his action
args = "lab-pet:client:attack",
level = 0, -- at what level it can be applied
},
--Cat
{
label = "SEGUIR",
listOf = "cat", -- eğer ki kedi ise yapacağı eylem
args = "lab-pet:client:followOwner",
level = 0, -- at what level it can be applied
},
{
label = "SENTAR",
listOf = "cat", -- eğer ki kedi ise yapacağı eylem
args = "lab-pet:client:sit",
level = 0, -- at what level it can be applied
},
{
label = "GET UP",
listOf = "cat", -- eğer ki kedi ise yapacağı eylem
args = "lab-pet:client:getup",
level = 0, -- at what level it can be applied
},
{
label = "ENTRE NO CARRO",
listOf = "dog", -- eğer ki kedi ise yapacağı eylem
args = "lab-pet:client:getIntoCar",
level = 0, -- at what level it can be applied
},
{
label = "SAIA DO CARRO",
listOf = "dog", -- eğer ki kedi ise yapacağı eylem
args = "lab-pet:client:getOutCar",
level = 0, -- at what level it can be applied
},
{
label = "ENTRE NO CARRO",
listOf = "cat", -- eğer ki kedi ise yapacağı eylem
args = "lab-pet:client:getIntoCar",
level = 0, -- at what level it can be applied
},
{
label = "SAIA DO CARRO",
listOf = "cat", -- eğer ki kedi ise yapacağı eylem
args = "lab-pet:client:getOutCar",
level = 0, -- at what level it can be applied
},
},
OrderAnim = {
["dog"] = {
["sex"] = {
animName = "creatures@rottweiler@amb@",
animID = "hump_loop_chop"
},
["sit"] = {
animName = "creatures@rottweiler@amb@world_dog_sitting@idle_a",
animID = "idle_b"
},
["bark"] = {
animName = "creatures@rottweiler@amb@world_dog_barking@idle_a",
animID = "idle_a"
},
["sleep"] = {
animName = "creatures@rottweiler@amb@sleep_in_kennel@",
animID = "sleep_in_kennel"
},
["getup"] = {
animName = "creatures@rottweiler@amb@world_dog_sitting@exit",
animID = "exit"
}
},
["cat"] = {
["sleep"] = {
animName = "creatures@cat@amb@world_cat_sleeping_ground@base",
animID = "base"
},
["getup"] = {
animName = "creatures@cat@getup",
animID = "getup_l"
},
["sit"] = {
animName = "creatures@cat@amb@world_cat_sleeping_ledge@base",
animID = "base"
},
},
-- ["bird"] = {
-- {
-- animName = "creatures@chickenhawk@amb@world_chickenhawk_feeding@base",
-- animID = "base"
-- },
-- {
-- animName = "creatures@cormorant@amb@world_cormorant_standing@base",
-- animID = "base"
-- },
-- }
},
}