Vehicle::neonEnabled: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
This property is used to check whether vehicle neon light is enabled or disabled | This property is used to check whether vehicle neon light is enabled or disabled | ||
== Setter == | |||
* {{RageType|Boolean}} <code>true</code> to enable neon, <code>false</code> to disable neon. | |||
== Getter == | == Getter == | ||
* {{RageType|Boolean}} | * {{RageType|Boolean}} <code>true</code> if neon is enabled, <code>false</code> if neon is disabled. | ||
== Example == | == Example == | ||
{{ | {{ServersideCode| | ||
<pre> | <pre> | ||
vehicle.neonEnabled = true; // Enable this vehicle neon | vehicle.neonEnabled = true; // Enable this vehicle neon | ||
| Line 16: | Line 16: | ||
== See also == | == See also == | ||
* [[Vehicle::isNeonLightEnabled]] - Client side function | * [[Vehicle::isNeonLightEnabled]] - Client side function | ||
* [https://wiki.gtanet.work/index.php?title=GetVehicleNeonState GetVehicleNeonState] - Same function in C# bridge | |||
[[Category:Vehicle]] | |||
[[Category:Server-side Property]] | [[Category:Server-side Property]] | ||
Revision as of 08:00, 13 May 2019
This property is used to check whether vehicle neon light is enabled or disabled
Setter
- Boolean
trueto enable neon,falseto disable neon.
Getter
- Boolean
trueif neon is enabled,falseif neon is disabled.
Example
Server-Side
vehicle.neonEnabled = true; // Enable this vehicle neon
See also
- Vehicle::isNeonLightEnabled - Client side function
- GetVehicleNeonState - Same function in C# bridge