Hamz Product Support
Web HostingDiscordMain Store
  • Getting Started
  • Common Problems
  • Hamz CAD
    • 🎥 Video Tutorial
    • Installation
    • Configuration
  • HAMZ COMMUNITY SITE
    • 🎥 Video Tutorial
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
    • Configuration
  • Hamz Staff Elite Panel
    • Web Installation
    • Web Configuration
    • Web Cronjob
    • In-Game Requirements
    • In-Game Configuration - Report Menu
    • In-Game Configuration - Admin Menu
    • Common Issues
    • [OPTIONAL] Apache Headers
    • FAQ
  • Hamz Panel
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
      • Cron Job
    • Configuration
    • FiveM Resource
  • Hamz Department Panel
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
    • Configuration
  • Hamz Forms
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
    • Configuration
  • Hamz CAD (In-game)
    • Requirements
    • FAQ
    • Installation
      • 1. API File
      • 2. SQL File
      • 3. FiveM Resource (Final Step)
        • More info on the Config.lua
    • [OPTIONAL] Apache Headers
Powered by GitBook
On this page
  • Configuring the config.php file
  • 1 - Default Timezone
  • 2 - Base URL
  • 3 - MySQL Connection
  • 4 - Discord OAuth
  • 5 - General Server Config
  • 6 - Server Information
  • 7 - Discord Permissions

Was this helpful?

  1. Hamz Staff Elite Panel

Web Configuration

This documentation is written using SimplisticNode's cPanel web hosting.

Last updated 1 year ago

Was this helpful?

Configuring the config.php file

Firstly, find the config.php file within the File Manager. Right-click, and click Edit.

1 - Default Timezone

You can set the default timezone of which you'd like the panel to run under. By default it's set to GMT, however, you can change this to your servers' primary timezone. Example: EST.

2 - Base URL

You'll want to set the Base URL to the primary domain that your staff panel will run under. For example, if you've created a sub-domain as staff.hamz.dev, set it to https://staff.hamz.dev. Do not add a trailing slash.

3 - MySQL Connection

Going back to the database information you previously created in the step. Add the information below.

// SQL DATABASE CONNECTION \\
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_NAME', 'hamzpanel');

If you're using SimplisticNode, you can keep the DB_HOST as localhost, however, if you're using a third party, confirm with them what their host needs to be.

IMPORTANT: If you are using cPanel web hosting, ensure you put the full username and database user/name. Example: coobikxy_staffpanel

4 - Discord OAuth

Next, you'll need to add your Discord bot information here.

define('TOKEN', 'INSERT_HERE');
define('GUILD_ID', 'INSERT_HERE');
define('OAUTH2_CLIENT_ID', 'INSERT_HERE');
define('OAUTH2_CLIENT_SECRET', 'INSERT_HERE');

Similar to the MySQL Database information above, enter your Discord bot information as per your Developer portal.

Token - This is your Bot token, found within Discord Developers > Bot > Token

Guild ID - Ensure you have Developer mode turned on in Discord, right-click the server icon, click Copy Server ID, and paste it into the table.

OAuth Client ID - This is your Bot token, found within Discord Developers > OAuth2 > General > Client ID

OAuth Client Secret - This is your Bot token, found within Discord Developers > OAuth2 > General > Client Secret

Whilst we're here, you can also go ahead and add your Redirect link for the Staff Panel.

Click Add Redirect on the OAuth2 page

In the URL box, using the Base URL above, copy that link but add the following to it:

/actions/register.php

So, once it's fully put together it'll look like https://staff.hamz.dev/actions/register.php

5 - General Server Config

define('SECRET', 'Cgz6cvhmuRjUz9Ns');

6 - Server Information

Within the array for the server information, fill it out carefully.

[
   'server_name' => 'vMenu', // This should match the ingame script config.lua
   'server_ip' => '0.0.0.0',
   'server_port' => '30120',
   'server_rcon_pass' => 'Cgz6cvhmuRjUz9Ns'
]

The server_rcon_pass needs to be set to the same as what is set in the server.cfg.

7 - Discord Permissions

Lastly, line 36, enter the Role IDs for users who will have full admin access on the panel.

$ADMINROLES = [
	"1163293348874956840", // Community Director
	"1191593655224516689" // Developer
];

Starting with Line 21, you'll want to create a secret code. This can be a word you remember, but ideally, create it as a string of letters and numbers. A usually helps with this.

Next, you'll need to generate a Steam API key, if your server doesn't already have one. Head over to the to create one.

Web Installation
password generator
Steam Developers portal