Jump to content

setBotWait problem


|H|TiTanium

Recommended Posts

It works fine, for 1 second, the Ped stops moving, but suddenly it just jumps and starts moving again, I tried using:

local mode = exports.slothbot:getBotMode(ped_name) 
if mode then 
exports.slothbot:setBotWait(ped_name) 
end 

But it doesn't work, so this is the basic function, which stops the Ped for almost 2 seconds, and then fails. They are already global, I just need a way of stopping them til the player types the command again.

function ficar ( ) 
            exports.slothbot:setBotWait(tigre1) 
            exports.slothbot:setBotWait(pantera1) 
            exports.slothbot:setBotWait(cachorro1) 
            exports.slothbot:setBotWait(lobo1) 
            exports.slothbot:setBotWait(raposa1) 
            exports.slothbot:setBotWait(cachorro2) 
            exports.slothbot:setBotWait(pitbull1) 
            exports.slothbot:setBotWait(pitbull2) 
end 
addCommandHandler( "stay", ficar ) 

Link to comment
function ficar ( ) 
    exports.slothbot:setBotWait(tigre1) 
    local mode = exports.slothbot:getBotMode ( tigre1 ) 
    if ( mode ) then 
        outputChatBox ( mode ) 
    end 
    exports.slothbot:setBotWait(pantera1) 
    exports.slothbot:setBotWait(cachorro1) 
    exports.slothbot:setBotWait(lobo1) 
    exports.slothbot:setBotWait(raposa1) 
    exports.slothbot:setBotWait(cachorro2) 
    exports.slothbot:setBotWait(pitbull1) 
    exports.slothbot:setBotWait(pitbull2) 
end 
addCommandHandler ( "stay", ficar ) 

Use that and see waht it outputs.

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