DISTINCTIVE DEVELOPMENT – PERSISTENT FLASHLIGHT
Stand alone useful resource for a persistent flashlight in sport written in C#. Written by me whereas being in a group. Edited, reworked, added a config, mounted some points and releasing without cost underneath our improvement group Distinctive Improvement.
It disables the present default GTA5 flashlight and makes use of the Fivem Native: DrawSpotlight to create flashlights for all gamers who’ve them enabled on the gun (identical hotkey: “E”). All the things is synced with different gamers and the script remembers if the flashlight was on the actual gun if you get it out once more, for instance coming into and exiting a automobile.
Be a part of our Discord right here for help or when you wanna chat: https://discord.distinctive-dev.com
Default config with a yellowish flashlight
taserflashlight: true/false (allow or disable the flashlight on the taser, use lowercase)
The opposite variables are from the Fivem native DrawSpotlight (besides pos and dir) and may be set within the config to alter the flashlight to your personal choice. Variables are set to INT within the code, so use complete numbers within the config, decimals received’t work.
- Export the folder contained in the rar file to your server sources
- Add “DD-PERSISTENTFLASHLIGHT” to your server.cfg with begin or guarantee
- [Optional] Configure the config
- Begin the useful resource or reboot the server
V1.0.0 DD-PERSISTENTFLASHLIGHT.rar (157.5 KB)