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.

Set Player Voice

Featured Replies

Hi there, I'm really new to plugin development (as in: I started looking into it today).
For my first little project I want a plugin that allows me to change the player's voice to any of the cop voices for use with EUP.
Now I know that until a certain update of the RPH this was possible through the console, but strangely this option was removed at some point.

My question now is, if and how this is even possible.
I know there is a Ped.Voice property, but I couldn't find anything similar in the Player class.

You use Game.LocalPlayer.Character to get the player's ped. You don't need to use the player class.

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
5 minutes ago, Albo1125 said:

You use Game.LocalPlayer.Character to get the player's ped. You don't need to use the player class.

Aaaah, thank you, this makes sense now.

I got confused by Player.Character and Player.Model which of course doesn't have such an attribute.

BTW your video series is really helping me getting started with this, thank you so much!

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.