Skip to main content

Installation

1. Add the resource​

Put the gs-dailyreward folder in your resources folder. Start it after oxmysql, your framework and your inventory:

server.cfg
ensure oxmysql
ensure qbx_core # or qb-core / es_extended
ensure ox_inventory
ensure gs-dailyreward

2. Pick your framework and inventory​

Open config/config.lua:

config/config.lua
Config.Framework = "qbx" -- "qbx", "qbcore" or "esx"
Config.Inventory = "ox" -- "ox" (ox_inventory), "qb" (qb-inventory) or "esx" (default ESX inventory)

If you don't use ox_inventory, also change Config.InventoryImagePath to the folder your inventory's item images are in.

3. Set your premium codes​

Edit the codes in server/sv_config.lua. See Premium codes.

4. Restart the server​

The database table gs_dailyreward_codes is created on the first start (plus gs_dailyreward_players on ESX). Check the console for any reward items that don't exist in your inventory.

In-game, type /dailyrewards or press F10 to open the menu.

ESX notes​

  • ESX has no character metadata, so progress (streak, claims, premium) is saved in the gs_dailyreward_players table.
  • With the default ESX inventory, weapons are given with addWeapon (the amount is ignored and there's no ammo). ox_inventory is recommended.