Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.
HAYIR!MerhabaHost4Push
Sorununuz çözüme ulaştı mı ?
function GetDeath()
if isDead then
return true
elseif not isDead then
return false
end
end
exports {
'GetDeath',
}
RegisterCommand('olu, function()
local target, distance = ESX.Game.GetClosestPlayer()
if target ~= 1 and distance ~= 1 and distance <= 3.0 then
if exports["esx_ambulancejob"]:GetDeath() then
OpenDeadTargetInventory(target,distance)
else
print('Oyuncu olu degil!')
end
else
print('Yakınında kimse yok!')
end
end)
esx_ambulancejob > client.lua;
Kod:function GetDeath() if isDead then return true elseif not isDead then return false end end
esx_ambulancejob > fxmanifest.lua;
Kod:exports { 'GetDeath', }
Kodunu şununla değiştirirsen, düzelir diye düşünüyorum.
Kod:RegisterCommand('olu, function() local target, distance = ESX.Game.GetClosestPlayer() if target ~= 1 and distance ~= 1 and distance <= 3.0 then if exports["esx_ambulancejob"]:GetDeath() then OpenDeadTargetInventory(target,distance) else print('Oyuncu olu degil!') end else print('Yakınında kimse yok!') end end)
Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!