SetVehicleSirens: Difference between revisions

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

Revision as of 18:29, 2 April 2012

ADDED/UPDATED IN VERSION 1.4 r3964:

This function changes the properties of a vehicles siren point.

Syntax

setVehicleSirens ( vehicle theVehicle, int sirenPoint, float posX, float posY, float posZ, float red, float green, float blue, [float alpha = 255, float minAlpha = 0.0] )

Required Arguments

  • theVehicle: The vehicle to modify
  • sirenPoint: The siren point to modify
  • posX: The x position of this siren point from the center of the vehicle
  • posY: The y position of this siren point from the center of the vehicle
  • posZ: The z position of this siren point from the center of the vehicle
  • red: The amount of red from 0 to 255
  • green: The amount of green from 0 to 255
  • blue: The amount of blue from 0 to 255

Optional Arguments

  • alpha: The alpha of the siren from 0 to 255
  • minAlpha: The minimum alpha of the light during day time

Returns

Returns true if the siren point was successfully changed on the vehicle, false otherwise.

Example

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

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

Requirements

Minimum server version This function has not yet been merged
Minimum client version n/a

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="This function has not yet been merged" />

See Also