Dretax Posted July 30, 2017 Share Posted July 30, 2017 https://wiki.multitheftauto.com/wiki/SetVehicleSirens I'm kinda confused with the use. I managed to add sirens to a car, and I can enable It, but I can't see the lights. Why is that? Link to comment
Dimos7 Posted July 30, 2017 Share Posted July 30, 2017 because the light are from that function setVehicleSirens Link to comment
Dretax Posted July 30, 2017 Author Share Posted July 30, 2017 1 minute ago, Dimos7 said: because the light are from that function setVehicleSirens As you can see, above I'm using that, but light doesn't appear. Why? Link to comment
Dimos7 Posted July 30, 2017 Share Posted July 30, 2017 you need to put that function too getVehicleSirensOn setVehicleSirensOn Link to comment
Zorgman Posted July 30, 2017 Share Posted July 30, 2017 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. Link to comment
Dimos7 Posted July 31, 2017 Share Posted July 31, 2017 for your information the lights coming from that setVehicleSirens(vehicle, point, x, y, z, red, green, blue, alpha, minaplha) Link to comment
Dretax Posted July 31, 2017 Author Share Posted July 31, 2017 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? Link to comment
Dimos7 Posted July 31, 2017 Share Posted July 31, 2017 can you give the code post it in code button so see what you have Link to comment
Dretax Posted July 31, 2017 Author Share Posted July 31, 2017 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) Link to comment
Dimos7 Posted July 31, 2017 Share Posted July 31, 2017 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 Link to comment
Dretax Posted August 2, 2017 Author Share Posted August 2, 2017 (edited) Doesn't seem to be a solution. It's actually a code check, my problem is still that i have no siren LIGHTS. Edited August 2, 2017 by Dretax Link to comment
keymetaphore Posted August 3, 2017 Share Posted August 3, 2017 What car you are doing it on? There are some unsupported cars, and show the whole function, because car is not defined. Link to comment
Dretax Posted August 4, 2017 Author Share Posted August 4, 2017 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now