GetVehicleSirens

From Multi Theft Auto: Wiki
Revision as of 20:33, 2 April 2012 by X86dev (talk | contribs)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.4 r3966:

This function get the properties of a vehicles sirens.

Syntax

table 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

Minimum server version 1.4-3966
Minimum client version 1.4-3966

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.4-3966" client="1.4-3966" />

See Also