Page cover

Script installation guide

Welcome to the Brutal Premium Shop installation guide, here you can learn how to completely install our asset.

If you don't have any experience in development we are highly recommend to follow each step in this documentation, and if you have a developer ask them to install the script for you as they have more experience.


Asset download

circle-check
  • Put the script folder to your server.

  • Start the script in the server.cfg. (ensure brutal_premium_shop)

  • Restart your server! (And you get permission to use the script)


Upload the SQL

circle-exclamation
ALTER TABLE `users`
ADD COLUMN `premium_points` INT NOT NULL DEFAULT 0,
ADD COLUMN `premium_history` TEXT NULL DEFAULT '{}';

CREATE TABLE IF NOT EXISTS `brutal_premium_shop` (
  `category` text DEFAULT NULL,
  `data` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

INSERT INTO `brutal_premium_shop` (`category`, `data`) VALUES
 ('_others', '{"cooldown":true,"cooldown_time":5,"featured":[],"coin_transfer":true,"allTime":0,"coin_conversion":100,"coin_transfer_minimum":10,"last30Days":[],"feature_moving":true,"monthlyTotals":[],"statistic":[]}'),
 ('_cases', '[]'),
 ('_alerts', '{"alert_label":"","connect":false,"alert_des":"","color":"#79cfe0","icon":"5","auto_text":true,"alert_number":"","visibility":false,"position":[{"X":["right",-1],"Y":["",0]},{"X":["right",35],"Y":["up",487]}],"type":"float"}');
    
CREATE TABLE IF NOT EXISTS `brutal_premium_shop_codes` (
  `order_number` text DEFAULT NULL,
  `order_id` text DEFAULT NULL,
  `amount` int(11) DEFAULT NULL,
  `customer_email` text DEFAULT NULL,
  `metadata` text DEFAULT '{"used":false}',
  `created_at` int(11) DEFAULT unix_timestamp(),
  UNIQUE KEY `No duplicate` (`order_id`(100))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

Choose Payment system

Choose a payment system — for this setup, you’ll need to use Tebex or Shopify so your players can spend their money and automatically receive in-game codes for your FiveM server. 🎮💰

Compare them by clicking herearrow-up-right 👈

  • Tebex: 🔴 Higher fees, but quick and easy to set up.

  • Shopify: 💸 Lower costs, setup is a bit trickier, but once running, it’s more flexible and powerful in the long run.

After making your choice, set the appropriate option in the config.lua file. ⚙️


Asset positioning

triangle-exclamation

Setting up the Webhook

If you want to use the opportunnities which can be given by a webhook then you will have to set it up in our assets. You can do it by changeing a value to your discord webhook in the sv-utils.lua file.

sv-utils.lua
Discord Webhookchevron-right

Setting the loaded event

triangle-exclamation

In the client-core.lua file go to the LoadedEvent variable and if you are using a different event then paste there your event which is used on your server.

client-core.lua

Checking the Config file

Please make sure that you go through the whole file during the installation and check everything. It is one of the most important things as if you miss this step the script might won't work propetly.

Most important steps

The most important things always at the top of the config so pay the most attencion to these elements.

chevron-rightSetting the Corehashtag

Set your server's core wether it's using es_extended or qb-core, other cores aren't supported .

chevron-rightSetting the Notifyhashtag

If you are using the Brutal Notify then it is good news, you don't have to do anything. If you aren't then set the BrutalNotify value to false in the config and set up your own notify in the cl-utils.lua

chevron-rightSetting the TextUI or Targethashtag

Set the TextUI from the options which are commented out. If your server using an other TextUI it is not a problem, you can set it up in the cl-utils.lua. If you want to use a target system then set the TextUI to false and set your target.


If you got any error

If you followed the installation guide and the script still don't work or you get any errors the please check the common errors, here in the docs and in our discord arrow-up-rightserver, for more informations.

If you have finished

circle-check
Setting up the shopchevron-right

Last updated