Skip to content

Function to determine current vehicle light state #478

@Einheit-101

Description

@Einheit-101

Description
Surprisingly it is currently impossible to get the vehicle light state (Enabled/disabled) in MTA.
Vehicles will always automatically disable their lights between 06:00 and 07:00 and enable them between 20:00 and 21:00. The exact point of time is random for every vehicle, it looks like it is a property of each vehicle once it gets created.

Describe the solution you'd like
A function that gets the current vehicle light status.

Describe alternatives you've considered
A function that sets the automatic light enable/disable time of a specified / all vehicles to a specified value.

Additional context
It can be done with scripting by simply overwriting headlight state, yes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions