Jump to content

[Plugin] Duty Plugin w/ source code 1.0.0

   (0 reviews)

1 Screenshot

This plugin was designed to be used with OfficialBadger PoliceEMSActivity script

Script Here

Dependency Script

You will have to create and invite a discord bot for your server


Readme stuff for the script here

This script runs the command to turn these blips on and off as you go on duty and off duty

I have included the source code so you can edit this to run any command you need to for your server

using System.Threading.Tasks;
using FivePD.API;
using CitizenFX.Core.Native;

namespace dutyplugin
    public class dutyplugin
        public class Plugin : FivePD.API.Plugin
            internal Plugin()
                Events.OnDutyStatusChange += OnDutyStatusChange;

            private async Task OnDutyStatusChange(bool onDuty)
                if (onDuty) {
                } else {


Edited by Grandpa Rex
Badger updated his stuff

OfficialBadger for making the amazing PoliceEMSActivity script
FloatDev for helping me figure out FiveM natives and get this plugin working!

  • Like 1

User Feedback

Recommended Comments

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

Thanks for visiting GPM. As a user of the GTAPoliceMods platform, we ask that you review the Terms of Use, Privacy Policy, and Guidelines. These principles allow us to continue fostering a great community. We have placed cookies on your device to help improve your experience. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.