Jump to content

(SLOTHBOT) The bot can't be killed


ShaneR

Recommended Posts

Posted

Hello, I created a bot with this resource, but I can't kill him, I don't know why.

Main lines:

function startFirstWave(player)
	actualBots[1] = exports.slothbot:spawnBot(1812.23999, -1253.47363, 13.72, 0, math.random(102, 104), 0, 80, nil, 22, "chasing", player)
  	createBlipAttachedTo(actualBots[1], 0, 2, 231, 0, 231, 210, 0, 9999999, player)
end

--There are another functions, but they have nothing to do with this.

 

Posted (edited)
21 hours ago, ShaneR said:

Hello, I created a bot with this resource, but I can't kill him, I don't know why.

Main lines:


function startFirstWave(player)
	actualBots[1] = exports.slothbot:spawnBot(1812.23999, -1253.47363, 13.72, 0, math.random(102, 104), 0, 80, nil, 22, "chasing", player)
  	createBlipAttachedTo(actualBots[1], 0, 2, 231, 0, 231, 210, 0, 9999999, player)
end

--There are another functions, but they have nothing to do with this.

"

Something like this happened to me a couple of years ago. Check EVERY single clientsided script which has the event "onClientPedDamage" in it and look for the cancelEvent() part of that event. Then, remove that line.

Edited by MadnessReloaded

tJ5zeFm.gif

Proud owner and developer of ZNEXT: Aftermath.

Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience.

Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. 

Español, Pусский, Türk, عربى, Polski, Português

IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...