Changeable Vehicle Headlights with an Item
Description
An item opens a menu that allows you to change the color of the headlights.
In the Config many things are easily adjustable.
Config
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
Config.Debug = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
-- Look for type == 'client' and type == 'server'
Config.Notification = function(src, action, xPlayer, message)
if action == 'client' then -- clientside
MSK.Notification(message) -- replace this with your Notify
elseif action == 'server' then -- serverside
MSK.Notification(src, message) -- replace this with your Notify
end
end
----------------------------------------------------------------
Config.Item = {name = 'headlights', label = 'Headlights'}
Config.removeItem = true -- Set to false if you dont want to remove the Item after use
Config.useNearVehicle = true -- Set to false if you dont want to use the item outside of the vehicle
Config.useInsideVehicle = true -- Set to false if you want to use the item inside of the vehicle
Config.Distance = 3.0 -- Only effects if Config.useNearVehicle = true
Config.Colors = {
{name = 'default', label = 'Default', color = -1}, -- please don't edit the color in this line !!
{name = 'xenon', label = 'Xenon', color = 'xenon'}, -- please don't edit the color in this line !!
{name = 'white', label = 'White', color = 0},
{name = 'blue', label = 'Blue', color = 1},
{name = 'electric_blue', label = 'Electric_Blue', color = 2},
{name = 'mint_green', label = 'Mint Green', color = 3},
{name = 'lime_green', label = 'Lime Green', color = 4},
{name = 'yellow', label = 'Yellow', color = 5},
{name = 'gold', label = 'Gold', color = 6},
{name = 'orange', label = 'Orange', color = 7},
{name = 'red', label = 'Red', color = 8},
{name = 'pony_pink', label = 'Pony Pink', color = 9},
{name = 'hot_pink', label = 'Hot Pink', color = 10},
{name = 'purple', label = 'Purple', color = 11},
{name = 'blacklight', label = 'Blacklight', color = 12},
}
Download
Code is accessible | Yes |
Subscription-based | No |
Lines (approximately) | 300 |
Requirements | es_extended, NativeUI, oxmysql, msk_core |
Support | Yes |
My other Scripts
Paid
- [ESX] MSK Armor - Multiple Armor Vests
- [ESX] MSK Bankingsystem with NativeUI [V2]
- [ESX] MSK Crafting - with NativeUI
- [ESX] MSK Garage and Impound with NativeUI
- [ESX] MSK Handcuffs - Realistic Handcuffs
- [ESX] MSK Shopsystem - NativeUI & Database Feature
- [ESX/QBCore] MSK Simcard - Change your phonenumber
- [ESX] MSK WeaponAmmo | Clips, Components & Tints
Free
- [ESX] Backpack Plugin | Chezza Inventory
- [ESX] MSK Deathcounter - integrated in myMultichar
- [Re-Release] EngineToggle
- GitHub - Musiker15/msk_givevehicle: Give Vehicles with Command or Item and Delete Vehicles with Command
- GitHub - MSK-Scripts/msk_rgbHeadlights: Changeable Vehicle Headlights with an Item
- [ESX] MSK SaveCoordMenu
- [ESX/QBCore] MSK SecretBlips - Show and delete Blips with an item
- GitHub - MSK-Scripts/msk_webhook: Send Discord Webhooks
- GitHub - MSK-Scripts/msk_weaponammoitems: Weapon Ammunition as Items