[PAID] [STANDALONE] LightsSwitch

Release info:

Simple standalone script for switching lights on or off (work only on light props you set in config).

Preview

Buy From Tebex

Discord

Features:

  • Set light props in config.

  • Work only with ox_target at the moment (update in future).

  • Fully synchronized with other players.

Requirements:

  • ox target

Images:

| Code is accessible | Yes/No
| Subscription-based | No
| Lines (approximately) | 100+
| Requirements | ox_target
| Support | Yes

isnt this literally using 2 natives?

For those that don’t want to pay for a single native, you can use SetEntityLights(prop,true).

But ill do you one better and remove the emmisive texture from it too.

Using DAMAGE_OBJECT_FRAGMENT_CHILD you can break the glass on the light like you do when you shoot it. This is on a case-by-case basis for each prop and may not work for all lights. You will need to find the child fragment index you want to ‘break’ in CodeWalker.

I.e.

DAMAGE_OBJECT_FRAGMENT_CHILD(prop, fragIndex, 0.0)
Wait(1000)
SetEntityLights(prop, true)