-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.lua
38 lines (30 loc) · 805 Bytes
/
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
31
32
33
34
35
36
37
38
local onNui = false
local Tunnel = module("vrp","lib/Tunnel")
local Proxy = module("vrp","lib/Proxy")
local Tools = module("vrp","lib/Tools")
vRP = Proxy.getInterface("vRP")
vSERVER = Tunnel.getInterface("blue_passport")
vRPclient = Tunnel.getInterface("vRP")
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if (IsControlJustPressed(1,344)) then
ToggleActionMenu()
end
end
end)
function ToggleActionMenu(name,status)
if name and status then
workgarage = name
pointspawn = status
end
menuEnabled = not menuEnabled
if menuEnabled then
SendNUIMessage({ action = "showPass" })
else
SendNUIMessage({ action = "hidePass" })
end
end
RegisterNUICallback("update", function(data, cb)
cb({informations = vSERVER.informations()})
end)