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

Paylaşım Anahtar itemli Pinkcage Motel

bendede aynı sorun oyun açılır açılmaz çıkıyo nedeni nedir ?
 
DF
Merhaba arkadaşlar, script yazmaya yeni başladım ve hala öğreniyorum. Koda bakarken bunu aklınızda bulundurun.
Yöntemlerim yanlış olabilir, bu yüzden bana nerede yanlış yaptığımı ve bu sorunları nasıl düzeltebileceğimi söylemekten çekinmeyin.
Kodu dilediğiniz gibi düzenleyebilirsiniz. Başka bir doorlock kullanırsanız, script çalışmaz.
Ayrıca vermiş olduğum nui_doorlock üzerinde oynamalar yaptım, çalışmaz.
Resmon değerlerine bakamıyorum, denediğimde "Access denied for command resmon." veriyor. Lütfen değerlerin nasıl olduğunu bana bildirin.
Kira ücreti gibi henüz uygulanmayan kısımlar var. Yakında bunları ekleyeceğim. Sadece stabil olup olmadığından emin olmak ve desteğinizi, görüşlerinizi almak istedim.
Kullandığım temel:
Anahtarlar.sql'yi kendi item tablonuza göre değiştirin.
Umarım beğenirsin.









Ekli dosyayı görüntüle 51966
Bende Sorun Var Tek 1 Anahtarla Bütün Motel Kapılarını Kapatıp Acabiliyorum Buda Sıkıntı
 
DF
Bende Sorun Var Tek 1 Anahtarla Bütün Motel Kapılarını Kapatıp Acabiliyorum Buda Sıkıntı
Eğer süperadmin yetkiniz varsa bütün kapıları açabiliyorsunuz. Bu nui_doorlock içersinde olan birşey. Onun dışında databasi doğru kurduğunuzdan emin olun lütfen.
 
DF
Ve bu arada eğer süperadmin yetkiniz varsa bütün kapıları açabiliyorsunuz. Bu nui_doorlock içersinde olan birşey. Menünün açılması sorununu yarın detaylı bir şekilde araştırıcam. Scripti denediğiniz için teşekkür ederim.
Bende Resimler Gözükmüyor Odaların Nasıl Ayarlarım gitti Hepsi
 
DF
menuyu nasıl fixlicez bilen var mı ?
bendede aynı sorun oyun açılır açılmaz çıkıyo nedeni nedir ?

vcd_motel/client.lua yı bununla değiştirirseniz sorun çözülecektir. Geri dönüşleriniz için teşekkür ederim.
Kod:
ESX              = nil
local PlayerData = {}

local display = false
Citizen.CreateThread(function()
    while ESX == nil do
        TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        Citizen.Wait(0)
    end
  --setDisplay(false)
  --checkAllRooms()
end)

RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
  PlayerData = xPlayer   
end)

RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
  PlayerData.job = job
end)
local coordinations = {
  vector3(324.8776, -230.289, 54.217),
}


function DrawText3Ds(x,y,z, text)
  local onScreen,_x,_y=World3dToScreen2d(x,y,z)
  local px,py,pz=table.unpack(GetGameplayCamCoords())
 
  SetTextScale(0.35, 0.35)
  SetTextFont(4)
  SetTextProportional(1)
  SetTextColour(255, 255, 255, 215)
  SetTextEntry("STRING")
  SetTextCentre(1)
  AddTextComponentString(text)
  DrawText(_x,_y)
  local factor = (string.len(text)) / 370
  DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 41, 11, 41, 68)
end

