-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.lua
More file actions
41 lines (37 loc) · 2.1 KB
/
Copy pathserver.lua
File metadata and controls
41 lines (37 loc) · 2.1 KB
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
-- Creditos: @BADTRIP#0611
-----------------------------------------------------------------------------------------------------------------------------------------
-- importa os Utils do VRP
-----------------------------------------------------------------------------------------------------------------------------------------
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
-----------------------------------------------------------------------------------------------------------------------------------------
-- importa os Tunneis e Proxys
-----------------------------------------------------------------------------------------------------------------------------------------
IDDclient = Tunnel.getInterface("vrp_admin_ids")
vRPclient = Tunnel.getInterface("vRP")
vRPidd = {}
Tunnel.bindInterface("vrp_admin_ids",vRPidd)
Proxy.addInterface("vrp_admin_ids",vRPidd)
vRP = Proxy.getInterface("vRP")
-----------------------------------------------------------------------------------------------------------------------------------------
-- Retorna a permissao pro client
-----------------------------------------------------------------------------------------------------------------------------------------
function vRPidd.getPermissao()
local source = source
local user_id = vRP.getUserId(source)
if vRP.hasPermission(user_id,"player.noclip") then
return true
else
return false
end
end
-----------------------------------------------------------------------------------------------------------------------------------------
-- Retorna o ID pro Client
-----------------------------------------------------------------------------------------------------------------------------------------
function vRPidd.getId(sourceplayer)
local user_id = vRP.getUserId(sourceplayer)
return user_id
end
-----------------------------------------------------------------------------------------------------------------------------------------
-- Esconde os ids
-----------------------------------------------------------------------------------------------------------------------------------------