Jump to content

Search the Community

Showing results for tags 'nowarp'.

  • 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. Hey, i am having an issue regarding a certain script. I am trying to create a script, in which the player will automaticly exit the vehicle once it catches fire / has a certain amount of health left. this is what I currently have : [lua] setTimer( function (player) local yass = getPedOccupiedVehicle(player) for _, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do if getElementHealth(vehicle) < 301 then setVehicleDamageProof( vehicle, true) setVehicleEngineState( vehicle, false) setTimer(removeThePed, 100, 1) else if getElementHealth(vehicle) > 302 then setVehicleDamageProof( vehicle, false) setVehicleEngineState( vehicle, true) end end end end, 100, 0 ) function removeThePed ( ) removePedFromVehicle ( yass ) -- Removes the ped from any vehicle. end [/lua] From what I know I tried my best to get things working correctly. The damage proof and engine state works fine, but the player wont exit the vehicle. if anyone could assist me, that would be great, joriss11
×
×
  • Create New...