Class VEHICLE
Emergency Lighting Vehicle Meta
Info:
- Copyright: Photon Team
- Release: development
- Author: Photon Team
Functions
Methods
vehicle:Photon_Lights() | Get lighting state. |
vehicle:GetPhotonLEStayOn() | Gets the Siren StayOn State. |
vehicle:SetPhotonLEStayOn([val]) | Sets the new Siren Stay On State. |
vehicle:ELS_Enabled([val]) | Sets if the vehicle has ELS enabled. |
vehicle:ELS_Lights([val]) | Sets if the vehicle has ELS lights running. |
vehicle:ELS_LightOption([val]) | Sets the active light value. |
vehicle:ELS_Siren([val]) | Sets if the vehicle has siren running. |
vehicle:ELS_SirenOption([val]) | Sets the active siren. |
vehicle:ELS_SirenSet([val]) | Sets the set of sirens. |
vehicle:ELS_AuxSirenSet([val]) | Sets the set of sirens. |
vehicle:ELS_HasAuxSiren() | Checks if the vehicle has aux sirens. |
vehicle:ELS_Traffic([val]) | Gets/Sets Traffic Advisor enable state. |
vehicle:ELS_TrafficOption([val]) | Gets/Sets Traffic Advisor option. |
vehicle:ELS_Illuminate([val]) | Gets/Sets illumination enabled. |
vehicle:ELS_IlluminateOption([val]) | Gets/Sets Illumination option. |
vehicle:ELS_PresetOption([New]) | Gets/Sets the a EMV preset. |
vehicle:Photon_IsReversing() | Get if the Vehicle is Reversing. |
vehicle:Photon_IsBraking() | Get if the Vehicle is Braking. |
vehicle:Photon_IsRunning() | Gets the running lights state. |
vehicle:Photon_BlinkState() | Gets the turn signal value. |
vehicle:Photon_TurningLeft() | Gets if the left turn indicator is enabled |
vehicle:Photon_TurningRight() | Gets if the right turn indicator is enabled |
vehicle:Photon_Hazards() | Gets if the hazard lights are enabled |
vehicle:Photon_WorldVelocity() | Get the World Localised Velocity |
vehicle:Photon_IsReversing() | Get if the Vehicle is Reversing. |
vehicle:Photon_IsBraking() | Get if the Vehicle is Braking. |
vehicle:Photon_Signal([val]) | Set a new signal value. |
vehicle:Photon_SignalStop() | Stop any signals. |
vehicle:Photon_TurnLeft([bool]) | Set the left signal. |
vehicle:Photon_TurnRight([bool]) | Set the right signal. |
vehicle:Photon_Hazards([If]) | Set the hazard signals. |
vehicle:Photon_IsRunning() | Gets the running lights state. |
vehicle:Photon_WheelEnabled() | Get if this vehicle has wheels. |
vehicle:Photon_PlayerSetWheelIndex(val) | Set the wheel index. |
Functions
Methods- Vehicle:SetPhotonNet_CurrentSignal(value)
-
Parameters:
- value integer New Current Signal Value.
- Vehicle:GetPhotonNet_CurrentSignal(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
int
Current Signal Value.
- Vehicle:SetPhotonNet_Blinker(value)
-
Parameters:
- value integer New Current Signal Value.
- Vehicle:GetPhotonNet_Blinker(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
int
Current Signal Value.
- Vehicle:SetPhotonNet_Headlights(value)
-
Parameters:
- value boolean New Current Signal Value.
- Vehicle:GetPhotonNet_Headlights(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
bool
Current Signal Value.
- Vehicle:SetPhotonNet_Breaking(value)
-
Parameters:
- value boolean New Current Signal Value.
- Vehicle:GetPhotonNet_Breaking(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
bool
Current Signal Value.
- Vehicle:SetPhotonNet_Reversing(value)
-
Parameters:
- value boolean New Current Signal Value.
- Vehicle:GetPhotonNet_Reversing(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
bool
Current Signal Value.
- Vehicle:SetPhotonNet_Running(value)
-
Parameters:
- value boolean New Current Signal Value.
- Vehicle:GetPhotonNet_Running(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
bool
Current Signal Value.
- Vehicle:SetPhotonNet_LEStayOn(value)
-
Parameters:
- value boolean New Current Signal Value.
- Vehicle:GetPhotonNet_LEStayOn(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
bool
Current Signal Value.
- Vehicle:SetPhotonNet_WheelIndex(value)
-
Parameters:
- value boolean New Current Signal Value.
- Vehicle:GetPhotonNet_WheelIndex(default)
-
Parameters:
- default Default value if no local value is found.
Returns:
-
bool
Current Signal Value.
Methods
- vehicle:Photon_Lights()
-
Get lighting state.
Returns:
-
bool
- vehicle:GetPhotonLEStayOn()
-
Gets the Siren StayOn State.
Returns:
-
bool
- vehicle:SetPhotonLEStayOn([val])
-
Sets the new Siren Stay On State.
Parameters:
- val boolean New siren state. (optional)
Returns:
-
bool
The new set value.
- vehicle:ELS_Enabled([val])
-
Sets if the vehicle has ELS enabled.
Parameters:
- val boolean New enable state (optional)
Returns:
-
bool
The set value.
- vehicle:ELS_Lights([val])
-
Sets if the vehicle has ELS lights running.
Parameters:
- val boolean New enable state (optional)
Returns:
-
bool
The set value.
- vehicle:ELS_LightOption([val])
-
Sets the active light value.
Parameters:
- val integer New active option (optional)
Returns:
-
int
The set value.
- vehicle:ELS_Siren([val])
-
Sets if the vehicle has siren running.
Parameters:
- val boolean New enable state (optional)
Returns:
-
bool
The set value.
- vehicle:ELS_SirenOption([val])
-
Sets the active siren.
Parameters:
- val integer Siren option. (optional)
Returns:
-
int
The set value.
- vehicle:ELS_SirenSet([val])
-
Sets the set of sirens.
Parameters:
- val integer Siren set. (optional)
Returns:
-
int
The set value.
- vehicle:ELS_AuxSirenSet([val])
-
Sets the set of sirens.
Parameters:
- val integer Siren set. (optional)
Returns:
-
int
The set value.
- vehicle:ELS_HasAuxSiren()
-
Checks if the vehicle has aux sirens.
Returns:
-
bool
- vehicle:ELS_Traffic([val])
-
Gets/Sets Traffic Advisor enable state.
Parameters:
- val integer TA enabled. (optional)
Returns:
-
int
The set value.
- vehicle:ELS_TrafficOption([val])
-
Gets/Sets Traffic Advisor option.
Parameters:
- val integer TA direction. (optional)
Returns:
-
int
The set value.
- vehicle:ELS_Illuminate([val])
-
Gets/Sets illumination enabled.
Parameters:
- val integer Illumination State. (optional)
Returns:
-
int
The set value.
- vehicle:ELS_IlluminateOption([val])
-
Gets/Sets Illumination option.
Parameters:
- val integer New Illumination Option. (optional)
Returns:
-
int
The set value.
- vehicle:ELS_PresetOption([New])
-
Gets/Sets the a EMV preset.
Parameters:
- New integer preset value. (optional)
Returns:
-
int
The current preset value.
- vehicle:Photon_IsReversing()
-
Get if the Vehicle is Reversing.
Warnings:
- This function will only natively work on the Server or Local Client.
- It will not work for other players in the Client realm.
- Instead, a cached value is fetched from the server.
Returns:
-
bool
- vehicle:Photon_IsBraking()
-
Get if the Vehicle is Braking.
Warnings:
- This function will only natively work on the Server or Local Client.
- It will not work for other players in the Client realm.
- Instead, a cached value is fetched from the server.
Returns:
-
bool
- vehicle:Photon_IsRunning()
-
Gets the running lights state.
Returns:
-
bool
The running light state.
- vehicle:Photon_BlinkState()
-
Gets the turn signal value.
Returns:
-
int
Blinker State
- vehicle:Photon_TurningLeft()
-
Gets if the left turn indicator is enabled
Returns:
-
bool
- vehicle:Photon_TurningRight()
-
Gets if the right turn indicator is enabled
Returns:
-
bool
- vehicle:Photon_Hazards()
-
Gets if the hazard lights are enabled
Returns:
-
bool
- vehicle:Photon_WorldVelocity()
-
Get the World Localised Velocity
Returns:
-
Vector
- vehicle:Photon_IsReversing()
-
Get if the Vehicle is Reversing.
Warnings:
- This function will only natively work on the Server or Local Client.
- It will not work for other players in the Client realm.
- Instead, a cached value is fetched from the server.
Returns:
-
bool
- vehicle:Photon_IsBraking()
-
Get if the Vehicle is Braking.
Warnings:
- This function will only natively work on the Server or Local Client.
- It will not work for other players in the Client realm.
- Instead, a cached value is fetched from the server.
Returns:
-
bool
- vehicle:Photon_Signal([val])
-
Set a new signal value.
Parameters:
- val integer New signal value. (optional)
Returns:
-
int
Set signal value.
- vehicle:Photon_SignalStop()
-
Stop any signals.
Returns:
-
int
New signal value.
- vehicle:Photon_TurnLeft([bool])
-
Set the left signal.
Parameters:
- bool boolean If the signal should be enabled / disabled / unchanged. (optional)
Returns:
-
int
New signal value.
- vehicle:Photon_TurnRight([bool])
-
Set the right signal.
Parameters:
- bool boolean If the signal should be enabled / disabled / unchanged. (optional)
Returns:
-
int
New signal value.
- vehicle:Photon_Hazards([If])
-
Set the hazard signals.
Parameters:
- If boolean the signal should be enabled / disabled / unchanged. (optional)
Returns:
-
int
New signal value.
- vehicle:Photon_IsRunning()
-
Gets the running lights state.
Returns:
-
bool
The running light state.
- vehicle:Photon_WheelEnabled()
-
Get if this vehicle has wheels.
Returns:
-
bool
- vehicle:Photon_PlayerSetWheelIndex(val)
-
Set the wheel index.
Parameters:
- val integer New wheel index.