-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathopen.lua
More file actions
30 lines (26 loc) · 856 Bytes
/
open.lua
File metadata and controls
30 lines (26 loc) · 856 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
function getPlayerGang(player)
if Config.Framework == "qb" then
return player?.PlayerData?.gang?.label
elseif Config.Framework == "esx" then
-- In caso vuoi mettere un sistema gang introducilo qui
-- return player?.gang?.label
end
end
function getPhoneNumber(player)
if Config.Framework == "qb" then
return player?.PlayerData?.charinfo?.phone
elseif Config.Framework == "esx" then
return player?.PlayerData?.phone_number
-- / player?.PlayerData?.phone / Metti il tlefono che utilizzi in caso vuoi configurarlo meglio
end
end
if not IsDuplicityVersion() then
RegisterNuiCallback("miscButton", function(data, cb)
Config.MiscButton()
SetNuiFocus(false, false)
SendNUIMessage({
action = "close"
})
cb("ok")
end)
end