pejczi Posted August 30, 2013 Share Posted August 30, 2013 Hey, Recently I found out function addVehicleSirens The problem is that it gives only siren sound from vehicle instead of object on the roof + sound addVehicleSirens(source,1,2,true,true,true,false) https://wiki.multitheftauto.com/wiki/AddVehicleSirens Maybe i wrote bad integers? Any ideas for lights on the roof? Link to comment
manawydan Posted August 30, 2013 Share Posted August 30, 2013 addVehicleSirens source is vehicle? Link to comment
Castillo Posted August 30, 2013 Share Posted August 30, 2013 Because that's all what the function does, it doesn't add the object at the roof. Link to comment
Tails Posted February 6, 2014 Share Posted February 6, 2014 It's giving me the sound but it's not showing any lights: Server side: addEventHandler("onVehicleEnter",root,function(player,seat) if(getElementModel(source) == 411)then if(player)and(seat==0)then addVehicleSirens(source,5,5) end end end) Anyone know how to fix it? Edit: It seems like the lights are placed inside the vehicle barely even visible. Is there a way to move them to the top of the vehicle? Link to comment
xXMADEXx Posted February 6, 2014 Share Posted February 6, 2014 You have to add the object yourself, it creates the sound, not object. use: createObject attachElements Link to comment
xXMADEXx Posted February 7, 2014 Share Posted February 7, 2014 What about the lights You have to add the object yourself, it creates the sound, not object.use: createObject attachElements Link to comment
Tails Posted February 7, 2014 Share Posted February 7, 2014 I already have an object. I'm using a customized vehicle. Just need the lights that I had months ago when I used the same script. It was working back then Link to comment
xXMADEXx Posted February 7, 2014 Share Posted February 7, 2014 You can use createMarker to create the light. 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