Jump to content

help slothbot


Nicolas ECM

Recommended Posts

hi I could say I needed to grab the resource that serves me please help

local tiempo = 3500 
  
function makeAPed(thePlayer, command, skin) 
if (getTickCount ( ) - tiempo > 10000) then 
tiempo = getTickCount ( ) 
local x,y,z = getElementPosition(thePlayer) 
local rot = getElementRotation(thePlayer) 
local team = getPlayerTeam( thePlayer ) 
local myped = exports.slothbot:spawnBot( x , y - 2, z, 0, math.random ( 100, 105 ), 0, 0, akatsuki, 4, "fire", true ) 
setTimer (destroyElement, 50000, 1, myped) 
setTimer (createElement , 5100, 1, myped) 
else 
end end 
addCommandHandler("edo",makeAPed) 

Link to comment
local tiempo = 3500 
  
function makeAPed ( thePlayer, command, skin ) 
    if ( getTickCount ( ) - tiempo > 10000 ) then 
        tiempo = getTickCount ( ) 
        setTimer ( 
            function ( ) 
                local x, y, z = getElementPosition ( thePlayer ) 
                local rot = getElementRotation ( thePlayer ) 
                local team = getPlayerTeam ( thePlayer ) 
                local myped = exports.slothbot:spawnBot ( x , y - 2, z, 0, math.random ( 100, 105 ), 0, 0, akatsuki, 4, "fire", true ) 
                setTimer ( destroyElement, 50000, 1, myped ) 
                setTimer ( createElement, 5100, 1, myped ) 
            end 
            ,3000, 1 
        ) 
    end 
end 
addCommandHandler ( "edo",makeAPed ) 

Link to comment

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...