GetVehicleModelExhaustFumesPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ {{New feature/item|3.0155|1.5.5|| This function returns the position of the exhaust fumes the vehicle model emits. }} ==Syntax== <syntaxhighlig...")
 
Line 17: Line 17:


==Example==  
==Example==  
{{Needs_example}}
<syntaxhighlight lang="lua">
local vehicle = createVehicle(411,0,0,3) --Create a vehicle
local x,y,z = getVehicleModelExhaustFumesPosition(vehicle) -- Get its exhaust fumes position
setVehicleModelExhaustFumesPosition(vehicle,x,y,z+1) -- Set its exhaust fumes position
</syntaxhighlight>


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

Revision as of 02:39, 7 October 2017

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

Syntax

float, float, float setVehicleModelExhaustFumesPosition(int modelID)

Parameters

  • modelID: The vehicle model ID

Returns

Returns the position of the exhaust fumes if everything went fine or false otherwise.

Example

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

See Also

Shared