[Release] gun_catalogue. A clean, interactive and immersive gun store

Made with blood, sweat, and tears by @Steady and Erratic

Gun_catalogue aims to deliver an immersive and user-friendly gun store UI.
All gun store locations are supported and shown on the map.

As you can see, it includes (almost) every single firearm you can acquire in the singleplayer and even has short descriptions of the guns.

  • Right arrow and left arrow allow you to quickly switch pages.
  • You can use the index to find the category you need.
  • Backspace and escape to exit the book.
  • Prices need to be changed in server and client (JS)

UP NEXT:

  • Working general store
  • RedEM_RP_inventory support. <-- DONE

Changelog v1.2

  • Added redEM_inventory support.
  • Guns should now save on respawn/relog.
  • Credits to Crypto as we are using his method of adding them as items.

Changelog v1.1

Added Misc. section on the index.

Added the following weapons:

  • Bow and arrow
  • Lasso
  • Antique Sword
  • Lantern
  • Hatchet
  • Hunting Knife
  • Throwing Knives
  • Machete
  • Tomahawk
  • Dynamite
  • Fire Bottle

You can find the latest version of the resource here:

Repository
Issues and feature requests

A. Prerequisites:

B. How to install:

  1. Download the resource from the repo
  2. Unzip it
  3. Put it in your resource folder
  4. Add “ensure gun_catalogue” to your server.cfg
  5. Done!

C. How to give your mythic notifications a Red Dead look and feel:

  1. Make sure mythic_notify is installed and working properly
  2. Open mythic_notify\html\css\style.css
  3. Replace .success,.inform, .error, .system, .police and .info with the following code:
.success {
    clip-path: polygon(5% 1%, 8% 6%, 9% 3%, 14% 0%, 18% 6%, 19% 3%, 22% 1%, 30% 5%, 34% 1%, 39% 4%, 43% 5%, 50% 6%, 50% 7%, 53% 3%, 58% 6%, 61% 9%, 68% 4%, 74% 7%, 78% 9%, 84% 5%, 92% 9%, 95% 16%, 98% 19%, 96% 27%, 100% 38%, 96% 45%, 96% 50%, 99% 57%, 93% 61%, 96% 69%, 99% 82%, 95% 88%, 94% 93%, 97% 98%, 82% 99%, 81% 94%, 74% 91%, 61% 96%, 54% 97%, 50% 93%, 35% 99%, 34% 90%, 31% 90%, 15% 94%, 14% 93%, 9% 88%, 1% 84%, 6% 76%, 0% 57%, 2% 48%, 7% 43%, 2% 32%, 9% 20%, 2% 15%, 3% 13%);
    background: rgb(52, 89, 59, 0.95);
    color: #fff;
}

.inform {
    clip-path: polygon(1% 1%, 9% 2%, 14% 3%, 23% 5%, 31% 4%, 37% 6%, 45% 5%, 47% 1%, 55% 4%, 56% 6%, 57% 8%, 68% 6%, 68% 4%, 77% 3%, 78% 8%, 82% 8%, 85% 5%, 88% 3%, 95% 5%, 100% 11%, 99% 16%, 96% 18%, 98% 29%, 96% 35%, 99% 42%, 96% 45%, 96% 51%, 100% 57%, 92% 66%, 94% 71%, 96% 76%, 95% 79%, 98% 88%, 94% 93%, 98% 98%, 89% 99%, 75% 96%, 74% 92%, 64% 98%, 52% 97%, 48% 94%, 33% 96%, 25% 98%, 19% 91%, 16% 88%, 4% 94%, 3% 93%, 4% 80%, 0% 69%, 0% 63%, 1% 57%, 0% 45%, 0% 39%, 0% 34%, 0% 30%, 0% 25%, 0% 19%, 0% 15%, 0% 9%, 0% 5%);
    background-color: rgb(51, 112, 165, 0.85);
    color: #ffffff;
}

.error {
    clip-path: polygon(3% 2%, 8% 3%, 12% 0%, 18% 5%, 25% 3%, 36% 6%, 48% 3%, 64% 6%, 74% 0%, 91% 8%, 100% 4%, 98% 12%, 97% 13%, 100% 32%, 97% 40%, 100% 48%, 98% 55%, 100% 65%, 100% 73%, 100% 85%, 100% 92%, 100% 96%, 98% 100%, 87% 96%, 82% 95%, 65% 100%, 57% 93%, 48% 96%, 30% 96%, 21% 90%, 9% 97%, 6% 91%, 5% 80%, 0% 67%, 1% 55%, 0% 43%, 2% 29%, 0% 18%, 1% 15%);
    background: rgb(100, 3, 2, 0.85);
    color: #fff;
}

