-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.lua
43 lines (35 loc) · 1.44 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
--MADE BY HAVASİZ PLEASE DO NOT SHARE IT WITHOUT MY PERMISSIONS.
RegisterNetEvent('esx_hvszparasut:startparasut')
AddEventHandler('esx_hvszparasut:startparasut', function()
local ped = PlayerPedId()
GiveWeaponToPed(ped, GetHashKey("GADGET_PARACHUTE"), true)
StartParaCheck()
end)
function StartParaCheck()
print("start")
SetPedComponentVariation(PlayerPedId(), 5, 7, 0, 1) --Paraşüt itemini kullandığınızda sırtınızda spawn olan paraşüt (İsterseniz değiştirebilirsiniz) / The model of the Parachute that spawns on your back when you use the item "Parachute" (You can change the model).
Citizen.CreateThread(function()
local ped = PlayerPedId()
while true do
local state = GetPedParachuteState(ped)
if state == 2 then
StartLandCheck()
return
end
Citizen.Wait(1)
end
end)
end
function StartLandCheck()
local ped = PlayerPedId()
Citizen.CreateThread(function()
while true do
local state = GetPedParachuteState(ped)
if state == -1 then
SetPedComponentVariation(ped, 5, 0, 0, 0) --Yere iniş gerçekleştirdikten sonra sırtınızdaki paraşütün yok olması, isterseniz yok olduktan sonra çanta v.b. spawn ettirebilirsiniz burakadi kodlari değiştirerek. / After landing, normally I made it so the parachute dissapears but you can make it so after the landing the parachute gets replaced with a "bag" or whatever.
return
end
Citizen.Wait(1)
end
end)
end