Citizen.CreateThread(
  function()
      while true do
          Citizen.Wait(3)
          local ped = PlayerPedId()
          for i = 1, #coordinations do
          local actualcoord = coordinations[i]
          local dist = #(actualcoord - GetEntityCoords(ped))
              if dist <= 50.0 then                   
                  if dist <= 4.0 then                 
                  DrawText3Ds(actualcoord.x, actualcoord.y, actualcoord.z,"E basarak motel satin al")
                  end
                  DrawMarker(23, actualcoord.x, actualcoord.y, actualcoord.z - 0.97, 0, 0, 0, 0, 0, 0, 1.0, 1.0, 0.7, 200, 10, 10, 100, 0, 0, 0, 0, 0, 0, 0)
                  if dist <= 2.0 then
                      if IsControlJustPressed(0, 38) then
                         checkAllRooms()
                         display = true
                         setDisplay(true)
                      end
                  end
              end
          end
      end
  end)


  function setDisplay(bool)
      SetNuiFocus(bool, bool)
      SendNUIMessage({showUI = bool; })
  end

  Citizen.CreateThread(function()
    while display == false do
      setDisplay(false)
      Citizen.Wait(0)
    end
  end)

 
RegisterNUICallback("exit", function(data)
  setDisplay(false)
end)


function checkAllRooms()
  checkRoomOne()
  checkRoomTwo()
  checkRoomThree()
  checkRoomFour()
  checkRoomFive()
  checkRoomSix()
  checkRoomSeven()
  checkRoomEight()
  checkRoomNine()
  checkRoomTen()
  checkRoomEleven()
  checkRoomTwelve()
  checkRoomThirteen()
  checkRoomFourteen()
end











--Has to be done for every room
RegisterNUICallback("oda1satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda1satinal', function(data) end, data)
  setDisplay(false)
 
end)
--Has to be done for every room
function checkRoomOne()
  ESX.TriggerServerCallback('vcd_motel:oda1check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata = true
      }
    else
      SendNUIMessage{
        ownerdata = false
      }
    end
    end, data)
end
RegisterNUICallback("oda1iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda1iptal', function(data) end, data)
  setDisplay(false)
 
end)
RegisterNUICallback("oda1ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda1anahtardegistir', function(data) end, data)
  setDisplay(false)
end)












