-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsv.lua
More file actions
24 lines (21 loc) · 711 Bytes
/
sv.lua
File metadata and controls
24 lines (21 loc) · 711 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
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj)
ESX = obj
end)
RegisterNetEvent("hubercik_resolution:KickPlayer")
AddEventHandler("hubercik_resolution:KickPlayer", function()
DropPlayer(source, 'Zostałeś wyrzucony z serwera z powodu złej roździelczości, zmień ją na 16:9 lub 16:19.')
end)
ESX.RegisterServerCallback('hubercik_resolution:Permisja', function(source, cb)
es = GetPlayerIdentifiers(source)[1]
es = es:gsub("steam:", "")
local result = MySQL.Sync.fetchAll('SELECT * FROM users WHERE identifier = @identifier', {
['@identifier'] = es
})
local bypass = result[1].resbypass
if bypass == 'true' then
cb(true)
else
cb(false)
end
end)