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

Paket Disc Entegreli Paketimi Nasıl Esx Hale Getirebilirim

  • Konbuyu başlatan RA1DER
  • Başlangıç tarihi
  • Cevaplar 6
  • Görüntüleme 758

RA1DER

wild dev
FT Kullanıcı
Katılım
3 yıl 10 ay 11 gün
Mesajlar
2,437
Web sitesi
discord.gg
Discord
ra1der2112
Herkese İyi Günler Dilerim;
Developerim ile bir paket üstünde çalışmıştık ve bitirdik.
Sonrasında paketde disc ile alakalı sorunlar çıktı ve disc`den vazgeçtim.Elimde güzel bir esx_inventoryhud var fakat paketim disc oldugu için esx_inventoryhud birkaç sorun yaratıyor Örnek:İtem olarak para kullanıldığı için iki tane para gözüküyor gibi es_extended ile alakalı birkaç error oldugu için tam yapamadım bunu yapabilecek veya yardım edecek varmıdır?
 
DF
BU KODU
self.getMoney = function()
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
return money.count
end

BU KOD İLE DEĞİŞ


self.getMoney = function()
return self.player.get('money')
end

BU KODU

self.addMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.addInventoryItem("cash",money)

local money = self.getInventoryItem('cash')

if self.player.get('money') ~= money.count then

self.player.set('money',money.count)

end

else

print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))

end

end



self.removeMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.removeInventoryItem("cash",money)

local money = self.getInventoryItem('cash')

if self.player.get('money') ~= money.count then

self.player.set('money',money.count)

end

else

print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))

end

end


BU KOD ILE

self.addMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.player.addMoney(money)

else

print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))

end

end

self.removeMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.player.removeMoney(money)

else

print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))

end

end

UMARIM SORUNUN ÇÖZÜLÜR BUNUN DIŞINDA SCRIPTLERDE OYNAMA YAPMAN GEREKEBİLİR
 
DF
BU KODU
self.getMoney = function()
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
return money.count
end

BU KOD İLE DEĞİŞ

self.getMoney = function()
return self.player.get('money')
end

BU KODU

self.addMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.addInventoryItem("cash",money)

local money = self.getInventoryItem('cash')

if self.player.get('money') ~= money.count then

self.player.set('money',money.count)

end

else

print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))

end

end



self.removeMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.removeInventoryItem("cash",money)

local money = self.getInventoryItem('cash')

if self.player.get('money') ~= money.count then

self.player.set('money',money.count)

end

else

print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))

end

end


BU KOD ILE

self.addMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.player.addMoney(money)

else

print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))

end

end

self.removeMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.player.removeMoney(money)

else

print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))

end

end

UMARIM SORUNUN ÇÖZÜLÜR BUNUN DIŞINDA SCRIPTLERDE OYNAMA YAPMAN GEREKEBİLİR
Teşekkürler
 
DF
BU KODU
self.getMoney = function()
local money = self.getInventoryItem('cash')
if self.player.get('money') ~= money.count then
self.player.set('money',money.count)
end
return money.count
end

BU KOD İLE DEĞİŞ

self.getMoney = function()
return self.player.get('money')
end

BU KODU

self.addMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.addInventoryItem("cash",money)

local money = self.getInventoryItem('cash')

if self.player.get('money') ~= money.count then

self.player.set('money',money.count)

end

else

print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))

end

end



self.removeMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.removeInventoryItem("cash",money)

local money = self.getInventoryItem('cash')

if self.player.get('money') ~= money.count then

self.player.set('money',money.count)

end

else

print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))

end

end


BU KOD ILE

self.addMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.player.addMoney(money)

else

print(('es_extended: %s attempted exploiting! (reason: player tried adding -1 cash balance)'):format(self.identifier))

end

end

self.removeMoney = function(money)

money = ESX.Math.Round(money)



if money >= 0 then

self.player.removeMoney(money)

else

print(('es_extended: %s attempted exploiting! (reason: player tried removing -1 cash balance)'):format(self.identifier))

end

end

UMARIM SORUNUN ÇÖZÜLÜR BUNUN DIŞINDA SCRIPTLERDE OYNAMA YAPMAN GEREKEBİLİR
Teşekkürler :)
 
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!