-
Notifications
You must be signed in to change notification settings - Fork 14
/
server.lua
43 lines (28 loc) · 1.1 KB
/
server.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--MADE BY DareToDoyle#3835--
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterUsableItem('adrenaline', function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.removeInventoryItem('adrenaline', 1)
TriggerClientEvent('D2D-Stims:adrenaline', source)
end)
ESX.RegisterUsableItem('meldonin', function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.removeInventoryItem('meldonin', 1)
TriggerClientEvent('D2D-Stims:meldonin', source)
end)
ESX.RegisterUsableItem('anesthetic', function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.removeInventoryItem('anesthetic', 1)
TriggerClientEvent('D2D-Stims:anesthetic', source)
end)
ESX.RegisterUsableItem('ketamine', function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.removeInventoryItem('ketamine', 1)
TriggerClientEvent('D2D-Stims:ketamine', source)
end)
--MADE BY DareToDoyle#3835--