xXMADEXx Posted November 11, 2012 Posted November 11, 2012 Would it be possible to put a police car light bar on a Washington and make it have the sound also? The Ultimate Lua Tutorial! | MTA PHP SDK
Ab-47 Posted November 11, 2012 Posted November 11, 2012 This is something similar.. Where you can attach objects to your existing vehicle local ccx,ccy,ccz,ccrx,ccry,ccrz= 0,2.5,0.1,0,0,0 local cx,cy,cz,crx,cry,crz= 0,-1.5,-0.1,0,0,-90 local x,y,z,rx,ry,rz= -0.7,-0.0,0.8,0,0,-90 local ax,ay,az,arx,ary,arz= -0.4,-0.0,0.8,0,0,-90 local aax,aay,aaz,aarx,aary,aarz= -0.1,-0.0,0.8,0,0,-90 local aaax,aaay,aaaz,aaarx,aaary,aaarz= 0.2,-0.0,0.8,0,0,-90 local aaaax,aaaay,aaaaz,aaaarx,aaaary,aaaarz= 0.5,-0.0,0.8,0,0,-90 function upgradeTheCar(cmd) local veh = getPedOccupiedVehicle ( localPlayer ) cminigun = createObject( 1636, 2,2,2) minigun = createObject( 2985, 2,2,2) base = createObject( 360, 2,2,2) abase = createObject( 360, 2,2,2) aabase = createObject( 360, 2,2,2) aaabase = createObject( 360, 2,2,2) aaaabase = createObject( 360, 2,2,2) setElementCollisionsEnabled ( base, false ) attachElements ( cminigun, veh, ccx,ccy,ccz,ccrx,ccry,ccrz) attachElements ( minigun, veh, cx,cy,cz,crx,cry,crz) attachElements ( base, veh, x,y,z,rx,ry,rz) attachElements ( abase, veh, ax,ay,az,arx,ary,arz) attachElements ( aabase, veh, aax,aay,aaz,aarx,aary,aarz) attachElements ( aaabase, veh, aaax,aaay,aaaz,aaarx,aaary,aaarz) attachElements ( aaaabase, veh, aaaax,aaaay,aaaaz,aaaarx,aaaary,aaaarz) end addCommandHandler("upgradeMyCar", upgradeTheCar) And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
myonlake Posted November 12, 2012 Posted November 12, 2012 Oh god, no. Use addVehicleSirens. If I helped you, please click the like button on the right Thanks!
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