Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Welcome to GTAPoliceMods

Welcome to GTAPoliceMods, like most online communities you must register to interact or post within our community, but don't worry this is a simple free process that requires minimal information for you to signup. Guests can NOT download files. This is to prevent bots and malicious users. If you wish to have these restrictions removed, you can create an account or signing in. By signing up you gain the ability to...

  • Download and upload unlimited files
  • Access to the Marketplace
  • Start new topics and reply to others
  • Upload Gallery Images
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Daniel K.

Official FivePD Discord Bot

Ray

For support or assistance please use the FivePD Support forum. Please do not request for help/troubleshooting in this announcement. Thank you!

Message added by Ray

Reason for Locking
Users keep requesting support

By Daniel K., on 07/01/2020 02:33 PM.

Recommended Posts

Hey everyone,

The Official FivePD Discord bot is now available and can be used with the latest version of FivePD (v1.1).

Please note that this is still experimental and new features will be added in the future.
 

Default link:https://discord.com/oauth2/authorize?client_id=712773037082017915&scope=bot

Invite link: https://discord.com/api/oauth2/authorize?client_id=712773037082017915&permissions=489536&scope=bot

With admin perms: https://discord.com/api/oauth2/authorize?client_id=712773037082017915&permissions=8&scope=bot

Bug Reports: https://gtapolicemods.com/index.php?/discord-bot-bug-reports/

 

Important info & limitations
  • You can set up to 8 departments / notification type (Limit will be increased in the future)
  • Your department logo will only be synced if the length of the link is <= 85 characters
    • If it could not sync your logo, the default "911" image will be displayed
  • You can always regenerate the token by registering your server again (old tokens will become unusable)
Features
  • Displays player/server stats (FivePD stats)
  • Syncs your department name/logo
  • Sends notification:
    • On/Off duty
    • Reports/Arrest reports (with report data)
    • Callouts
    • Backup requests
    • FivePD news
    • ... and more to come soon!
Setup (Video or Text)

 

 

  1. Invite the bot to your server with this link
  2. Register your server by typing:
    !fivepd register <ip>:<port> (Example: !fivepd register 127.0.0.1:30120)
  3. Copy and paste the YELLOW TEXT into your config.json, then copy and paste the token that you've received and set it as the token. (Note: Keep the token secret)
      "Discord": {
        "enable": true,
        "token": "<yourToken>"
      }
  4. Set up notification channels
    !fivepd set <duty or backups or reports or callouts> <Department ID> (Department ID can be taken from the database) 
    (Example: !fivepd set duty 1)
  5. You can also set your local timezone by typing the following:
    !fivepd timezone <timezone> (Example: !fivepd timezone America/Chicago)
  6. To display the current config, type
    !fivepd config
Commands
  • !fivepd
    Displays all available commands (with usage info)
  • !fivepd config
    Displays the FivePD config of the current Discord guild
  • !fivepd news
    If you want to receive FivePD / FivePD Bot news/updates, type this command in the selected channel
  • !fivepd register
    Connects your server to the FivePD Bot. (Keep your token safe! You can always regenerate it by re-registering your server)
  • !fivepd set
    Sets notification channels ( can be either duty, backups, reports, callouts)
  • !fivepd stat
    Displays your stats on this server (or globally)
  • !fivepd stats
    Displays server related stats.
  • !fivepd support
    Need FivePD help? Type this command (link collection)
  • !fivepd timezone
    Sets timezone for this server. For a full list of valid timezones, click here
  • !fivepd remove
    Removes the server that is attached to this Discord server
  • !fivepd unset
    Unsets notification channels
Images
backup_request.png
Bot stats.png
Callout.png
code99.png
off_duty.png
on_duty.png

Join FivePD API Support / Development discord!

Click here to join

 

Follow us on twitter!

Share this post


Link to post
Share on other sites
Posted (edited)
9 minutes ago, Shelby Modifications said:

Thats exactly how I have it and it doesnt workimage.thumb.png.7bd889fbfefd6d21bb6a19dba20b98d0.png

The bracket on line 57 has to be all the way back on the row. Just like it is under the AdminCode. And the AdminCode bracket should be pushed forward like the one on Line 50, alongside a coma after it.

Edited by Smanbg

Share this post


Link to post
Share on other sites
Author of the topic Posted
13 minutes ago, Smanbg said:

The bracket on line 57 has to be all the way back on the row. Just like it is under the AdminCode. And the AdminCode bracket should be pushed forward like the one on Line 50, alongside a coma after it.

No, he is missing a comma on line 53.

should be like

},

"Discord":{
...
}


Join FivePD API Support / Development discord!

Click here to join

 

Follow us on twitter!

Share this post


Link to post
Share on other sites
2 minutes ago, ChyVase said:

@ItzGraviest I enter this order or?

 

You invite the Discord Bot to your server, Authorise it and then you do that command in Discord which you IP and Port number in those IP and Port spots

Share this post


Link to post
Share on other sites

Question  is the IP and Port  that it need is that from the fivem server  correct or am i wrong 

Share this post


Link to post
Share on other sites
25 minutes ago, bradn said:

Question  is the IP and Port  that it need is that from the fivem server  correct or am i wrong 

It’s the IP and Port of Your FivM Server.

Copy it all and paste it there in replacement.

Share this post


Link to post
Share on other sites
7 minutes ago, Scottywonderful said:

It’s the IP and Port of Your FivM Server.

Copy it all and paste it there in replacement.

Got it thank you 

Share this post


Link to post
Share on other sites
Posted (edited)

Only problem I have with it is i cannot access the ingame cad unless i am in a vehicle from the F11 menu as to before i could access it even from my addon LEO vehicles

 

Edited by ZeroFallen212
forgot a word

Share this post


Link to post
Share on other sites
Author of the topic Posted
8 minutes ago, ZeroFallen212 said:

Only problem I have with it is i cannot access the ingame cad unless i am in a vehicle from the F11 menu as to before i could access it even from my addon LEO vehicles

 

It has absolutely nothing to do with your in-game CAD.


Join FivePD API Support / Development discord!

Click here to join

 

Follow us on twitter!

Share this post


Link to post
Share on other sites

Im getting syntax error when trying to do "!fivepd set <duty|backups|reports|callouts> <Department ID>" 
Do I only change the Department ID with like 2 for example? so " !fivepd set <duty|backups|reports|callouts> <2>" ?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Reason for Locking
Users keep requesting support

By Daniel K., on 07/01/2020 02:33 PM.


×
×
  • Create New...

Important Information

Please view the site: Terms of Use, Privacy Policy, and Guidelines. // IMPORTANT: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.