Neler yeni

Foruma hoş geldin, Ziyaretçi

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.

Türkiye'nin İlk ve tek FiveM forum adresi

Forum adresimize hoş geldin FiveMTürk olarak amacımız siz değerli kullanıcılarımıza en aktif fikir ve paylaşım platformu sunmak bir yana en güvenilir şekilde alışveriş yapabileceğiniz bir platform sunmaktır.
DF DF
DF DF
DF DF

Soru Mesleğe Özel Market

KOGSenior

Üye
FT Kullanıcı
Katılım
1 yıl 11 ay 18 gün
Mesajlar
50
Merhaba, qb-inventory kullanıyorum. Meslekleğe özel bir market açmak istiyorum, polis için oluşturduğumda market ilk açılımdan sonra kayboluyor, aynı şekilde gunshop olarak hiçbir şekilde oluşturamadım. Yardımcı olabilir misiniz?

Paket: qbtoesx

Kod:
Citizen.CreateThread(function()
 
    while true do
        local sleep = 2000
    local ped = PlayerPedId()
    local plyCoords = GetEntityCoords(ped, false)
        local distMarket = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, 482.542, -995.41, 30.6897)
        if distMarket <= 4.0 then
            sleep = 7
            DrawMarker(2, 482.542, -995.41, 30.6897, 0, 0, 0, 0, 0, 0, 0.2, 0.2, 0.2, 0, 255, 0, 200, 0, 0, 0, 1)
            if distMarket <= 0.5 then
                DrawText3D(482.542, -995.41, 30.6897 + 0.3, 0.35, '[E] Polis Marketi')
                if IsControlJustReleased(1, 51) then
                  if ESX.PlayerData.job.name == 'police' then
                  else
                  end
                    Polis()            
                end
            end
        end
        Citizen.Wait(sleep)
    end
end)

function Polis()
    ESX.PlayerData = xPlayer
    TriggerServerEvent("inventory:server:OpenInventory", "shop", "Polis", Config.Polis)
end
 
Kod:
Citizen.CreateThread(function()
 
    while true do
        local sleep = 2000
    local ped = PlayerPedId()
    local plyCoords = GetEntityCoords(ped, false)
    local Job = ESX.PlayerData.job.name
        local distMarket = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, 482.542, -995.41, 30.6897)
        if distMarket <= 4.0 then
            sleep = 7
            DrawMarker(2, 482.542, -995.41, 30.6897, 0, 0, 0, 0, 0, 0, 0.2, 0.2, 0.2, 0, 255, 0, 200, 0, 0, 0, 1)
            if distMarket <= 0.5 and Job == 'police'  then
                DrawText3D(482.542, -995.41, 30.6897 + 0.3, 0.35, '[E] Polis Marketi')
                if IsControlJustReleased(1, 51) then
                    Polis()            
                end
            end
        end
        Citizen.Wait(sleep)
    end
end)
function Polis()
    TriggerServerEvent("inventory:server:OpenInventory", "shop", "Polis", Config.Polis)
end
 
Merhaba, qb-inventory kullanıyorum. Meslekleğe özel bir market açmak istiyorum, polis için oluşturduğumda market ilk açılımdan sonra kayboluyor, aynı şekilde gunshop olarak hiçbir şekilde oluşturamadım. Yardımcı olabilir misiniz?

Paket: qbtoesx

Kod:
Citizen.CreateThread(function()
 
    while true do
        local sleep = 2000
    local ped = PlayerPedId()
    local plyCoords = GetEntityCoords(ped, false)
        local distMarket = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, 482.542, -995.41, 30.6897)
        if distMarket <= 4.0 then
            sleep = 7
            DrawMarker(2, 482.542, -995.41, 30.6897, 0, 0, 0, 0, 0, 0, 0.2, 0.2, 0.2, 0, 255, 0, 200, 0, 0, 0, 1)
            if distMarket <= 0.5 then
                DrawText3D(482.542, -995.41, 30.6897 + 0.3, 0.35, '[E] Polis Marketi')
                if IsControlJustReleased(1, 51) then
                  if ESX.PlayerData.job.name == 'police' then
                  else
                  end
                    Polis()           
                end
            end
        end
        Citizen.Wait(sleep)
    end
end)

function Polis()
    ESX.PlayerData = xPlayer
    TriggerServerEvent("inventory:server:OpenInventory", "shop", "Polis", Config.Polis)
end
local marketOpen = false

Citizen.CreateThread(function()
while true do
local sleep = 2000
local ped = PlayerPedId()
local plyCoords = GetEntityCoords(ped, false)
local distMarket = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, 482.542, -995.41, 30.6897)

if distMarket <= 4.0 then
sleep = 7
DrawMarker(2, 482.542, -995.41, 30.6897, 0, 0, 0, 0, 0, 0, 0.2, 0.2, 0.2, 0, 255, 0, 200, 0, 0, 0, 1)
if distMarket <= 0.5 then
DrawText3D(482.542, -995.41, 30.6897 + 0.3, 0.35, '[E] Polis Marketi')
if IsControlJustReleased(1, 51) then
if ESX.PlayerData.job.name == 'police' then
if not marketOpen then

OpenPoliceMarket()
marketOpen = true
end
end
end
end
else
marketOpen = false
end
Citizen.Wait(sleep)
end
end)

function OpenPoliceMarket()
ESX.PlayerData = xPlayer
TriggerServerEvent("inventory:server:OpenInventory", "shop", "Polis", Config.Polis)
end


Dene bakalım bu kodu hata aldırsan yaz hatayı
 
Marketi açmadı.
 
Tüm kodlar maalesef işe yaramadı.
 
Dostum buraya müdahale etmeyelim discorddan ekle yardımcı olayım
 

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap

Bu konuyu görüntüleyen kullanıcılar

Tema düzenleyici

Tema özelletirmeleri

Granit arka planlar

Lütfen Javascript'i etkinleştirin!Javascript'i etkinleştirin!