Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Plugin Support

Featured Replies

Hello. 

I'm new to making plugins and would just like a little support.

I'm trying to make a plugin so when you press a key the lights on the police vehicle will turn on with no sound.

I know you can already do this in game but this is the base of my plugin. Can anyone help me with making the code for this action.

If you are able to help me you will be placed on who made this plugin list to show my appreciation for your support.

Thank You For Reading.

Please comment or feel free to message me.

Hello

Pretty simple to do really, set the siren on then set it to silent for the vehicle in question.

//Create or assign the vehicle
Vehicle myVehicle = new Vehicle("POLICE", SpawnPoint);

//Set the siren to on (lights and siren)
myVehicle.IsSirenOn = true;

//Mute the siren
myVehicle.IsSirenSilent = true;

Once you've done that just sit the code within a keybind check

if(Game.IsKeyDown(Key)){

//Mute siren here

}

Thats from an old copy of RPH. These methods may or may not still exist, check the documentation.

Live Streaming daily from 8pm GMT (UK) at https://twitch.tv/OfficialLukeD - I play a variety of things 😄

Join my official discord server for support, general chat and my stream schedule! https://discord.gg/Mddj7PQ

  • Author
10 minutes ago, LukeD said:

Pretty simple to do really, set the siren on then set it to silent for the vehicle in question.


//Create or assign the vehicle
Vehicle myVehicle = new Vehicle("POLICE", SpawnPoint);

//Set the siren to on (lights and siren)
myVehicle.IsSirenOn = true;

//Mute the siren
myVehicle.IsSirenSilent = true;

Once you've done that just sit the code within a keybind check


if(Game.IsKeyDown(Key)){

//Mute siren here

}

Thats from an old copy of RPH. These methods may or may not still exist, check the documentation.

Thank you very much :) ill sure check the documents now!

Hello

1 hour ago, khorio said:

Precisely! :thumbsup:

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • Author
1 hour ago, Albo1125 said:

Precisely! :thumbsup:

Just a quick question albo. Would you be interested in working on this plugin with me? If you are Ill let you know the details and things?

Hello

1 hour ago, OfficerJammy said:

Just a quick question albo. Would you be interested in working on this plugin with me? If you are Ill let you know the details and things?

Currently really busy, sorry!

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • 4 years later...

Join the conversation

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

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.