Merhaba, Başlıkta yazdığım gibi bir araç satın alma sıkıntısı mevcut.
esx_vehicleshop'u komple kaldırarak JAM'ın vehicleshop'una geçtim normal kullanımda herhangi bir sıkıntı yok ancak. Meslek araçlarını alırken.
	
	
	
	
	
		
 (esx_ambulancejob'dan alıntı)
Bu kod blogunda bulunan esx_vehicleshop export'unda sorun yaşıyorum. Bunu nasıl çözebiliriz.
vehicleshop'ta bulunan ilgili export'u JAM'ın içine fonksiyon olarak yazsam uygun olur mu?
	
		
			
		
		
	
				
			esx_vehicleshop'u komple kaldırarak JAM'ın vehicleshop'una geçtim normal kullanımda herhangi bir sıkıntı yok ancak. Meslek araçlarını alırken.
		Kod:
	
	            if data2.current.value == 'yes' then
                local newPlate = exports['esx_vehicleshop']:GeneratePlate()
                local vehicle  = GetVehiclePedIsIn(playerPed, false)
                local props    = ESX.Game.GetVehicleProperties(vehicle)
                props.plate    = newPlate
                ESX.TriggerServerCallback('esx_ambulancejob:buyJobVehicle', function (bought)
                    if bought then
                        ESX.ShowNotification(_U('vehicleshop_bought', data.current.name, ESX.Math.GroupDigits(data.current.price)), "success")
                        isInShopMenu = false
                        ESX.UI.Menu.CloseAll()
                
                        DeleteSpawnedVehicles()
                        FreezeEntityPosition(playerPed, false)
                        SetEntityVisible(playerPed, true)
                
                        ESX.Game.Teleport(playerPed, restoreCoords)
                    else
                        ESX.ShowNotification(_U('vehicleshop_money'), "error")
                        menu2.close()
                    end
                end, props, data.current.type)
            else
	Bu kod blogunda bulunan esx_vehicleshop export'unda sorun yaşıyorum. Bunu nasıl çözebiliriz.
vehicleshop'ta bulunan ilgili export'u JAM'ın içine fonksiyon olarak yazsam uygun olur mu?
	
				



