GetVehicleModelExhaustFumesPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
{{New feature/item|3.0155|1.5.5||
{{New feature/item|3.0155|1.5.5|11702|
This function returns the position of the exhaust fumes the vehicle model emits.
This function returns the position of the exhaust fumes the vehicle model emits.
}}
}}
Line 7: Line 7:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
float, float, float setVehicleModelExhaustFumesPosition(int modelID)
float, float, float getVehicleModelExhaustFumesPosition ( int modelID )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Vehicle]].getModelExhaustFumesPosition||setVehicleModelExhaustFumesPosition}}


===Parameters===
===Required Arguments===  
* '''modelID''': The vehicle model ID
* '''modelID''': The vehicle model ID.


===Returns===
===Returns===
Line 18: Line 19:
==Example==  
==Example==  
<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>


==See Also==
==See Also==
{{Vehicle_functions}}
{{Client_vehicle_functions}}

Latest revision as of 10:49, 6 July 2018

This function returns the position of the exhaust fumes the vehicle model emits.

Syntax

float, float, float getVehicleModelExhaustFumesPosition ( int modelID )

OOP Syntax Help! I don't understand this!

Method: Vehicle.getModelExhaustFumesPosition(...)
Counterpart: setVehicleModelExhaustFumesPosition


Required Arguments

  • modelID: The vehicle model ID.

Returns

Returns the position of the exhaust fumes if everything went fine or 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

Shared