xranzei 1
xranzei
Bvural41 1
Bvural41
kralhakan2009 1
kralhakan2009
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Vahsi Uzman 1
Vahsi Uzman
Cannn6161 1
Cannn6161
B 1
berione65
sen272 1
sen272
Mt2Hizmet 1
Mt2Hizmet
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com
Kaynak ikonu

Fivem Geri Sayım Scripti 2020-03-13

indirmek için izniniz yok

[CODE title="Kullanılması gerekli"]TriggerEvent('lorraxs_progress', time-in-milsec, function(isBusy)
if not isBusy then
your-code
end
end)[/CODE]

[CODE title="Gerekli kod"]TriggerEvent('lorraxs_progress', time-in-milsec, function(isBusy)
if not isBusy then
your-code
end
end)
Example with esx_extraitems (oxygen_mask):

RegisterNetEvent('esx_extraitems:oxygen_mask')
AddEventHandler('esx_extraitems:oxygen_mask', function()
TriggerEvent('lorraxs_progress', 200000, function(isBusy)
if not isBusy then
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local boneIndex = GetPedBoneIndex(playerPed, 12844)
local boneIndex2 = GetPedBoneIndex(playerPed, 24818)

ESX.Game.SpawnObject('p_s_scuba_mask_s', {
x = coords.x,
y = coords.y,
z = coords.z - 3
}, function(object)
ESX.Game.SpawnObject('p_s_scuba_tank_s', {
x = coords.x,
y = coords.y,
z = coords.z - 3
}, function(object2)
AttachEntityToEntity(object2, playerPed, boneIndex2, -0.30, -0.22, 0.0, 0.0, 90.0, 180.0, true, true, false, true, 1, true)
AttachEntityToEntity(object, playerPed, boneIndex, 0.0, 0.0, 0.0, 0.0, 90.0, 180.0, true, true, false, true, 1, true)
SetPedDiesInWater(playerPed, false)
Citizen.Wait(200000) --Because we trigger hud with 200000ms
SetPedDiesInWater(playerPed, true)
DeleteObject(object)
DeleteObject(object2)
ClearPedSecondaryTask(playerPed)
end)
end)
end
end)
end)[/CODE]


Ekli dosyayı görüntüle 4373
Yazar
chengdu
Kaynak İndirilme
4
Görüntüleme
486
İlk yayınlama
Son Güncelleme

Ratings

0.00 yıldız(lar) 0 rating

chengdu - Kaynakları

Geri
Üst