DiosSasuke Posted May 20, 2018 Share Posted May 20, 2018 shadow_team = createTeam("shadow",255,0,0) function shadow_func(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, shadow_team ) triggerClientEvent(player, "onClientSoundEvent", player) shuk = exports [ "slothbot" ]:spawnBot ( px, py - 3, pz, 0, 164, 0, 0, getPlayerTeam(player), 10, "hunting", true ) setTimer ( function ( ) destroyElement(shuk) end ,500000, 1 ) outputChatBox("Kuchiyose Shadow Mini!", l_1_0, 255, 0, 0, false) end addCommandHandler("shadow-master-obito", shadow_func) How do I make the bot faster and have more life I will leave my code Link to comment
LilDawage Posted May 22, 2018 Share Posted May 22, 2018 https://wiki.multitheftauto.com/wiki/SetElementSpeed Link to comment
WiBox Posted May 27, 2018 Share Posted May 27, 2018 shadow_team = createTeam("shadow",255,0,0) function shadow_func(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, shadow_team ) triggerClientEvent(player, "onClientSoundEvent", player) shuk = exports [ "slothbot" ]:spawnBot ( px, py - 3, pz, 0, 164, 0, 0, getPlayerTeam(player), 10, "hunting", true ) setElementVelocity ( shuk, speedX, speedY, speedZ ) --for the speed x and y and z choose numbers as you like. setTimer ( function ( ) destroyElement(shuk) end ,500000, 1 ) outputChatBox("Kuchiyose Shadow Mini!", l_1_0, 255, 0, 0, false) end addCommandHandler("shadow-master-obito", shadow_func) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now