Help with changing payment in ESX Trucker Job


#1

so i have quite a few jobs using the layout of the truckerjob however the payments need increased, is there anyway of doing this or does it have to stay as math.random, Code i think needs changed:

function nouvelledestination()
	livraisonnombre = livraisonnombre+1
	livraisonTotalPaye = livraisonTotalPaye+destination.Paye

	if livraisonnombre >= Config.MaxDelivery then		
                MissionLivraisonStopRetourDepot()
	else

		livraisonsuite = math.random(0, 100)
		
		if livraisonsuite <= 10 then
			MissionLivraisonStopRetourDepot()
		elseif livraisonsuite <= 99 then
			MissionLivraisonSelect()
		elseif livraisonsuite <= 100 then
			if MissionRegion == 1 then
				MissionRegion = 2
			elseif MissionRegion == 2 then
				MissionRegion = 1
			end
			MissionLivraisonSelect()	
		end
	end
end

#2

math.random(number,number) it will give you a random number between those 2 values


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.