Installations

server.cfg

Add the command to your server.cfg file and make sure that the script is started.

ensure mt_weaponshop

config.lua

You can make all settings in the "config.lua".#

If you want, you can add another shop.

["idname"] = {
        blips = false,        --Show on the map
        blipsprite = 0,        --Show on the map
        blipdisplay = 4,
        blipscale = 1.0,        --Blip's greetings
        blipcolor = 0,        --Blip's color
        blipname = "name",        --Blip's name
        Shops = {
            vector3(110.110, -110.110, 110.110)
        }
}

You still have to add that.

["idname"] = {
    ["Waffen"] = { --Do not change
        {
            name = "",    --Item ID names
            label = "",    --Item names
            price = 0,    --Item price
            type = "item"    --Do not change
        },
    }
},

NOTIFY

The script is linked to our NOTIFY system.

If desired, you can customize the title, color and translate all texts.

Config.notifycolor = "#673ab7" -- You have the option to modify the color here.

Config.headline = "Waffenladen" -- Here you have the possibility to change the title name

Config.money = "Du hast nicht genügend Geld"
Config.buy = "Einkauf erfolgreich"
Config.hav = "Du hast die Waffe bereits."
Config.GetNotificationMessage = function(amount, item)
    return 'Du hast ' .. amount .. 'x ' .. item .. ' gekauft.' 
end

Do you have questions

You can customize everything else in your config.lua. If you have any questions or encounter difficulties, feel free to contact us on Discord.

Last updated

Was this helpful?