ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
Öncelikle merhaba zahmetsiz bir şekilde yapmak istedim. esx_policejob/client/main.lua
Satır 609-619 arası.
unpaid_bills labeli altına yeni bir label açıp {label = "İlk Yardım", value = 'revive'}
Bu kodu ekledikten sonra unpaidbills satırına , (virgül) ekleyin
Bu işlemden sonra 654 satıra gidip onun tam altına yani şu işretli yere:
else'nin üstüne yani
Şu kodu yapıştırın:
[CODE title="Ubuntu"]if data2.current.value == 'revive' then
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
local closestPlayerPed = GetPlayerPed(closestPlayer)
local health = GetEntityHealth(closestPlayerPed)
if health == 0 then
local playerPed = GetPlayerPed(-1)
Citizen.CreateThread(function()
ESX.ShowNotification(_U('revive_inprogress'))
TaskStartScenarioInPlace(playerPed, 'CODE_HUMAN_MEDIC_TEND_TO_DEAD', 0, true)
Wait(10000)
ClearPedTasks(playerPed)
if GetEntityHealth(closestPlayerPed) == 0 then
TriggerServerEvent('esx_ambulancejob:revive', GetPlayerServerId(closestPlayer))
ESX.ShowNotification(_U('revive_complete'))
else
ESX.ShowNotification(_U('isdead'))
end
end)
end
end[/CODE]
Client ile işimiz buradan sonra bitiyor.
Şimdi ise esx_policejob/server/main.lua dosyasına gidiyoruz
2. satıra şu kodu ekliyorsunuz. (TriggerEvent'in üstüne)