Links

Darts

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

START HERE

1. Unzip the cd_darts.zip folder and place this folder in your server's resource folder.
2. Add the resource to your server start config: ensure cd_darts (if you are using a framework it must be placed anywhere below your framework resource eg., es_extended, not above).
3. WARNING The name of the folder must not be changed or the resource will not function correctly.
4. WARNING Do not edit the encrypted files in any way.

INSTALLATION GUIDE

Step 1 - Configure the resource

You MUST read all of the configurable options inside the config.lua and configure them to suit your server's needs. Please read the ”commented out help text” at the end of each line so you can understand what each config option does.
The most important sections are the options under the Framework and Important sections at the top of the config.lua. Everything else is optional.

HOW TO USE

This resource is very easy to install and configure. Once the steps above are complete the rest is simple:
  1. 1.
    Use the #Chat Command to open the UI to configure and start your game.
  2. 2.
    For configuring your game part, each option is explained on the UI. The game is made to function exactly the same as a real-life game of darts.
  3. 3.
    It's your decision in roleplay to choose how close you want to be when throwing the darts. The key to throw darts is #Default Key Binds.
  4. 4.
    If you are unsure how to play darts here's a quick Online Guide we found that may help you.

INFORMATION

Default Key Binds

This resource does not use key mapping, these keys are hard coded.
Key
Description
LEFT MOUSE BUTTON
When in a game of darts, this is the key to throw a dart.

Chat Commands

All of these chat commands can be renamed and disabled/enabled in the config.
Command
Description
/darts_startgame
Open the UI to configure and start your game (when close enough to a dart board).
/darts_giveup
Stop playing the game your currently in.
/darts_createboard
Create a dart board (use keys displayed to move the prop to your desired location).
/darts_deleteboard
Delete the closest dart board (within a small radius).

Events

These events are completely optional, you can use them if needed.
client-side to client-side
server-side to client-side
Start a game of darts
Open the UI to configure and start your game (when close enough to a dart board).
TriggerEvent('cd_darts:client:startGame')
Stop playing your game of darts
Stop playing the game your currently in.
TriggerEvent('cd_darts:client:giveUp')
Create a dart board
Create a dart board (use keys displayed to move the prop to your desired location).
TriggerEvent('cd_darts:client:spawnBoard', 'default')
Delete the closest dart board
Deletes the closest dart board within a small radius.
TriggerEvent('cd_darts:client:deleteBoard')
Start a game of darts
Open the UI to configure and start your game (when close enough to a dart board).
TriggerClientEvent('cd_darts:client:startGame', source)
Stop playing your game of darts
Stop playing the game your currently in.
TriggerClientEvent('cd_darts:client:giveUp', source)
Create a dart board
Create a dart board (use keys displayed to move the prop to your desired location).
TriggerClientEvent('cd_darts:client:spawnBoard', source, 'default')
Delete the closest dart board
Deletes the closest dart board within a small radius.
TriggerClientEvent('cd_darts:client:deleteBoard', source)

Usable Items

The use of usable items can be disabled/enabled in the config.
Item Name
Description
(By default an item is not required to place a dart board, but you can configure it to require an item in the config.lua).
Create a dart board (use keys displayed to move the prop to your desired location).

COMMON ISSUES

Please check out our Troubleshooting Guide before contacting our support.
🔔 Folder Name Make sure the name of the folder either cd_darts.

ERROR CODES

If you see an error code which isn't listed below please open a script support ticket in the Codesign Discord.
Server
Client
N/A
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 delete your old cd_darts folder, download and add in the latest version, reconfigure the configs folder and restart your server.
  • Specific Files - This means you can simply 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.
v1.0.0

20/12/2022

Files Changed:
  • All files
  • Specific Files
Update Type:
  • Mandatory
  • Optional
Changelog:
STATUS
  • Development Stage: COMPLETE
  • Alpha Test Stage: COMPLETE
  • Beta Test Stage: COMPLETE