Gun Range

Step-by-step installation guide, common issues & solutions, code snippets, error codes, config previews, locales previews, SQL previews, and changelogs; all in 1 easily accessible place.

Buy Here

FiveM Forums Post

YouTube Walkthrough Video

Translate

INSTALLATION GUIDE

Step 0 - First Steps

Step 1 - Configure Resource

HOW TO USE

This resource is very easy to install and configure. Once the steps above are complete, the rest is simple:

  1. You can move your target further away to get a higher score by using the #Chat Command.

  2. Use the #Chat Command to start your game and wait for the countdown to begin.

  3. Try to aim for the head and centre body for the highest score. You can track where your bullets hit on the UI to the left of your screen.

  4. The script will automatically recognise your weapon type and add your score to the scoreboard if high enough.

INFORMATION

Chat Commands

These chat commands can be renamed and/or disabled in the Keys and Commands section of the [configs/config.lua].

The exact usage for each command will be displayed in the chat suggestions when using the commands in-game.

Command
Description

/gunrange_start

Start a ranked shooting session.

/gunrange_movetarget

Open the UI to move the target.

/gunrange_scoreboard

Open the UI to view your servers top scores.

/gunrange_practice

Start a unranked practise shooting session.

Events

These events are completely optional; you can use them if needed.

Start a ranked shooting session

Ranked sessions adds your score to your servers scoreboard.
TriggerEvent('cd_gunrange:client:Start')

Open the UI to move the target

Move the target closer or further away from you (further = higher score).
TriggerEvent('cd_gunrange:client:MoveTarget')

Open the UI to view your servers scoreboard

View the top scores from players in your server from all the different weapon categories.
TriggerEvent('cd_gunrange:client:ShowScoreBoard')

Start an unranked practice shooting session

Practise sessions do not get added to the scoreboard.
TriggerEvent('cd_gunrange:client:PracticeMode')

COMMON ISSUES

Please check out our Troubleshooting Guide before contacting our support.

🔔 Folder Name Make sure the name of the folder either cd_gunrange.

🔔 Encrypted Files Do not edit the encrypted files in any way.

ERROR CODES

If you see an error code not listed below, please open a script support ticket in the Codesign Discord.

N/A

CHANGELOG

Files Changed

Not every update requires you to replace the whole folder. We do this because we understand it's a pain to redo the configs for every update.

  • All Files - This means you should make a backup of the JSON Files folder, delete your old cd_gunrange folder, download and add in the latest version, replace the new JSON Files folder with the one you made a backup of, configure the configs folder and restart your server.

  • All Files Except config.lua - This means you should do all of the above (in the All Files section) but additionally make a backup of the config.lua file and replace the new config.lua file with the one you made a backup of.

  • Specific Files - This means you can copy and paste the SPECIFIC new files over the old ones and restart the server.

Update Type

On rare occasions, you are forced to update to the latest version. Mostly due to authentication updates where the old versions will no longer work.

  • Mandatory - This means you MUST update to this new version, or the old versions will no longer work.

  • Optional - This means it's completely your choice whether you wish to update to the latest version. But we do not offer support for old versions for obvious reasons; they are old.

20/12/2022

Files Changed:

Update Type:

Changelog:

Last updated

Was this helpful?