Jump to content

[HELP]Block animation or action.


off

Recommended Posts

addEventHandler("onPlayerJoin",root, 
function() 
toggleControl(source,"sprint",false) 
end) 

try

Thanks, but how do I add it?

addEvent("tiredAnimation",true) 
addEventHandler("tiredAnimation",root,function(target) 
setPedAnimation ( target, "FAT", "IDLE_tired", -1, true, false ) 
setElementData(target, "tired", true) 
setTimer(triggerEvent, 10000, 1, "switchToNormal", root, target ) 
end) 

Link to comment
addEvent("tiredAnimation",true) 
addEventHandler("tiredAnimation",root,function(target) 
setPedAnimation ( target, "FAT", "IDLE_tired", -1, true, false ) 
setElementData(target, "tired", true) 
toggleControl(target,'sprint',false) 
setTimer(triggerEvent, 10000, 1, "switchToNormal", root, target ) 
end) 

event 'switToNormal" use toggleControl?

if not, use toggleControl(target,'sprint',true)

try

Link to comment
addEvent("tiredAnimation",true) 
addEventHandler("tiredAnimation",root,function(target) 
setPedAnimation ( target, "FAT", "IDLE_tired", -1, true, false ) 
setElementData(target, "tired", true) 
toggleControl(target,'sprint',false) 
setTimer(triggerEvent, 10000, 1, "switchToNormal", root, target ) 
end) 

event 'switToNormal" use toggleControl?

if not, use toggleControl(target,'sprint',true)

try

Thanks, the first attempt worked.

Is it possible to block a specific animation?

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