-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.lua
More file actions
33 lines (28 loc) · 933 Bytes
/
Copy pathserver.lua
File metadata and controls
33 lines (28 loc) · 933 Bytes
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
--[[function GetZones()
local data = LoadResourceFile('clk_safezone', 'data/zones.json')
return data and json.decode(data) or {}
end
RegisterServerEvent('clk_safezone:addzone')
AddEventHandler('clk_safezone:addzone', function(data)
--table.insert(ZoneData, data)
SaveResourceFile('clk_safezone', 'data/zones.json', json.encode(ZoneData))
end)]]
--[[AddEventHandler('chatMessage', function(player, message)
if message == '/zonemenu2' then
TriggerEvent('clk_safezone:openmenu')
print('Ok')
end
end)]]
--RegisterCommand("zonemenu", function(source)
--[[if source > 0 then
print("You are not console.")
else
print("This is console!")
end]]
--TriggerClientEvent('clk_safezone:openmenu', source)
--TriggerEvent('clk_safezone:openmenu', source)
--TriggerClientEvent("testt", source)
-- TriggerEvent('testt')
----end, false)
--TriggerEvent('testt')
--print('ASG')