1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/thommie-nightvision/sv_main.lua

8 lines
313 B
Lua
Raw Normal View History

2025-06-29 23:58:18 +02:00
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
2025-06-30 21:37:12 +02:00
TriggerClientEvent('nightvision:toggleHelmet', source)
2025-06-29 23:58:18 +02:00
end
2025-06-30 21:37:12 +02:00
end)