SetVehicleModelExhaustFumesPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
 
Line 21: Line 21:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
local x, y, z = getVehicleModelExhaustFumesPosition( 411 ) -- Get its exhaust fumes position
local x, y, z = getVehicleModelExhaustFumesPosition( 411 ) -- Get its exhaust fumes position
setVehicleModelExhaustFumesPosition( 411, x, y,z + 1 ) -- Set its exhaust fumes position
setVehicleModelExhaustFumesPosition( 411, x, y, z + 1 ) -- Set its exhaust fumes position
local vehicle = createVehicle( 411, 0, 0, 3 ) -- Create a vehicle
local vehicle = createVehicle( 411, 0, 0, 3 ) -- Create a vehicle
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 10:50, 6 July 2018

This function sets the position of the exhaust fumes the vehicle model emits. Use setVehicleComponentPosition to adjust the exhaust position.

Syntax

bool setVehicleModelExhaustFumesPosition ( int modelID, float posX, float posY, float posZ )

OOP Syntax Help! I don't understand this!

Method: Vehicle.setModelExhaustFumesPosition(...)
Counterpart: getVehicleModelExhaustFumesPosition


Required Arguments

  • modelID: The model ID which you want to apply the change to
  • posX, posY, posZ: The desired position

Returns

Returns true if everything went fine, false otherwise.

Example

local x, y, z = getVehicleModelExhaustFumesPosition( 411 ) -- Get its exhaust fumes position
setVehicleModelExhaustFumesPosition( 411, x, y, z + 1 ) -- Set its exhaust fumes position
local vehicle = createVehicle( 411, 0, 0, 3 ) -- Create a vehicle

See Also