[HELP] Help script check ped

Hi i need help to script, I have a hunter script, I need to do something so that 2 people don’t meat the same animal, I am trying to do something like this. But it’s not working.

ESX.RegisterServerCallback('1974_cazador:getAnimal', function(source, cb, animal)
	for k,v in pairs(animaldead) do
		if v == animal then
			cb(true)
		else
			table.insert(animaldead, animal)
			cb(false)
		end	
	end
	
	--[[
	if animaldead[animal] == animal then
		cb(true)
		--Borrar(animal)
	else
		animaldead[animal] = animal
		cb(false)
	end
	]]--
end)

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