Take downs - TrevorBarns/luxart-vehicle-control GitHub Wiki

Introduction

LVCs first plugin, "takedowns" moves previously implemented take down features to this plugin. The take downs plugin allows clients to activate a bright light in front of their vehicle at the push of a button. The use is to imitate real life take-downs, which are used for illuminating traffic stops and increasing visibility in the dark when attempting to locate persons or things.

It works by using CFX native DrawSpotlight(...). It does not, modify any extras, but can integrate with your vehicles high-beam system to either trigger on high-beams or trigger high-beams on take-down activation.

Configuration

  1. Ensure that plugins_installed is set to true in lvc/SETTINGS.lua.

  2. Open the SETTINGS.lua located in lvc/PLUGINS/takedowns. Adjust settings to your liking.

    Common Name Variable Name Action Data Constraints Default
    Master-switch tkd_masterswitch Toggles if plugin is enabled. Disabling this removes it from plugin menu, stops it's functionality. true / false true
    Key tkd_key Key that activates take-downs, if tkd_combokey is depressed or disabled. Static Control # 74
    Combokey tkd_combokey Activates tkd_key when depressed if not set to 0. Static Control # 21
    Default Intensity tkd_intensity_default Sets default brightness of take-down light 0-150 100
    Default Radius tkd_radius_default Sets default spread angle in reference to vehicle. 0-90 50
    Default Distance tkd_distance_default Sets default max distance light is visible, brightness effected by fall-off at distance. 0-250 50
    Default Falloff tkd_falloff_default Sets default distance that the light begins to dim due to distance. 0-2000 1000
    Sync Radius tkd_sync_radius Distance at which take-downs are synced to other users. ⚠️ This has extreme implications on performance, 400 or less is recommended. 0-10500 400
    Default High-Beam Integration tkd_highbeam_ integration_default Sets default state for high-beam integration. 1-3 2
  3. Finished ✅ , configure your personal settings in game under 'PLUGINS/Takedowns' menu.