Jump to content

[Question] Functions to Render live object editor


Ben_Sherman

Recommended Posts

Hello,

I just had an amazing idea however it kinda reminds me of some function I so around SAMP, however f**k samp am I right? Well how about I stay on the subject. I want to create a live editor and I need some help in order for me to do that. I'm not really sure what functions you guys recommend me and such in order to pull it off.

strokes.png

This is just a brief example of how it should kinda look like, basically it should have this lines and button which you can click on and by moving the mouse while holding down the button on the UI it should move the object, and then it comes additional buttons in the bottom section of the UI which will switch the buttons to rotation instead. So I'm not really sure how to do this and thought why not ask the community itself as it seems like you guys have alot of ideas how to create stuff and definitely know alot more functions among MTA. Some of you might say straight away "Look around the forums and wiki" well I did that however I didn't really find what I was looking for and I wouldn't write a topic unless I needed the help.

Thanks for your replies!

Sincerely,

Ben

Link to comment
  
local elem = createPed  (...) 
addEventHandler("onClientPreRender",root, 
function() 
dxDrawLine3D (...) 
dxDrawImage3D (...) -- custom function, search in wiki and you can this for rendering button images. It has an arguement where you can attach this image to an element, so simply attach it to ped and set ped alpha to 0 or whatever suits you 
end) 
  
addEventHandler("onClientClick",root, 
function() 
  
end) 
  
  

EDIT: Ah, I just found out that this is not what you were asking for.

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...