-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclient.lua
30 lines (27 loc) · 1.1 KB
/
client.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
local inventory <const> = exports.ox_inventory
local player <const> = LocalPlayer.state
--RegisterCommand('creativechest', function()
-- if not Config.groups[player.group] then return print("Vous devez être admin.") end
-- if (inventory:openInventory('stash', 'creativechest')) then return end
-- TriggerServerEvent('ox:creativechest')
-- inventory:openInventory('stash', 'creativechest')
--end, false)
--RegisterCommand('trash', function()
-- if not Config.groups[player.group] then return print("Vous devez être admin.") end
-- if (inventory:openInventory('stash', 'admintrash')) then return end
-- TriggerServerEvent('ox:admintrash')
-- inventory:openInventory('stash', 'admintrash')
--end, false)
--RegisterCommand('trash', function()
-- local players = PlayerPedId()
-- if not players then
-- return print("Vous devez tre admin.")
-- end
-- if not Config.groups[players.group] then
-- return print("Vous devez tre admin.")
-- end
-- if inventory:openInventory('stash', 'admintrash') then
-- return
-- end
-- TriggerServerEvent('ox:admintrash')
--end, false)