Jump to content

SetvehicleSirens


Dretax

Recommended Posts

Posted

Never used this, but always assumed that it covers only the sound part... I mean, it's a siren, right? There's a function to retrieve siren parameters, and none of them seems to be explicitly related to lights. I've seen some 'police lights' resources on the community and I guess they are there to fill this gap. I might be wrong though.

BHgi29I.png
  Dystopia alpha 0.75
DOWNLOAD

Posted

for your information the lights coming from that 

setVehicleSirens(vehicle, point, x, y, z, red, green, blue, alpha, minaplha)

 

 

 

Posted
12 hours ago, Dimos7 said:

you need to put that function too 


getVehicleSirensOn 
setVehicleSirensOn

 

Well I have that too. Maybe I'm placing them to a wrong position?

addVehicleSirens(car, 1, 2)

local boolv = setVehicleSirens (car, 1, 0, 0, 10, 145, 0, 0, 200, 150)

It returns true, I'm guessing the positions shouldn't be those positions?

Software Engineer, available for hire.

http://github.com/dretax

Posted
1 hour ago, Dimos7 said:

can you give the code post it in code button so see what you have

It was above, but I'm gonna repost then.

 

addVehicleSirens(car, 1, 2, false, true, true, false)
setVehicleSirensOn(car, false)
setVehicleSirensOn(car, true)
local boolv = setVehicleSirens (car, 1, 0, 0, 10, 145, 0, 0, 200, 150)

 

Software Engineer, available for hire.

http://github.com/dretax

Posted
addVehicleSirens(car, 1, 2, false, true, true, false)
if getVehicleSirensOn then
setVehicleSirensOn(car, false)
else
setVehicleSirensOn(car, true)
  end
local boolv = setVehicleSirens (car, 1, 0, 0, 10, 145, 0, 0, 200, 150)

car its not defind in here but there you go

 

 

Posted
On 2017. 08. 03. at 12:23, Gourmet. said:

What car you are doing it on? There are some unsupported cars, and show the whole function, because car is not defined.

Sentinel, 405.

The method returns true.

Right, that :~ didn't work....

Others seems to have it.

Software Engineer, available for hire.

http://github.com/dretax

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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