--Has to be done for every room
RegisterNUICallback("oda2satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda2satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTwo()
  ESX.TriggerServerCallback('vcd_motel:oda2check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock2 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata2 = true
      }
    else
      SendNUIMessage{
        ownerdata2 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda2iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda2iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda2ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda2anahtardegistir', function(data) end, data)
  setDisplay(false)
end)




RegisterNUICallback("oda3satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda3satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomThree()
  ESX.TriggerServerCallback('vcd_motel:oda3check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock3 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata3 = true
      }
    else
      SendNUIMessage{
        ownerdata3 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda3iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda3iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda3ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda3anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda4satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda4satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFour()
  ESX.TriggerServerCallback('vcd_motel:oda4check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock4 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata4 = true
      }
    else
      SendNUIMessage{
        ownerdata4 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda4iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda4iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda4ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda4anahtardegistir', function(data) end, data)
  setDisplay(false)
end)






RegisterNUICallback("oda5satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda5satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFive()
  ESX.TriggerServerCallback('vcd_motel:oda5check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock5 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata5 = true
      }
    else
      SendNUIMessage{
        ownerdata5 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda5iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda5iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda5ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda5anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda6satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda6satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomSix()
  ESX.TriggerServerCallback('vcd_motel:oda6check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock6 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata6 = true
      }
    else
      SendNUIMessage{
        ownerdata6 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda6iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda6iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda6ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda6anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda7satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda7satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomSeven()
  ESX.TriggerServerCallback('vcd_motel:oda7check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock7 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata7 = true
      }
    else
      SendNUIMessage{
        ownerdata7 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda7iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda7iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda7ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda7anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda8satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda8satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomEight()
  ESX.TriggerServerCallback('vcd_motel:oda8check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock8 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata8 = true
      }
    else
      SendNUIMessage{
        ownerdata8 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda8iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda8iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda8ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda8anahtardegistir', function(data) end, data)
  setDisplay(false)
end)








RegisterNUICallback("oda9satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda9satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomNine()
  ESX.TriggerServerCallback('vcd_motel:oda9check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock9 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata9 = true
      }
    else
      SendNUIMessage{
        ownerdata9 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda9iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda9iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda9ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda9anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda10satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda10satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTen()
  ESX.TriggerServerCallback('vcd_motel:oda10check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock10 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata10 = true
      }
    else
      SendNUIMessage{
        ownerdata10 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda10iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda10iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda10ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda10anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda11satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda11satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomEleven()
  ESX.TriggerServerCallback('vcd_motel:oda11check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock11 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata11 = true
      }
    else
      SendNUIMessage{
        ownerdata11 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda11iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda11iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda11ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda11anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda12satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda12satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTwelve()
  ESX.TriggerServerCallback('vcd_motel:oda12check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock12 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata12 = true
      }
    else
      SendNUIMessage{
        ownerdata12 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda12iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda12iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda12ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda12anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda13satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda13satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomThirteen()
  ESX.TriggerServerCallback('vcd_motel:oda13check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock13 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata13 = true
      }
    else
      SendNUIMessage{
        ownerdata13 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda13iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda13iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda13ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda13anahtardegistir', function(data) end, data)
  setDisplay(false)
end)




RegisterNUICallback("oda14satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda14satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFourteen()
  ESX.TriggerServerCallback('vcd_motel:oda14check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock14 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata14 = true
      }
    else
      SendNUIMessage{
        ownerdata14 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda14iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda14iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda14ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda14anahtardegistir', function(data) end, data)
  setDisplay(false)
end)
 
DF
çok teşekkür ederim anahtar fixlendi fakat girer girmez menu açılıyor hala
vcd_motel/client.lua yı bununla değiştirirseniz sorun çözülecektir. Teşekkür ederim.
Kod:
ESX              = nil
local PlayerData = {}

local display = false
Citizen.CreateThread(function()
    while ESX == nil do
        TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        Citizen.Wait(0)
    end
  --setDisplay(false)
  --checkAllRooms()
end)

RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
  PlayerData = xPlayer  
end)

RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
  PlayerData.job = job
end)
local coordinations = {
  vector3(324.8776, -230.289, 54.217),
}


function DrawText3Ds(x,y,z, text)
  local onScreen,_x,_y=World3dToScreen2d(x,y,z)
  local px,py,pz=table.unpack(GetGameplayCamCoords())

  SetTextScale(0.35, 0.35)
  SetTextFont(4)
  SetTextProportional(1)
  SetTextColour(255, 255, 255, 215)
  SetTextEntry("STRING")
  SetTextCentre(1)
  AddTextComponentString(text)
  DrawText(_x,_y)
  local factor = (string.len(text)) / 370
  DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 41, 11, 41, 68)
end

Citizen.CreateThread(
  function()
      while true do
          Citizen.Wait(3)
          local ped = PlayerPedId()
          for i = 1, #coordinations do
          local actualcoord = coordinations[i]
          local dist = #(actualcoord - GetEntityCoords(ped))
              if dist <= 50.0 then                  
                  if dist <= 4.0 then                
                  DrawText3Ds(actualcoord.x, actualcoord.y, actualcoord.z,"E basarak motel satin al")
                  end
                  DrawMarker(23, actualcoord.x, actualcoord.y, actualcoord.z - 0.97, 0, 0, 0, 0, 0, 0, 1.0, 1.0, 0.7, 200, 10, 10, 100, 0, 0, 0, 0, 0, 0, 0)
                  if dist <= 2.0 then
                      if IsControlJustPressed(0, 38) then
                         checkAllRooms()
                         display = true
                         setDisplay(true)
                      end
                  end
              end
          end
      end
  end)


  function setDisplay(bool)
      SetNuiFocus(bool, bool)
      SendNUIMessage({showUI = bool; })
  end

  Citizen.CreateThread(function()
    while display == false do
      setDisplay(false)
      Citizen.Wait(0)
    end
  end)


RegisterNUICallback("exit", function(data)
  setDisplay(false)
end)


function checkAllRooms()
  checkRoomOne()
  checkRoomTwo()
  checkRoomThree()
  checkRoomFour()
  checkRoomFive()
  checkRoomSix()
  checkRoomSeven()
  checkRoomEight()
  checkRoomNine()
  checkRoomTen()
  checkRoomEleven()
  checkRoomTwelve()
  checkRoomThirteen()
  checkRoomFourteen()
end











--Has to be done for every room
RegisterNUICallback("oda1satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda1satinal', function(data) end, data)
  setDisplay(false)

end)
--Has to be done for every room
function checkRoomOne()
  ESX.TriggerServerCallback('vcd_motel:oda1check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata = true
      }
    else
      SendNUIMessage{
        ownerdata = false
      }
    end
    end, data)
end
RegisterNUICallback("oda1iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda1iptal', function(data) end, data)
  setDisplay(false)

end)
RegisterNUICallback("oda1ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda1anahtardegistir', function(data) end, data)
  setDisplay(false)
end)












--Has to be done for every room
RegisterNUICallback("oda2satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda2satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTwo()
  ESX.TriggerServerCallback('vcd_motel:oda2check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock2 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata2 = true
      }
    else
      SendNUIMessage{
        ownerdata2 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda2iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda2iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda2ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda2anahtardegistir', function(data) end, data)
  setDisplay(false)
end)




RegisterNUICallback("oda3satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda3satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomThree()
  ESX.TriggerServerCallback('vcd_motel:oda3check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock3 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata3 = true
      }
    else
      SendNUIMessage{
        ownerdata3 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda3iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda3iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda3ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda3anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda4satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda4satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFour()
  ESX.TriggerServerCallback('vcd_motel:oda4check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock4 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata4 = true
      }
    else
      SendNUIMessage{
        ownerdata4 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda4iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda4iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda4ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda4anahtardegistir', function(data) end, data)
  setDisplay(false)
end)






RegisterNUICallback("oda5satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda5satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFive()
  ESX.TriggerServerCallback('vcd_motel:oda5check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock5 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata5 = true
      }
    else
      SendNUIMessage{
        ownerdata5 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda5iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda5iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda5ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda5anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda6satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda6satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomSix()
  ESX.TriggerServerCallback('vcd_motel:oda6check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock6 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata6 = true
      }
    else
      SendNUIMessage{
        ownerdata6 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda6iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda6iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda6ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda6anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda7satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda7satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomSeven()
  ESX.TriggerServerCallback('vcd_motel:oda7check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock7 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata7 = true
      }
    else
      SendNUIMessage{
        ownerdata7 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda7iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda7iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda7ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda7anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda8satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda8satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomEight()
  ESX.TriggerServerCallback('vcd_motel:oda8check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock8 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata8 = true
      }
    else
      SendNUIMessage{
        ownerdata8 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda8iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda8iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda8ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda8anahtardegistir', function(data) end, data)
  setDisplay(false)
end)








RegisterNUICallback("oda9satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda9satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomNine()
  ESX.TriggerServerCallback('vcd_motel:oda9check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock9 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata9 = true
      }
    else
      SendNUIMessage{
        ownerdata9 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda9iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda9iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda9ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda9anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda10satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda10satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTen()
  ESX.TriggerServerCallback('vcd_motel:oda10check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock10 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata10 = true
      }
    else
      SendNUIMessage{
        ownerdata10 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda10iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda10iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda10ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda10anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda11satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda11satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomEleven()
  ESX.TriggerServerCallback('vcd_motel:oda11check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock11 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata11 = true
      }
    else
      SendNUIMessage{
        ownerdata11 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda11iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda11iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda11ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda11anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda12satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda12satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTwelve()
  ESX.TriggerServerCallback('vcd_motel:oda12check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock12 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata12 = true
      }
    else
      SendNUIMessage{
        ownerdata12 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda12iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda12iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda12ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda12anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda13satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda13satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomThirteen()
  ESX.TriggerServerCallback('vcd_motel:oda13check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock13 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata13 = true
      }
    else
      SendNUIMessage{
        ownerdata13 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda13iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda13iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda13ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda13anahtardegistir', function(data) end, data)
  setDisplay(false)
end)




RegisterNUICallback("oda14satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda14satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFourteen()
  ESX.TriggerServerCallback('vcd_motel:oda14check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock14 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata14 = true
      }
    else
      SendNUIMessage{
        ownerdata14 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda14iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda14iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda14ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda14anahtardegistir', function(data) end, data)
  setDisplay(false)
end)
 
DF
vcd_motel/client.lua yı bununla değiştirirseniz sorun çözülecektir. Teşekkür ederim.
Kod:
ESX              = nil
local PlayerData = {}

local display = false
Citizen.CreateThread(function()
    while ESX == nil do
        TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
        Citizen.Wait(0)
    end
  --setDisplay(false)
  --checkAllRooms()
end)

RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
  PlayerData = xPlayer 
end)

RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
  PlayerData.job = job
end)
local coordinations = {
  vector3(324.8776, -230.289, 54.217),
}


function DrawText3Ds(x,y,z, text)
  local onScreen,_x,_y=World3dToScreen2d(x,y,z)
  local px,py,pz=table.unpack(GetGameplayCamCoords())

  SetTextScale(0.35, 0.35)
  SetTextFont(4)
  SetTextProportional(1)
  SetTextColour(255, 255, 255, 215)
  SetTextEntry("STRING")
  SetTextCentre(1)
  AddTextComponentString(text)
  DrawText(_x,_y)
  local factor = (string.len(text)) / 370
  DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 41, 11, 41, 68)
end

Citizen.CreateThread(
  function()
      while true do
          Citizen.Wait(3)
          local ped = PlayerPedId()
          for i = 1, #coordinations do
          local actualcoord = coordinations[i]
          local dist = #(actualcoord - GetEntityCoords(ped))
              if dist <= 50.0 then                 
                  if dist <= 4.0 then               
                  DrawText3Ds(actualcoord.x, actualcoord.y, actualcoord.z,"E basarak motel satin al")
                  end
                  DrawMarker(23, actualcoord.x, actualcoord.y, actualcoord.z - 0.97, 0, 0, 0, 0, 0, 0, 1.0, 1.0, 0.7, 200, 10, 10, 100, 0, 0, 0, 0, 0, 0, 0)
                  if dist <= 2.0 then
                      if IsControlJustPressed(0, 38) then
                         checkAllRooms()
                         display = true
                         setDisplay(true)
                      end
                  end
              end
          end
      end
  end)


  function setDisplay(bool)
      SetNuiFocus(bool, bool)
      SendNUIMessage({showUI = bool; })
  end

  Citizen.CreateThread(function()
    while display == false do
      setDisplay(false)
      Citizen.Wait(0)
    end
  end)


RegisterNUICallback("exit", function(data)
  setDisplay(false)
end)


function checkAllRooms()
  checkRoomOne()
  checkRoomTwo()
  checkRoomThree()
  checkRoomFour()
  checkRoomFive()
  checkRoomSix()
  checkRoomSeven()
  checkRoomEight()
  checkRoomNine()
  checkRoomTen()
  checkRoomEleven()
  checkRoomTwelve()
  checkRoomThirteen()
  checkRoomFourteen()
end











--Has to be done for every room
RegisterNUICallback("oda1satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda1satinal', function(data) end, data)
  setDisplay(false)

end)
--Has to be done for every room
function checkRoomOne()
  ESX.TriggerServerCallback('vcd_motel:oda1check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata = true
      }
    else
      SendNUIMessage{
        ownerdata = false
      }
    end
    end, data)
end
RegisterNUICallback("oda1iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda1iptal', function(data) end, data)
  setDisplay(false)

end)
RegisterNUICallback("oda1ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda1anahtardegistir', function(data) end, data)
  setDisplay(false)
end)












--Has to be done for every room
RegisterNUICallback("oda2satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda2satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTwo()
  ESX.TriggerServerCallback('vcd_motel:oda2check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock2 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata2 = true
      }
    else
      SendNUIMessage{
        ownerdata2 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda2iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda2iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda2ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda2anahtardegistir', function(data) end, data)
  setDisplay(false)
end)




RegisterNUICallback("oda3satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda3satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomThree()
  ESX.TriggerServerCallback('vcd_motel:oda3check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock3 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata3 = true
      }
    else
      SendNUIMessage{
        ownerdata3 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda3iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda3iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda3ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda3anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda4satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda4satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFour()
  ESX.TriggerServerCallback('vcd_motel:oda4check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock4 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata4 = true
      }
    else
      SendNUIMessage{
        ownerdata4 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda4iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda4iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda4ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda4anahtardegistir', function(data) end, data)
  setDisplay(false)
end)






RegisterNUICallback("oda5satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda5satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFive()
  ESX.TriggerServerCallback('vcd_motel:oda5check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock5 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata5 = true
      }
    else
      SendNUIMessage{
        ownerdata5 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda5iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda5iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda5ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda5anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda6satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda6satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomSix()
  ESX.TriggerServerCallback('vcd_motel:oda6check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock6 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata6 = true
      }
    else
      SendNUIMessage{
        ownerdata6 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda6iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda6iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda6ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda6anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda7satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda7satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomSeven()
  ESX.TriggerServerCallback('vcd_motel:oda7check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock7 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata7 = true
      }
    else
      SendNUIMessage{
        ownerdata7 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda7iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda7iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda7ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda7anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda8satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda8satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomEight()
  ESX.TriggerServerCallback('vcd_motel:oda8check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock8 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata8 = true
      }
    else
      SendNUIMessage{
        ownerdata8 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda8iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda8iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda8ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda8anahtardegistir', function(data) end, data)
  setDisplay(false)
end)








RegisterNUICallback("oda9satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda9satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomNine()
  ESX.TriggerServerCallback('vcd_motel:oda9check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock9 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata9 = true
      }
    else
      SendNUIMessage{
        ownerdata9 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda9iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda9iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda9ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda9anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda10satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda10satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTen()
  ESX.TriggerServerCallback('vcd_motel:oda10check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock10 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata10 = true
      }
    else
      SendNUIMessage{
        ownerdata10 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda10iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda10iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda10ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda10anahtardegistir', function(data) end, data)
  setDisplay(false)
end)





RegisterNUICallback("oda11satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda11satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomEleven()
  ESX.TriggerServerCallback('vcd_motel:oda11check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock11 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata11 = true
      }
    else
      SendNUIMessage{
        ownerdata11 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda11iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda11iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda11ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda11anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda12satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda12satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomTwelve()
  ESX.TriggerServerCallback('vcd_motel:oda12check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock12 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata12 = true
      }
    else
      SendNUIMessage{
        ownerdata12 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda12iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda12iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda12ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda12anahtardegistir', function(data) end, data)
  setDisplay(false)
end)



RegisterNUICallback("oda13satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda13satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomThirteen()
  ESX.TriggerServerCallback('vcd_motel:oda13check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock13 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata13 = true
      }
    else
      SendNUIMessage{
        ownerdata13 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda13iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda13iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda13ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda13anahtardegistir', function(data) end, data)
  setDisplay(false)
end)




RegisterNUICallback("oda14satinal", function(data)
  ESX.TriggerServerCallback('vcd_motel:oda14satinal', function(data) end, data)
  setDisplay(false)
end)
--Has to be done for every room
function checkRoomFourteen()
  ESX.TriggerServerCallback('vcd_motel:oda14check', function(data, owneriddata, playerseveridname)
    print(owneriddata)
    SendNUIMessage{
      checkstock14 = data
    }
    if owneriddata == playerseveridname then
      SendNUIMessage{
        ownerdata14 = true
      }
    else
      SendNUIMessage{
        ownerdata14 = false
      }
    end
    end, data)
end
RegisterNUICallback("oda14iptalet", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda14iptal', function(data) end, data)
  setDisplay(false)
end)
RegisterNUICallback("oda14ianahtardegistir", function (data)
  ESX.TriggerServerCallback('vcd_motel:oda14anahtardegistir', function(data) end, data)
  setDisplay(false)
end)
Evet Sorun fixlendi fakat senle aynı altyapıyı kullanıyorum anahtarı aldıktan sonra envanter açılması aşırı yavaşlıyor
 
DF

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!