forked from Simnation/Main
safe
This commit is contained in:
parent
c7c701b4ff
commit
e06091e577
7 changed files with 752 additions and 0 deletions
8
resources/[tools]/thommie-nightvision/sv_main.lua
Normal file
8
resources/[tools]/thommie-nightvision/sv_main.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
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)
|
Loading…
Add table
Add a link
Reference in a new issue