Jump to content

Search the Community

Showing results for tags 'click'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Youtube


Skype


Web


VK

Found 1 result

  1. Hi, I created an object and i want trigger event when player is clicking at this entity. Here is my code: Server side: wheelObject = mp.objects.new(mp.joaat('prop_spraygun_01'), wheelPosition, { rotation: 283.08, alpha: 255, dimension: player.dimension }); ClientSIde: mp.events.add('click', (x, y, upOrDown, leftOrRight, relativeX, relativeY, worldPosition, hitEntity) => { mp.gui.cursor.show(false, true); const cursorPosition = new mp.Vector3(x, y, 0); const objectPosition = new mp.Vector3(766.928, -844.155, 0); //position of wheelObject const result = mp.raycasting.testCapsule(cursorPosition, objectPosition, 10, localPlayer, 16); if(result != undefined) mp.gui.chat.push("Entity:" + result.entity); }); result.entity return number, but it is not the same value like have the hash of 'wheelObject'. What function should I use to get hash of entity clicked by player?
×
×
  • Create New...