-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathclient.lua
43 lines (40 loc) · 1.47 KB
/
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
39
40
41
42
43
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
local lastHealth = GetEntityHealth(PlayerPedId(), false)
Citizen.CreateThread(function()
while true do
local health = GetEntityHealth(PlayerPedId())
if not IsEntityDead(PlayerPedId()) then
if lastHealth ~= health then
if lastHealth > health then
--StartScreenEffect('DrugsTrevorClownsFight', 500, false)
ShakeGameplayCam("SMALL_EXPLOSION_SHAKE", 0.3)
SetPedMotionBlur(PlayerPedId(), true)
ClearTimecycleModifier()
SetTimecycleModifier("REDMIST_blend")
SetTimecycleModifierStrength(0.7)
SetExtraTimecycleModifier("fp_vig_red")
SetExtraTimecycleModifierStrength(1.0)
Citizen.Wait(200)
StopGameplayCamShaking(false)
SetPedMotionBlur(PlayerPedId(), false)
ClearTimecycleModifier()
ClearExtraTimecycleModifier()
end
lastHealth = health
end
end
--print(lastHealth)
Citizen.Wait(0)
end
end)