zixxonx Posted May 3, 2014 Posted May 3, 2014 local px,py,pz = getElementPosition(vehicle) local pdistance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if pdistance <= 133 then local sx,sy = getScreenFromWorldPosition( px, py, pz + 0.3 ) if not sx or not sy then break end local awatarid = getElementData(player, "omg.avek") dxDrawImage(sx-27,sy-55, 55, 64 , 'img/'..awatarid..'.png', 0, 0, 0, tocolor ( 255, 255, 255, 140 ) ) end It works flawlessy but when i'm near to opponent the image is normal, but when im driving out the image is bigger. How can i make it normal-size all the time? Thanks!
tosfera Posted May 3, 2014 Posted May 3, 2014 calculate the distance ( which is pdistance ) and use that to do some magic math. ( with the width and the height of your image ). If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]
Snow-Man Posted May 4, 2014 Posted May 4, 2014 vehicle is not definated use getPedOccupiedVehicle USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
-.Paradox.- Posted May 4, 2014 Posted May 4, 2014 isPedInVehicle If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
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