Jump to content

isPlayerStunting


Recommended Posts

You can do it by yourself.

-- client 
addEventHandler("onClientPlayerStuntStart",root, 
   function() 
      setElementData(localPlayer,"stunting",true); 
   end 
); 
  
addEventHandler("onClientPlayerStuntFinish",root, 
   function() 
      setElementData(localPlayer,"stunting",false); 
   end 
); 
  
-- server or client 
function isPlayerStunting(player) 
   return getElementData(player,"stunting") or false; 
end; 

Link to comment
  • Recently Browsing   0 members

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