Keilbritschn Posted January 7, 2014 Posted January 7, 2014 hey guys, how can i receive the position of an dxDrawImage?
DNL291 Posted January 7, 2014 Posted January 7, 2014 Store the dxImage position in a variable and just use that variable to get the value. Please do not PM me with scripting related question nor support, use the forums instead.
Keilbritschn Posted January 7, 2014 Author Posted January 7, 2014 Thanks a lot man, it runs . But isn't there a way with getElementData or something like that?
DNL291 Posted January 7, 2014 Posted January 7, 2014 Yes, you can store the positions with setElementData and then get it using getElementData. Please do not PM me with scripting related question nor support, use the forums instead.
xXMADEXx Posted January 7, 2014 Posted January 7, 2014 Yes, you can store the positions with setElementData and then get it using getElementData. It would be better to use variables. DX functions don't return elements anyway. The Ultimate Lua Tutorial! | MTA PHP SDK
DNL291 Posted January 7, 2014 Posted January 7, 2014 It would be better to use variables. DX functions don't return elements anyway. He can pass any other element, such as the player element. DX functions doesn't need return an element to make that possible. I didn't told him to store it with setElementData instead of a variable. Using variables is obviously better and simpler. Please do not PM me with scripting related question nor support, use the forums instead.
Dealman Posted January 8, 2014 Posted January 8, 2014 As far as I know DX Functions don't create any elements, except for a select few. Such as making a shader/render target. So you'll have to rely on variables. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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