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.
pekiya nasıl düzelticem?esx_ambulancejob'un içinde getDeath diye bir export yok.
Başka bir ambulance jobdan bakarak o exportu ekle.pekiya nasıl düzelticem?
yazdım olmadı knkexports {
'GetDeath'
}
fxmanifest'e bunu ekle
indirdiğin f3 scriptinde getDeath exportu olmayabilir onu kontrol etyazdım olmadı knk
ESX, job = nil, 'unemployed'indirdiğin f3 scriptinde getDeath exportu olmayabilir onu kontrol et
yazdım olmadı knk
function GetDeath()
if isDead then
return true
else
return false
end
knk discord versen yapsak olurmu çünkü ben gene yaptım olmadı radialmenü bozuk galiba anlamadımambulancejob/main.lua içerisinde en sona bunu yaz :
Kod:function GetDeath() if isDead then return true else return false end
Daha sonra fxmanifest dosyasini ac ve : export "GetDeath" yaz
Kanka tek yapacağın CTRL + F > GetDeathESX, job = nil, 'unemployed'
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
while ESX.GetPlayerData().job == nil do
Citizen.Wait(10)
end
ESX.PlayerData = ESX.GetPlayerData()
job = ESX.PlayerData.job.name
end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(currentjob)
job = currentjob.name
end)
AddEventHandler('esxnPlayerDeath', function(data)
isDead = true
end)
rootMenuConfig = {
{
id = "general",
displayName = "Genel",
icon = "#genel",
enableMenu = function()
local deadP = exports['esx_ambulancejob']:GetDeath()
if not IsPedInAnyVehicle(PlayerPedId(), true) and not deadP then
return true
end
end,
subMenus = {"genel:cuzdan", "genel:anims", "genel:kiyafet"}
},
{
id = "general",
displayName = "En Yakın",
icon = "#blips",
enableMenu = function()
local deadP = exports['esx_ambulancejob']:GetDeath()
if not deadP then
return true
end
end,
subMenus = {"blips:gasstations", "blips:market", "blips:bank", "blips:clotheshop", "blips:garages"}
},
{
id = "walkingstyle",
displayName = "Yürüyüş Stilleri",
icon = "#walking",
enableMenu = function()
local deadP = exports['esx_ambulancejob']:GetDeath()
if not IsPedInAnyVehicle(PlayerPedId(), true) and not deadP then
return true
end
end,
subMenus = {"walkingstyle:brave", "walkingstyle:hurry", "walkingstyle:business", "walkingstyle:tipsy", "walkingstyle:injured","walkingstyle:tough", "walkingstyle:default", "walkingstyle:hobo", "walkingstyle:money", "walkingstyle:swagger", "walkingstyle:shady", "walkingstyle:maneater", "walkingstyle:chichi", "walkingstyle:sassy", "walkingstyle:sad", "walkingstyleosh", "walkingstyle:alien" }
},
{
id = "carmenu",
displayName = "Araç",
icon = "#police-vehicle",
enableMenu = function()
local deadP = exports['esx_ambulancejob']:GetDeath()
if IsPedInAnyVehicle(PlayerPedId(), true) and not deadP then
return true
end
end,
functionName = "carmenu",
},
-- {
-- id = "stopanim",
-- displayName = "Animasyon İptali",
-- icon = "#anims",
-- enableMenu = function() local deadP = exports['esx_ambulancejob']:GetDeath() if not IsPedInAnyVehicle(PlayerPedId(), true) and not deadP then return true end end,
-- functionName = "animasyon:iptal"
-- },
{
id = "expressions",
displayName = "Ruh Hali",
icon = "#expressions",
enableMenu = function() local deadP = exports['esx_ambulancejob']:GetDeath() if not deadP then return true end end,
subMenus = { "expressions:normal", "expressions:drunk", "expressions:angry", "expressions:dumb", "expressions:electrocuted", "expressions:grumpy", "expressions:happy", "expressions:injured", "expressions:joyful", "expressions:mouthbreather", "expressionsneeye", "expressions:shocked", "expressions:sleeping", "expressions:smug", "expressions:speculative", "expressions:stressed", "expressions:sulking", "expressions:weird", "expressions:weird2"}
},
{
id = "police-action",
displayName = "Polis Eylemleri",
icon = "#police-action",
enableMenu = function()
local deadP = exports['esx_ambulancejob']:GetDeath()
if job == "police" and not deadP then
return true
end
end,
subMenus = {"police:hardcuff", "police:softcuff", "police:uncuff", "police:search", "police:escort", "policeutinvehicle", "police:takefromvehicle", "police:impound", "police:checkBill", "police:billing", "police:communityservice", "police:jailaga", "police:checklicenses", "police:gsr", "police:checkAccount"}
},
{
id = "sheriff-action",
displayName = "Şerif Eylemleri",
icon = "#police-action",
enableMenu = function()
if job == "sheriff" then
return true
end
end,
subMenus = {"sheriff:hardcuff", "sheriff:softcuff", "sheriff:uncuff", "sheriff:search", "sheriff:escort", "sheriffutinvehicle", "sheriff:takefromvehicle", "sheriff:impound", "sheriff:checkBill", "sheriff:billing", "sheriff:checklicenses", "sheriff:gsr", "sheriff:checkAccount", "sheriff:communityservice"}
},
{
id = "cardealer",
displayName = "Galerici Eylemleri",
icon = "#police-vehicle",
enableMenu = function()
local deadP = exports['esx_ambulancejob']:GetDeath()
if (job == "cardealer" or job == "cardealer2") and (not deadP) then
return true
end
end,
subMenus = {"cardealer:bill", "cardealer:giveKey"}
},
{
id = "medic",
displayName = "EMS",
icon = "#medic",
enableMenu = function()
local deadP = exports['esx_ambulancejob']:GetDeath()
if job == "ambulance" and not deadP then
return true
end
end,
subMenus = {"medic:revive", "medic:heal", "medic:bigheal", "medicutinvehicle", "medic:takeoutvehicle", "medic:bill"}
}
}
newSubMenus = {
-- walking styles
['walkingstyle:brave'] = {
title = "Cesur",
icon = "#animation-brave",
functionName = "AnimSet:Brave"
},
['walkingstyle:hurry'] = {
title = "Acele",
icon = "#animation-hurry",
functionName = "AnimSet:Hurry"
},
['walkingstyle:business'] = {
title = "İş",
icon = "#animation-business",
functionName = "AnimSet:Business"
},
['walkingstyle:tipsy'] = {
title = "Alkollü",
icon = "#animation-tipsy",
functionName = "AnimSet:Tipsy"
},
['walkingstyle:injured'] = {
title = "Yaralı",
icon = "#animation-injured",
functionName = "AnimSet:Injured"
},
['walkingstyle:tough'] = {
title = "Zorlu",
icon = "#animation-tough",
functionName = "AnimSet:ToughGuy"
},
['walkingstyle:sassy'] = {
title = "Şımarık",
icon = "#animation-sassy",
functionName = "AnimSet:Sassy"
},
['walkingstyle:sad'] = {
title = "Üzgün",
icon = "#animation-sad",
functionName = "AnimSet:Sad"
},
['walkingstyleosh'] = {
title = "Lüks",
icon = "#animation-posh",
functionName = "AnimSetosh"
},
['walkingstyle:alien'] = {
title = "Yabancı",
icon = "#animation-alien",
functionName = "AnimSet:Alien"
},
['walkingstyle:nonchalant'] = {
title = "Soğukkanlı",
icon = "#animation-nonchalant",
functionName = "AnimSet:NonChalant"
},
['walkingstyle:hobo'] = {
title = "Serseri",
icon = "#animation-hobo",
functionName = "AnimSet:Hobo"
},
['walkingstyle:money'] = {
title = "Zengin",
icon = "#animation-money",
functionName = "AnimSet:Money"
},
['walkingstyle:swagger'] = {
title = "Çalımlı",
icon = "#animation-swagger",
functionName = "AnimSet:Swagger"
},
['walkingstyle:shady'] = {
title = "Gizemli",
icon = "#animation-shady",
functionName = "AnimSet:Shady"
},
['walkingstyle:maneater'] = {
title = "Baştan Çıkaran",
icon = "#animation-maneater",
functionName = "AnimSet:ManEater"
},
['walkingstyle:chichi'] = {
title = "ChiChi",
icon = "#animation-chichi",
functionName = "AnimSet:ChiChi"
},
['walkingstyle:default'] = {
title = "Normal",
icon = "#animation-default",
functionName = "AnimSet:default"
},
-- expressions
["expressions:angry"] = {
title="Sinirli",
icon="#expressions-angry",
functionName = "expressions",
functionParameters = { "mood_angry_1" }
},
["expressions:drunk"] = {
title="Sarhoş",
icon="#expressions-drunk",
functionName = "expressions",
functionParameters = { "mood_drunk_1" }
},
["expressions:dumb"] = {
title="Aptal",
icon="#expressions-dumb",
functionName = "expressions",
functionParameters = { "pose_injured_1" }
},
["expressions:electrocuted"] = {
title="Şok",
icon="#expressions-electrocuted",
functionName = "expressions",
functionParameters = { "electrocuted_1" }
},
["expressions:grumpy"] = {
title="Huysuz",
icon="#expressions-grumpy",
functionName = "expressions",
functionParameters = { "mood_drivefast_1" }
},
["expressions:happy"] = {
title="Mutlu",
icon="#expressions-happy",
functionName = "expressions",
functionParameters = { "mood_happy_1" }
},
["expressions:injured"] = {
title="Yaralı",
icon="#expressions-injured",
functionName = "expressions",
functionParameters = { "mood_injured_1" }
},
["expressions:joyful"] = {
title="Neşeli",
icon="#expressions-joyful",
functionName = "expressions",
functionParameters = { "mood_dancing_low_1" }
},
["expressions:mouthbreather"] = {
title="Ağzı Açık",
icon="#expressions-mouthbreather",
functionName = "expressions",
functionParameters = { "smoking_hold_1" }
},
["expressions:normal"] = {
title="Normal",
icon="#expressions-normal",
functionName = "expressions:clear"
},
["expressionsneeye"] = {
title="Tek Göz",
icon="#expressions-oneeye",
functionName = "expressions",
functionParameters = { "pose_aiming_1" }
},
["expressions:shocked"] = {
title="Şok Olmuş",
icon="#expressions-shocked",
functionName = "expressions",
functionParameters = { "shocked_1" }
},
["expressions:sleeping"] = {
title="Uykulu",
icon="#expressions-sleeping",
functionName = "expressions",
functionParameters = { "dead_1" }
},
["expressions:smug"] = {
title="Kibirli",
icon="#expressions-smug",
functionName = "expressions",
functionParameters = { "mood_smug_1" }
},
["expressions:speculative"] = {
title="Düşündürücü",
icon="#expressions-speculative",
functionName = "expressions",
functionParameters = { "mood_aiming_1" }
},
["expressions:stressed"] = {
title="Stresli",
icon="#expressions-stressed",
functionName = "expressions",
functionParameters = { "mood_stressed_1" }
},
["expressions:sulking"] = {
title="Somurtgan",
icon="#expressions-sulking",
functionName = "expressions",
functionParameters = { "mood_sulk_1" },
},
["expressions:weird"] = {
title="Tuhaf",
icon="#expressions-weird",
functionName = "expressions",
functionParameters = { "effort_2" }
},
["expressions:weird2"] = {
title="Tuhaf 2",
icon="#expressions-weird2",
functionName = "expressions",
functionParameters = { "effort_3" }
},
--police
['police:hardcuff'] = {
title = "Sert Kelepçe",
icon = "#cuffs-cuff",
functionName = "police:hardcuff"
},
['police:softcuff'] = {
title = "Hafif Kelepçe",
icon = "#cuffs-cuff",
functionName = "police:softcuff"
},
['police:uncuff'] = {
title = "Kelepçeyi Çöz",
icon = "#cuffs-uncuff",
functionName = "police:uncuff"
},
-- ['police:removemask'] = {
-- title = "Maske Çıkar",
-- icon = "#cuffs-remove-mask",
-- functionName = "police:removeMask1"
-- },
['police:search'] = {
title = "Kişiyi Ara",
icon = "#cuffs-check-inventory",
functionName = "police:searchInv"
},
['police:escort'] = {
title = "Taşı",
icon = "#general-escort",
functionName = "police:escort"
},
['policeutinvehicle'] = {
title = "Araca Bindir",
icon = "#general-put-in-veh",
functionName = "policeutinvehicle"
},
['police:takefromvehicle'] = {
title = "Araçtan İndir",
icon = "#general-unseat-nearest",
functionName = "police:takefromvehicle"
},
['police:impound'] = {
title = "Aracı Bağla",
icon = "#police-vehicle",
functionName = "police:impound"
},
['police:checkBill'] = {
title = "Fatura Kontrolü",
icon = "#check-bills",
functionName = "police:checkBill"
},
['police:billing'] = {
title = "Fatura Kes",
icon = "#fine-amount",
functionName = "police:billing"
},
['police:checklicenses'] = {
title = "Lisanslar",
icon = "#police-check-licenses",
functionName = "police:checkLicenses2"
},
['police:gsr'] = {
title = "GSR Test",
icon = "#police-action-gsr",
functionName = "police:checkGSR"
},
['police:checkAccount'] = {
title = "Mali Kontrol",
icon = "#mdt-fizz",
functionName = "police:checkAccount"
},
['police:communityservice'] = {
title = "Kamu Hizmeti",
icon = "#broom-fizz",
functionName = "police:communityservice"
},
['police:jailaga'] = {
title = "Hapis Cezası",
icon = "#jail-fizz",
functionName = "emr:execute",
functionParameters = {"hapismenü"}
},
--ems
['medic:revive'] = {
title = "İlkyardım",
icon = "#medic-revive",
functionName = "medic:emsRevive"
},
['medic:heal'] = {
title = "Hafif Müdahale",
icon = "#medic-heal",
functionName = "medic:emssmallheal"
},
['medic:bigheal'] = {
title = "Ciddi Müdahale",
icon = "#ciddimud",
functionName = "medic:emsbigheal"
},
['medicutinvehicle'] = {
title = "Araca Koy",
icon = "#general-put-in-veh",
functionName = "medic:emsputinveh"
},
['medic:takeoutvehicle'] = {
title = "Araçtan İndir",
icon = "#general-unseat-nearest",
functionName = "medic:emstakeoutvehicle"
},
['medic:bill'] = {
title = "Fatura Kes",
icon = "#fine-amount",
functionName = "medic:bill"
},
-- Serif
['sheriff:hardcuff'] = {
title = "Sert Kelepçe",
icon = "#cuffs-cuff",
functionName = "sheriff:hardcuff"
},
['sheriff:softcuff'] = {
title = "Hafif Kelepçe",
icon = "#cuffs-cuff",
functionName = "sheriff:softcuff"
},
['sheriff:uncuff'] = {
title = "Kelepçeyi Çöz",
icon = "#cuffs-uncuff",
functionName = "sheriff:uncuff"
},
-- ['sheriff:removemask'] = {
-- title = "Maske Çıkar",
-- icon = "#cuffs-remove-mask",
-- functionName = "sheriff:removeMask1"
-- },
['sheriff:search'] = {
title = "Kişiyi Ara",
icon = "#cuffs-check-inventory",
functionName = "sheriff:searchInv"
},
['sheriff:escort'] = {
title = "Taşı",
icon = "#general-escort",
functionName = "sheriff:escort"
},
['sheriffutinvehicle'] = {
title = "Araca Bindir",
icon = "#general-put-in-veh",
functionName = "sheriffutinveh"
},
['sheriff:takefromvehicle'] = {
title = "Araçtan İndir",
icon = "#general-unseat-nearest",
functionName = "sheriff:takefromvehicle"
},
['sheriff:impound'] = {
title = "Aracı Bağla",
icon = "#police-vehicle",
functionName = "sheriff:impound"
},
['sheriff:checkBill'] = {
title = "Fatura Kontrolü",
icon = "#check-bills",
functionName = "sheriff:checkBill"
},
['sheriff:billing'] = {
title = "Fatura Kes",
icon = "#fine-amount",
functionName = "sheriff:billing"
},
['sheriff:checklicenses'] = {
title = "Lisanslar",
icon = "#police-check-licenses",
functionName = "sheriff:checkLicenses2"
},
['sheriff:gsr'] = {
title = "GSR Test",
icon = "#police-action-gsr",
functionName = "sheriff:checkGSR"
},
['sheriff:checkAccount'] = {
title = "Mali Kontrol",
icon = "#mdt-fizz",
functionName = "sheriff:checkAccount"
},
['sheriff:communityservice'] = {
title = "Kamu Hizmeti",
icon = "#broom-fizz",
functionName = "sheriff:communityservice"
},
--cardealer
['cardealer:bill'] = {
title = "Fatura Kes",
icon = "#fine-amount",
functionName = "cardealer:billing"
},
['cardealer:giveKey'] = {
title = "Aracı Devret",
icon = "#police-vehicle",
functionName = "esx_givecarkeys:keys"
},
--other
['blips:market'] = {
title = "Market",
icon = "#blips-market",
functionName = "edz:market"
},
['blips:gasstations'] = {
title = "Benzin",
icon = "#blips-gasstations",
functionName = "edz:togglegas"
},
['blips:bank'] = {
title = "Banka",
icon = "#blips-bank",
functionName = "edz:bankblip"
},
['blips:clotheshop'] = {
title = "Kıyafetçi",
icon = "#blips-clothe",
functionName = "edz:toggleclothes"
},
['blips:garages'] = {
title = "Garaj",
icon = "#blips-garages",
functionName = "edz:togglegarage"
},
--
['genel:anims'] = {
title = "Animasyon",
icon = "#anims",
functionName = "dp:RecieveMenu"
},
['genel:hud'] = {
title = "Hud Menü",
icon = "#hudmenu",
functionName = "emr:execute",
functionParameters = {"hud"}
},
['genel:ustara'] = {
title = "Üst Ara",
icon = "#ustara",
functionName = "emr:execute",
functionParameters = {"soy"}
},
-- ['genellusoy'] = {
-- title = "Ölü Soy",
-- icon = "#ustara",
-- functionName = "emr:execute",
-- functionParameters = {"ölüsoy"}
-- },
['genel:cuzdan'] = {
title = "Cüzdan",
icon = "#cuzdan",
functionName = "nw:wallet:client"
},
['genel:kiyafet'] = {
title = "Kıyafet",
icon = "#tshirt",
functionName = "kiyafet:menu"
},
}
RegisterNetEvent('carmenu')
AddEventHandler('carmenu', function()
ExecuteCommand('arac')
end)
RegisterNetEvent('kiyafet:menu')
AddEventHandler('kiyafet:menu', function()
ExecuteCommand('km')
end)
RegisterNetEvent('animasyon:iptal')
AddEventHandler('animasyon:iptal', function()
ClearPedTasks(PlayerPedId())
TriggerEvent('fishing:break')
end)
bi bakarmısın knk zahmet olmazsa
Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!