-- by Cosmo with <3
local se = require "samp.events"
local key_state = false
function se.onSendVehicleSync(data)
if bit.band(data.keysData, 0x01) == 0x01 and bit.band(data.keysData, 0x04) ~= 0x04 then
if key_state == false then sampSendChat("/lights") end
data.keysData = bit.bxor(data.keysData, 0x01)
key_state = true
elseif key_state then
key_state = false
end
return data
end