Jump to content

small question


WASSIm.

Recommended Posts

hi guys

how remove triggerClientEvent

addEventHandler("onColShapeHit", getRootElement(), 
function test (hitElement) 
       if (source == zone) and getElementType ( hitElement ) == "player" then 
              triggerClientEvent ("BARhealth", hitElement, nemesis) 
       end 
end) 
  
addEventHandler("onColShapeLeave", getRootElement(), 
function (leaveElement) 
       if (source == zone) and getElementType ( leaveElement ) == "player" then 
              triggerClientEvent ("BARhealth", hitElement, nemesis) 
       end 
end) 

Link to comment

Not sure what you mean...

addEventHandler("onColShapeHit", getRootElement(), 
function test (hitElement) 
       if (source == zone) and getElementType ( hitElement ) == "player" then 
           --   triggerClientEvent ("BARhealth", hitElement, nemesis) 
       end 
end) 
  
addEventHandler("onColShapeLeave", getRootElement(), 
function (leaveElement) 
       if (source == zone) and getElementType ( leaveElement ) == "player" then 
             -- triggerClientEvent ("BARhealth", hitElement, nemesis) 
       end 
end) 

?

Link to comment

Still don't really understand. But from what i can understand i guess you could do this:

addEventHandler("onColShapeHit", getRootElement(), 
function test (hitElement) 
       if (source == zone) and getElementType ( hitElement ) == "player" then 
              triggerClientEvent ( hitElement, "BARhealth.start", hitElement, nemesis) 
       end 
end) 
  
addEventHandler("onColShapeLeave", getRootElement(), 
function (leaveElement) 
       if (source == zone) and getElementType ( leaveElement ) == "player" then 
              triggerClientEvent ( leaveElement, "BARhealth.stop", leaveElement , nemesis) 
       end 
end) 

Link to comment
Still don't really understand. But from what i can understand i guess you could do this:
addEventHandler("onColShapeHit", getRootElement(), 
function test (hitElement) 
       if (source == zone) and getElementType ( hitElement ) == "player" then 
              triggerClientEvent ( hitElement, "BARhealth.start", hitElement, nemesis) 
       end 
end) 
  
addEventHandler("onColShapeLeave", getRootElement(), 
function (leaveElement) 
       if (source == zone) and getElementType ( leaveElement ) == "player" then 
              triggerClientEvent ( leaveElement, "BARhealth.stop", leaveElement , nemesis) 
       end 
end) 

not nothing

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