- Katılım
- 3 yıl 8 ay 15 gün
- Mesajlar
- 7
özel araç menüsü istediniz gibi düzenleyebilirsin sıfırdan yaptım kafanıza göre kullanın bi hatası yok hatasız çalısıyor
radial menü entegrasyon
qb-radialmenü uyumlu otamatik çıkıyor sadece qb-radialmenu client/main.lua ya
local function SetupVehicleMenu()
local VehicleMenu = {
id = 'vehicle',
title = 'Araç',
icon = 'car',
items = {}
}
local ped = PlayerPedId()
local Vehicle = GetVehiclePedIsIn(ped) ~= 0 and GetVehiclePedIsIn(ped) or getNearestVeh()
if Vehicle ~= 0 then
-- "Gelişmiş Araç Menüsü" butonu doğrudan buraya eklendi
table.insert(VehicleMenu.items, {
id = 'openfullmenu',
title = 'Gelişmiş Araç Menüsü',
icon = 'car-side',
type = 'client',
event = 'is-ozelaracmenu:client
penMenu', -- Bu event ismini daha önce belirlemiştik
shouldClose = true
})
-- "Araç Ekstraları" menüsü ekleniyor
if Config.EnableExtraMenu and Config.VehicleExtras then
table.insert(VehicleMenu.items, Config.VehicleExtras)
end
end
if #VehicleMenu.items == 0 then
if vehicleIndex then
RemoveOption(vehicleIndex)
vehicleIndex = nil
end
else
vehicleIndex = AddOption(VehicleMenu, vehicleIndex)
end
end
ekleyin veya düzeltin.
radial menü entegrasyon
qb-radialmenü uyumlu otamatik çıkıyor sadece qb-radialmenu client/main.lua ya
local function SetupVehicleMenu()
local VehicleMenu = {
id = 'vehicle',
title = 'Araç',
icon = 'car',
items = {}
}
local ped = PlayerPedId()
local Vehicle = GetVehiclePedIsIn(ped) ~= 0 and GetVehiclePedIsIn(ped) or getNearestVeh()
if Vehicle ~= 0 then
-- "Gelişmiş Araç Menüsü" butonu doğrudan buraya eklendi
table.insert(VehicleMenu.items, {
id = 'openfullmenu',
title = 'Gelişmiş Araç Menüsü',
icon = 'car-side',
type = 'client',
event = 'is-ozelaracmenu:client
shouldClose = true
})
-- "Araç Ekstraları" menüsü ekleniyor
if Config.EnableExtraMenu and Config.VehicleExtras then
table.insert(VehicleMenu.items, Config.VehicleExtras)
end
end
if #VehicleMenu.items == 0 then
if vehicleIndex then
RemoveOption(vehicleIndex)
vehicleIndex = nil
end
else
vehicleIndex = AddOption(VehicleMenu, vehicleIndex)
end
end
ekleyin veya düzeltin.

Linkleri,görmek için
Giriş yap veya üye ol.
