1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/thommie-nightvision/sv_main.lua
2025-06-30 21:37:12 +02:00

8 lines
No EOL
313 B
Lua

local QBCore = exports[Config.CoreName]:GetCoreObject()
QBCore.Functions.CreateUseableItem(Config.NVItem, function(source, item)
local Player = QBCore.Functions.GetPlayer(source)
if Player.Functions.GetItemByName(item.name) then
TriggerClientEvent('nightvision:toggleHelmet', source)
end
end)