MonsterUwwU Posted April 14 Share Posted April 14 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? Link to comment Share on other sites More sharing options...
med1ed Posted April 14 Share Posted April 14 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? 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 Link to comment Share on other sites More sharing options...
MonsterUwwU Posted April 14 Author Share Posted April 14 Thank you 😄 Are you able to share your code for the preview or is it private? ...and what Lua re you using right there? Link to comment Share on other sites More sharing options...
med1ed Posted April 14 Share Posted April 14 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 More sharing options...
MonsterUwwU Posted April 14 Author Share Posted April 14 Np. Ill get it to work somehow myself 👍 Where can I buy whis LUA? Link to comment Share on other sites More sharing options...
med1ed Posted April 14 Share Posted April 14 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) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now