-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserver.lua
48 lines (32 loc) · 1.35 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
44
45
46
47
48
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
------------------------- TUTO ---------------------------
----------------------------------------------------------
----------------------------------------------------------
ESX.RegisterUsableItem('REPLACE THIS', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('sp_clothes:REPLACE THIS', source)
end)
----------------------------------------------------------
----------------------------------------------------------
----------------------------------------------------------
ESX.RegisterUsableItem('tshirt', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('sp_clothes:tshirt', source)
end)
ESX.RegisterUsableItem('jeans', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('sp_clothes:jeans', source)
end)
ESX.RegisterUsableItem('bag', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('sp_clothes:bag', source)
end)
ESX.RegisterUsableItem('shoe', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('sp_clothes:shoe', source)
end)
ESX.RegisterUsableItem('mask', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('sp_clothes:mask', source)
end)