.system {
    clip-path: polygon(3% 0%, 10% 5%, 21% 1%, 23% 4%, 24% 1%, 37% 4%, 46% 1%, 54% 1%, 58% 3%, 72% 6%, 97% 4%, 99% 4%, 91% 8%, 96% 24%, 100% 29%, 100% 31%, 99% 39%, 100% 48%, 98% 53%, 100% 66%, 98% 68%, 99% 74%, 100% 84%, 100% 89%, 98% 95%, 97% 98%, 90% 96%, 78% 93%, 69% 98%, 65% 96%, 51% 95%, 38% 95%, 31% 91%, 19% 96%, 14% 94%, 7% 85%, 0% 81%, 1% 66%, 0% 46%, 0% 34%, 0% 16%, 0% 13%, 3% 11%, 0% 29%, 0% 32%);
    background: rgb(190, 97, 18, 0.85);
    color: #fff;
}

.police {
    clip-path: polygon(3% 0%, 3% 1%, 6% 3%, 6% 3%, 11% 6%, 14% 3%, 19% 6%, 26% 2%, 30% 5%, 40% 2%, 46% 4%, 51% 6%, 52% 7%, 61% 4%, 68% 4%, 71% 10%, 78% 7%, 86% 3%, 92% 6%, 94% 7%, 100% 4%, 100% 19%, 100% 23%, 100% 24%, 100% 33%, 96% 40%, 99% 45%, 100% 49%, 92% 54%, 99% 62%, 100% 64%, 96% 67%, 97% 73%, 98% 79%, 91% 85%, 97% 92%, 99% 93%, 91% 96%, 81% 99%, 74% 100%, 66% 98%, 63% 93%, 43% 97%, 39% 96%, 36% 89%, 21% 93%, 18% 89%, 12% 80%, 0% 82%, 3% 75%, 6% 57%, 6% 54%, 0% 48%, 3% 41%, 1% 35%, 0% 30%, 3% 24%, 2% 18%, 0% 13%, 4% 9%);
    background: rgb(181, 82, 85, 0.85);
    color: #fff;
}

.info {
    clip-path: polygon(1% 2%, 7% 7%, 13% 3%, 22% 4%, 38% 1%, 40% 4%, 45% 4%, 53% 3%, 54% 6%, 67% 0%, 70% 6%, 78% 3%, 94% 2%, 98% 9%, 98% 11%, 97% 14%, 100% 22%, 96% 30%, 97% 37%, 96% 48%, 94% 61%, 99% 68%, 98% 76%, 96% 85%, 100% 93%, 96% 100%, 86% 100%, 84% 96%, 68% 100%, 66% 94%, 52% 100%, 50% 94%, 35% 100%, 33% 96%, 29% 95%, 16% 97%, 14% 91%, 6% 92%, 2% 82%, 5% 75%, 0% 61%, 0% 52%, 0% 44%, 0% 34%, 3% 28%, 0% 18%, 1% 12%, 2% 12%);
    background: rgb(88, 139, 90, 0.85);
    color: #fff;
}

DO NOT RENAME THE RESOURCE UNLESS YOU KNOW WHAT YOU’RE DOING!

9 Likes

:+1: :+1: :+1: :+1:

Very cool

1 Like

Hi, great work for the script, for me I have it on the screen I don’t understand

why ?

You need upload the image in your ftp by exemple and change link in client.js

I uploaded the images in the ftp but I don’t see which address to put in the client.js

Ive changed the links since we had planned to move to github hosting but somehow they had reverted. All should be fine now if you download the latest version this issue is fixed. Also, @cedricalpatch you need to have it on a image host since you need to have it as a link a local file wont work

1 Like

this is the thing i need to use your script :slight_smile: but well done already !

Soon. @JordanPANDA

1 Like

You don’t have to rename or upload anything. Just keep the resource as it is and it should work. If you’re still having issues make a post on the GitHub page.

good script, it worked for a bit then kept pulling client.lua errors on line 34 and you would click buy ammo or buy gun and wouldn’t actually purchase the gun, so i had to disable it to i figuire out why its doing that.

hi , how can i make that u need a level to buy the gun

i buy ammo and none of the guns will reload

im having an issue, when i buy a weapon and relog the weapon is not in my inventory. i have added the weapon list to the config file of redemrp_inventory.

@phantomora if you have the correct release with compatibility for the inventory then it should be all working. If the owner of RedemRP decides to update and break compatibility I don’t think we will update. If someone wants to make a push request if he ever does update we will look into it :slight_smile:

Any errors please make a GitHub issue request as its a lot easier for us to manage.

fixed it. it was something on my end, wrong script files, this is why you shouldnt work on servers when tired. lol

Having some issues with using this. I have the catalog and everything, but this is the code that comes back when trying to buy something. I’ve looked at the lines of code they’re referencing, but I’m new to this. Any ideas?

SCRIPT ERROR: @gun_catalogue/server.lua:78: attempt to call a nil value (field 'addItem')
> handler (@redem/server/sv_player.lua:136)
> handler (@gun_catalogue/server.lua:72)

I connected with their support team and it turns out the gun catalogue doesnt really work with redemrp_inventory2 so you would have to make edits for it to with the inventory v2, which Im not sure how to do. Having someone look at it, and If I find the fix I can send it your way.

2 Likes

There are no plans to update this resource to redem inventory V2. If someone would like to make a pull request for compatability be my guest.

Have you solve it? I have the same problem