Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 102 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# keep-companion

- qbcore pet script
# keep-companion - qbcore pet script

<h1> || UPDATE || </h1>

- Added 3 New Animals




## Features

Expand Down Expand Up @@ -295,6 +301,55 @@
["combinable"] = nil,
["description"] = "Pet Grooming Kit"
},
---new
["keepcompanioncormorant"] = {
["name"] = "keepcompanioncormorant",
["label"] = "Cormorant",
["weight"] = 500,
["type"] = "item",
["image"] = "A_C_cormorant.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Your royal companion!"
},
["keepcompanioncow"] = {
["name"] = "keepcompanioncow",
["label"] = "Cow",
["weight"] = 500,
["type"] = "item",
["image"] = "a_c_cow.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Your royal companion!"
},
["keepcompaniondeer"] = {
["name"] = "keepcompanionadeer",
["label"] = "Deer",
["weight"] = 500,
["type"] = "item",
["image"] = "a_c_deer.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Your royal companion!"
},
["keepcompanionpig"] = {
["name"] = "keepcompanionpig",
["label"] = "Pig",
["weight"] = 500,
["type"] = "item",
["image"] = "a_c_pig.png",
["unique"] = true,
["useable"] = true,
["shouldClose"] = true,
["combinable"] = nil,
["description"] = "Your royal companion!"
},
```

# step 3: qb-shop
Expand Down Expand Up @@ -457,6 +512,46 @@
type = 'item',
slot = 19
},
[20] = {
name = 'keepcompanionrat',
price = 50000,
amount = 50,
info = {},
type = 'item',
slot = 20
},
[21] = {
name = 'keepcompanioncormorant',
price = 50000,
amount = 50,
info = {},
type = 'item',
slot = 21
},
[22] = {
name = 'keepcompanioncow',
price = 50000,
amount = 50,
info = {},
type = 'item',
slot = 22
},
[23] = {
name = 'keepcompaniondeer',
price = 50000,
amount = 50,
info = {},
type = 'item',
slot = 23
},
[24] = {
name = 'keepcompanionpig',
price = 50000,
amount = 50,
info = {},
type = 'item',
slot = 23
},
}

```
Expand Down Expand Up @@ -498,6 +593,11 @@ else if (
itemData.name == "keepcompanionwesty" ||
itemData.name == "keepcompanioncoyote" ||
itemData.name == "keepcompanionrabbit" ||
itemData.name == "keepcompanionrat" ||
itemData.name == "keepcompanioncormorant" ||
itemData.name == "keepcompanioncow" ||
itemData.name == "keepcompaniondeer" ||
itemData.name == "keepcompanionpig" ||
itemData.name == "keepcompanionhen"
) {
let gender = itemData.info.gender;
Expand Down
18 changes: 18 additions & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,24 @@ Config.pets = {
maxHealth = 150,
distinct = 'no cat'
},
[15] = {
name = 'keepcompanioncormorant',
model = 'A_C_cormorant',
maxHealth = 150,
distinct = 'no cat'
},
[16] = {
name = 'keepcompanioncow',
model = 'a_c_cow',
maxHealth = 250,
distinct = 'no cat'
},
[17] = {
name = 'keepcompanionpig',
model = 'a_c_pig',
maxHealth = 250,
distinct = 'no cat'
},
}

Config.core_items = {
Expand Down
28 changes: 28 additions & 0 deletions shared/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,34 @@ PetVariation = {
textureId = 0
},
},
['A_C_cormorant'] = {
['normal'] = {
componentId = 0,
drawableId = 0,
textureId = 0
},
},
['a_c_cow'] = {
['normal'] = {
componentId = 0,
drawableId = 0,
textureId = 0
},
},
['a_c_deer'] = {
['normal'] = {
componentId = 0,
drawableId = 0,
textureId = 0
},
},
['a_c_pig'] = {
['normal'] = {
componentId = 0,
drawableId = 0,
textureId = 0
},
},
}

--- set color/variation of peds
Expand Down