- Katılım
- 4 yıl 9 ay 18 gün
- Mesajlar
- 32
mekanikte araba yaparken modifiye ediyorum çıkınca siliniyo scriptide değiştim değişen birşey olmadı aldığım hatayı atıyorum fotoğraflara ayrıca onun bulunduğu satırıda atıyorum
Sadece o satırda bu
Kod:
if Config.IsMechanicJobOnly then
local societyAccount = nil
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_mechanic', function(account)
societyAccount = account
end)
if price < societyAccount.money then
TriggerClientEvent('esx_lscustom:installMod', _source)
TriggerClientEvent('mythic_notify:client:SendAlert', _source, { type = 'inform', text = 'Satın alındı'})
societyAccount.removeMoney(price)
else
TriggerClientEvent('esx_lscustom:cancelInstallMod', _source)
TriggerClientEvent('mythic_notify:client:SendAlert', _source, { type = 'error', text = 'Yeterince paran yok'})
end
else
Sadece o satırda bu
local societyAccount = nil
