Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vehicle headlights

Featured Replies

Hey guys,
I've looked through the vehicle class methods and properties as well as the native functions and I can't seem to find anything that allows me to spawn an empty vehicle with headlights turned on. Any ideas?

Thank you!

  • Author
34 minutes ago, ToastinYou said:

I think SET_VEHICLE_LIGHTS would work best.

238f3ca28e5e5a14da1826945bb317ec.png

 

here are other options depending on what you want:

042588943de5d2cef6f6bcec1afea098.png

181c2f8dca72072363f4265e18df3ab6.png

be714828e2dda737b686cf7f84a483c9.png

 

Used http://www.dev-c.com/nativedb/ and did CTRL+F to search for light.

I did the exact same thing before posting, but thanks anyway. The only problem is SET_VEHICLE_LIGHTS explicitly says "not an on off toggle" which is what I'm looking for.
I guess I'll try out SET_ENTITY_LIGHTS and see what it does.

I just thought maybe there would be an easier way that I just missed.

I mean, RPH has functionality for the roof state of convertibles but not for headlights? Talk about priorities! xD
What this appers to mean, is that it's not as easy as it seems.

I will try out those functions and post about the results here, in case anybody has the same question.

  • Author

Okay, so here's what I've found out:
When SET_VEHICLE_LIGHTS has the following effects:

0 leaves the light out and they can be toggled by the player normally, seems to be default setting for vehicles
1 lights are out and can't be toggled
2 lights are always on and can't be toggled off
3 lights are on and engine is running, can be toggled off by player normally (exactly what I was looking for! xD)

Maybe this helps somebody else as well!

P.S.: SET_ENTITY_LIGHTS didn't seem to have any effect on the vehicle, wether the engine was running or not, so idk what it does...
 

I didn't try the other functions as I am not interested in interior lights or checking the light state.

Edited by WR'eck3d

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.