Jump to content
You can now try the trial version of DIS2RBED for free ^_^ ×

Picture on hover off button?


Recommended Posts

I want to have a picture of the Car im about to choose when i hover over it in my Lua.

local scramjetHash = rage.gameplay.get_hash_key("SCRAMJET")
menu.add_option_spawn("Spawn Scramjet", "luaOptSpawnScramjet", scramjetHash, 0, spawn)

(Just an example)

Can anyone help me with that?

image.png.af36a0c0417dd8e645e05b5c6c49d4a8.png

Link to comment
Share on other sites

19 minutes ago, MonsterUwwU said:

I want to have a picture of the Car im about to choose when i hover over it in my Lua.

local scramjetHash = rage.gameplay.get_hash_key("SCRAMJET")
menu.add_option_spawn("Spawn Scramjet", "luaOptSpawnScramjet", scramjetHash, 0, spawn)

(Just an example)

Can anyone help me with that?

image.png.af36a0c0417dd8e645e05b5c6c49d4a8.png

To do this, you will have to create a resource folder and move the pictures of all the cars in GTA there and load the right one by hash each time. It's easier to make yourself a preview function that will work without a picture, as for example it was done by me
 

image.png

image.png

Link to comment
Share on other sites

6 minutes ago, MonsterUwwU said:

Thank you 😄

Are you able to share your code for the preview or is it private?

...and what Lua re you using right there?

Sorry, but I can't share. This is the paid version of Helper.lua.

Link to comment
Share on other sites

1 minute ago, MonsterUwwU said:

Np. Ill get it to work somehow myself 👍

Where can I buy whis LUA?

It is currently not available for purchase as development has been temporarily suspended until the release of a new version of DIS2RBED (D2.1)

  • Like 1
Link to comment
Share on other sites

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
×
×
  • Create New...