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

This template will be deleted.

See Also