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.

Issue with spawning a police car and lights

Featured Replies

Hello!

So I am creating callouts and using Rage and the API,

I spawned a vehicle which is a police vehicle equipped with lights and sirens but I can't find a way to turn on the lights and sirens.

Could anybody help me?

Thanks!

“For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.”

- Bill Bryson

23 minutes ago, CreepPork said:

Hello!

So I am creating callouts and using Rage and the API,

I spawned a vehicle which is a police vehicle equipped with lights and sirens but I can't find a way to turn on the lights and sirens.

Could anybody help me?

Thanks!

Use the propertie IsSirenOn:
      vehicle.IsSirenOn = true;
 

And if you want the siren to be silent too, use IsSirenSilent :
     vehicle.IsSirenSilent = true;

 

Edited by alexguirre

  • Author
58 minutes ago, alexguirre said:

Use the propertie IsSirenOn:
      vehicle.IsSirenOn = true;
 

And if you want the siren to be silent too, use IsSirenSilent :
     vehicle.IsSirenSilent = true;

 

Thank you, that works brilliant! 

“For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.”

- Bill Bryson

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.