GetVehicleSirenParams: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{New feature/item|4.0120|1.4|3966|
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
{{New feature/item|4.0140|1.4|3966|
This function get the parameters of a vehicles siren.
This function get the parameters of a vehicles siren.
}}


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
getVehicleSirenParams ( vehicle theVehicle )
table getVehicleSirenParams ( vehicle theVehicle )
</syntaxhighlight>
</syntaxhighlight>


Line 21: Line 22:
==Example==
==Example==
{{Example}}
{{Example}}
}}


==Requirements==
==Requirements==

Revision as of 20:28, 2 April 2012

ADDED/UPDATED IN VERSION 1.4 r3966:

This function get the parameters of a vehicles siren.

Syntax

table getVehicleSirenParams ( vehicle theVehicle )

Required Arguments

  • theVehicle: The vehicle to get the siren parameters of

Returns

Returns a table with the siren count, siren type and a sub table for the four flags. False otherwise.

sirenParams = { sirenCount, sirenType, { is360, doLOSCheck, useRandomiser, silent } }

Example

Accessories-text-editor.png Script Example Missing Function GetVehicleSirenParams 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