forked from kasuganosoras/fh4map
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.lua
More file actions
executable file
·54 lines (46 loc) · 1.39 KB
/
Copy pathclient.lua
File metadata and controls
executable file
·54 lines (46 loc) · 1.39 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
42
43
44
45
46
47
48
49
50
51
52
53
54
posX = 0.01
posY = 0.0
width = 0.183
height = 0.32
Citizen.CreateThread(function()
RequestStreamedTextureDict("circlemap", false)
while not HasStreamedTextureDictLoaded("circlemap") do
Wait(100)
end
AddReplaceTexture("platform:/textures/graphics", "radarmasksm", "circlemap", "radarmasksm")
SetMinimapClipType(1)
SetMinimapComponentPosition('minimap', 'L', 'B', posX, posY, width, height)
SetMinimapComponentPosition('minimap_mask', 'L', 'B', posX, posY, width, height)
SetMinimapComponentPosition('minimap_blur', 'L', 'B', 0.012, 0.022, 0.256, 0.337)
SetBlipAlpha(GetNorthRadarBlip(), 0)
local minimap = RequestScaleformMovie("minimap")
SetRadarBigmapEnabled(true, false)
Wait(0)
SetRadarBigmapEnabled(false, false)
while true do
Wait(0)
BeginScaleformMovieMethod(minimap, "SETUP_HEALTH_ARMOUR")
ScaleformMovieMethodAddParamInt(3)
EndScaleformMovieMethod()
end
end)
local isPause = false
local uiHidden = false
Citizen.CreateThread(function()
while true do
Wait(0)
if IsBigmapActive() or IsRadarHidden() or IsPauseMenuActive() and not isPause then
if not uiHidden then
SendNUIMessage({
action = "hideui"
})
uiHidden = true
end
elseif uiHidden or IsPauseMenuActive() and isPause then
SendNUIMessage({
action = "showui"
})
uiHidden = false
end
end
end)