strauss Posted June 27, 2023 Share Posted June 27, 2023 Hello to the MTA community, I want to create a script where a small image/icon appears over the player as soon as the player (only inside a car) touches a marker. The image dissapears after 2 seconds. Im starting this lua learning thing so if you can explain the script that would be better! (not necessary ofc). Link to comment
FileEX Posted June 29, 2023 Share Posted June 29, 2023 You will need it: dxDrawMaterialLine3D - For display image/icon in 3D space getPedBonePosition - For get the player head position onClientRender - For rendering material line 3D getTickCount - For count visibility time for the material line isPedInVehicle onClientMarkerHit You can also use getScreenFromWorldPosition with dxDrawImage instead of material line 3D but the final effect will be less neat. Link to comment
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