Jump to content

Search the Community

Showing results for tags 'attacheffect'.

  • 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. Hello, I've been trying to attach an effect to a vehicle, which in my understanding should work. I'm getting this error: ERROR: attempt to call global 'attachEffect' (a nil value) function rustlerEngine() local vehicle = getPedOccupiedVehicle(localPlayer) local x, y, z = getElementPosition(vehicle) local rx, ry, rz = getElementRotation(vehicle) local engineSmoke = createEffect ( "smoke30m", x-3, y, z, rx, ry, rz ) if(vehicle)then if getElementModel(vehicle) == 476 then toggleControl ( "accelerate", false ) toggleControl ( "brake_reverse", false ) attachEffect(engineSmoke, vehicle) setEffectSpeed(engineSmoke, 10) outputChatBox ("simulating loss of engine", 0, 190, 255) end end end bindKey("0", "down", rustlerEngine) What am I missing?
×
×
  • Create New...