Jump to content

help


golanu21

Recommended Posts

Posted
createObject 

moveObject 

onColShapeHit 

Required arguments, if what you mean by "PUSH", I assume a player entering a col-shape and the object moving?

Otherwise it depends on the typical GTA objects, if they're not stable.

Posted

man, i want for example

function killPlayerIfTheyPressThisKey ( thePlayer, key ) 
    if ( getControlState ( thePlayer, key ) ) then   
        outputChatBox ( "You can do that..", thePlayer ) 
        --THERE IS PUSHING, something like slap but in other direction 
    else 
        --- 
    end 
end 

  • 3 weeks later...
Posted

I don't understand your needs, maybe:

  
local posx, posy, posz = getElementPosition(localPlayer) 
setElementPosition(localPlayer, posx + 2, posy + 2, posz) 
  

  • Moderators
Posted
Slap uses setElementVelocity, you can try using it to do waht you want.

yep

  
  
    function killPlayerIfTheyPressThisKey ( thePlayer, key ) 
        if ( getControlState ( thePlayer, key ) ) then   
            outputChatBox ( "You can do that..", thePlayer ) 
            setElementVelocity ( thePlayer, 3, 3, 1 ) 
        else 
            --- 
        end 
    end 
  

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