Jump to content

Smoke Screen for cars


Recommended Posts

didnt think this was really worthy of posting on resources but its pretty cool

creates a fog machine inside car so it looks like you have a james bond smoke screen LOL

server side script

function carsmoke ( player, command ) 
      local vehicle = getPlayerOccupiedVehicle ( player ) 
      local x, y, z = getElementPosition ( vehicle ) 
      local smoker = createObject ( 2780, x, y, z ) 
      attachElementToElement ( smoker, vehicle, 0, 0, -1 ) 
      outputChatBox ( "BURNIN RUBBER! cough cough" ) 
      setTimer ( destroyElement, 10000, 1, smoker ) 
end 

addCommandHandler ( "smoker", carsmoke ) 

it could probably use a way of putting smoke machine in different places depending on what vehicle your in but works ok as is :D

Link to comment

thats wild cannonball LOL

same sort of idea but i put it inside the car so it looks like its coming from the underside of car

havent had a chance to do screenshot yet but will a soon as i can

EDIT :::

SCREENSHOTS!

http://www.fileshack.us/get_file.php?id=643769&file=mta-screen0040.png

http://www.fileshack.us/get_file.php?id=666744&file=mta-screen0041.png

http://www.fileshack.us/get_file.php?id=731873&file=mta-screen0043.png

http://www.fileshack.us/get_file.php?id=133847&file=mta-screen0044.png

http://www.fileshack.us/get_file.php?id=485693&file=mta-screen0046.png

http://www.fileshack.us/get_file.php?id=248831&file=mta-screen0047.png

http://www.fileshack.us/get_file.php?id=945346&file=mta-screen0050.png

i am considering putting more than one smoke machine in the car for more smoke but when you stop the vehicle or even drive slow it gets really hard to see depending on how close the camera is

EDIT 2::::

small update just added extra smoke machine but seems to make quite a difference

here u go

function carsmoke ( player, command ) 
      local vehicle = getPlayerOccupiedVehicle ( player ) 
      local x, y, z = getElementPosition ( vehicle ) 
      local smoker1 = createObject ( 2780, x, y, z ) 
      local smoker2 = createObject ( 2780, x, y, z ) 
      attachElementToElement ( smoker1, vehicle, 0, 0, -1 ) 
      attachElementToElement ( smoker2, vehicle, 0, -1, -1 ) 
      outputChatBox ( "BURNIN RUBBER! cough cough" ) 
      setTimer ( destroyElement, 30000, 1, smoker1 ) 
      setTimer ( destroyElement, 30000, 1, smoker2 ) 
end 
  

:D:D:D

Link to comment

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...