forked from BaziForYou/Codem-Hookahh
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathserver.lua
44 lines (34 loc) · 1.68 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
--- CODEM-STORE https://discord.gg/DEzwFvtTBB
--- CODEM-STORE https://discord.gg/DEzwFvtTBB
--- CODEM-STORE https://discord.gg/DEzwFvtTBB
--- CODEM-STORE https://discord.gg/DEzwFvtTBB
RegisterServerEvent('codem-nargile:server:setAlreadyHaveHookah')
AddEventHandler('codem-nargile:server:setAlreadyHaveHookah', function(masa, toggle)
Config.Masalar[masa].alreadyHaveHookah = toggle
TriggerClientEvent('codem-nargile:client:getConfig', -1, Config.Masalar)
end)
RegisterServerEvent('codem-nargile:server:setSessionStarted')
AddEventHandler('codem-nargile:server:setSessionStarted', function(masa, toggle)
Config.Masalar[masa].sessionActive = toggle
TriggerClientEvent('codem-nargile:client:getConfig', -1, Config.Masalar)
end)
RegisterServerEvent('codem-nargile:server:syncHookahTable')
AddEventHandler('codem-nargile:server:syncHookahTable', function(nargileler)
TriggerClientEvent('codem-nargile:client:setHookahs', -1, nargileler)
end)
RegisterServerEvent("hookah_smokes")
AddEventHandler("hookah_smokes", function(entity)
TriggerClientEvent("c_hookah_smokes", -1, entity)
end)
RegisterServerEvent('codem-nargile:server:deleteMarpuc')
AddEventHandler('codem-nargile:server:deleteMarpuc', function(masa)
TriggerClientEvent('codem-nargile:client:deleteMarpuc', -1, masa)
end)
RegisterServerEvent('codem-nargile:server:deleteNargile')
AddEventHandler('codem-nargile:server:deleteNargile', function(masa)
TriggerClientEvent('codem-nargile:client:deleteNargile', -1, masa)
end)
RegisterServerEvent('codem-nargile:server:syncKoz')
AddEventHandler('codem-nargile:server:syncKoz', function(obj, amount)
TriggerClientEvent('codem-nargile:client:syncKoz', -1, obj, amount)
end)