Jump to content

3D hud


Piorun

Recommended Posts

  • Moderators

most of the dx functions require the event's "onClientRender" or "onClientPreRender".

3D hud will be hard. But I don't think it will be impossible.

2: to the left side of the player or left side of the screen?

There are some attachment functions, for attach things to other things.

https://wiki.multitheftauto.com/wiki/AttachElements

https://wiki.multitheftauto.com/wiki/Se ... hedOffsets

Link to comment
  • Moderators
local rx,ry,rz = getElementRotation (element) 
local pX,pY,pZ = getElementPosition (element) 
rz =  (rz * 3.141592653 * 2)/360;  
local newX,newY,newZ = pX + math.cos(rz), pY + math.sin(rz), pZ 

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...