šŸ“•->[ESX] ScrapMan-Jobāš™ļø

hey people
im using the old version of the esx
everything work just fine for me
greate script arielz love ya ma bro

man idk what you want to say but its work greateā€¦
if you mean that the cheaters can add money with the scrap trigger you have anticheats for thatā€¦

ArielZ is amazing programmer soā€¦

Anti-cheats donā€™t always protect it. What i was saying is that any player with an executor can trigger both ServerEvents without any Player checks from anywhere on the map and abuse it for easy money :slight_smile: Doesnā€™t matter if heā€™s a good developer or bad, you always need to protect your triggers :smiley:

Dont know what is happening over here but let me explain for you something.
First of all i am a bit new to the coding world and also for fivem.
Still learning how to improve it by my free time so if you want to help or give me any advice you are welcome.
Second I dont use to see in codes triggers that protect of any abuseā€¦
but in the job you cant sell scrap if you dont haveā€¦ so the basic is there.
But as i said slowā€¦ i am still learning and want to share want i create so plz get itā€¦

i dont need to feel bad because of it I expect people to help and push upā€¦
dont say you are not like that.

Your resource is good but itā€™s unsafe to use because cheater can use it to get free money. Read more
here

1 Like

ok thank you, buy didnt see people that protect their resource but ok will give it a lookā€¦

Simple method, add Config.lua to fxmanifest.lua in server_scripts. Do a simple loop to get a distance between player and scrap pickup location.

RegisterNetEvent('jrp:milkGive')
AddEventHandler('jrp:milkGive', function()
	local ped = GetPlayerPed(source)
	local Player = QBCore.Functions.GetPlayer(source)
	local pos = GetEntityCoords(ped)
	for k,v in pairs(Config.Karves) do
		local kpos = vector3(v.x, v.y, v.z)
		local dist = #(pos - kpos)
		if dist < 3 then
			Player.Functions.AddItem('freshmilk', 1)
		end
	end
end)

Just a simple method to protect against Modmenu Kids. This is server-side.

ok thanks for the suggest, will sit on it later and update the script.
Thank you :slight_smile:

I got this working on es_extended 1.1 nice script man :slight_smile:

@oOvDylanvOo thank you for letting me know, soon I will update the script a bit.

script is not working

For me dont work too, esx v1 final, when im in the circle nothing appears
any help?
No errors

Hi you are not the first one to tell me this, In the In the few next days i will check the code again and will try to figure out the problem.
Will let you as soon as i can

Perfect thanks so much for your effort im sure its a very good script

Any news?

Any news? Not working on v1 final as well

Any news?

Sorry for the long time i had to finish my Studies, this week i will send an update.
sorry guys.

So so nice