Jump to content

Search the Community

Showing results for tags 'eject_from_vehicle'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. Hi guys here is my basic eject script, it doesnt exactly sling shot the player up but warps the player by increasing his z value o his current coordinates,, and the movement of camera makes it look like the person has ejected from the vehicle, but the problem is as its getting warped sometimes if some roof or etc is above u , it looks as if u are going through a wall, so i need a way to restrict eject when the area above is not clear. function eject( player ) local vehicle = getPedOccupiedVehicle(player) local driver = getVehicleOccupant(vehicle, 0) local x,y,z = getElementPosition( vehicle ) setElementVelocity(driver, 5, 5, 5) removePedFromVehicle(driver) setElementPosition ( driver,x, y, z + 100 ) giveWeapon ( driver, 46, 1 ) end addCommandHandler("eject", eject)
×
×
  • Create New...