GetVehicleSirens: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{New feature/item|4.0120|1.4|3964| __NOTOC__ {{Server client function}} This function get the properties of a vehicles sirens. ==Syntax== <syntaxhighlight lang="lua"> getVehicleSirens ( vehi...")
 
mNo edit summary
Line 1: Line 1:
{{New feature/item|4.0120|1.4|3964|
{{New feature/item|4.0120|1.4|3966|
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
Line 31: Line 31:


==Requirements==
==Requirements==
{{Requirements|This function has not yet been merged|n/a|}}
{{Requirements|1.4-3966|1.4-3966|}}


==See Also==
==See Also==
{{Vehicle_functions}}
{{Vehicle_functions}}
[[Category:Needs_Example]]
[[Category:Needs_Example]]

Revision as of 18:53, 2 April 2012

ADDED/UPDATED IN VERSION 1.4 r3966:

This function get the properties of a vehicles sirens.

Syntax

getVehicleSirens ( vehicle theVehicle )

Required Arguments

  • theVehicle: The vehicle to get siren information on

Returns

Returns a table with sub tables containing the properties of the siren point in the following order:

Red, Green, Blue, Alpha, x, y, z, minAlpha or returns false on failure. Example:

sirenData = {
[1] = { Red, Green, Blue, Alpha, x, y, z, minAlpha },
[2] = { Red, Green, Blue, Alpha, x, y, z, minAlpha },
[3] = { Red, Green, Blue, Alpha, x, y, z, minAlpha },
[4] = { Red, Green, Blue, Alpha, x, y, z, minAlpha },
}

Example

Accessories-text-editor.png Script Example Missing Function GetVehicleSirens needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO

Requirements

This template will be deleted.

See Also