Gallagher Posted February 18, 2014 Posted February 18, 2014 it is possible obtain the distance of an object? if the player aim at a player or an object tell distance q is he?
Castillo Posted February 18, 2014 Posted February 18, 2014 getElementPosition getDistanceBetweenPoints3D
Gallagher Posted February 18, 2014 Author Posted February 18, 2014 getElementPosition getDistanceBetweenPoints3D Thanks! one more question, how to use delete file? I say this from the client side script and I want it to be deleted. the name is logo.lua local screenWidth,screenHeight = guiGetScreenSize() gRoot = getRootElement() gResRoot = getResourceRootElement( getThisResource() ) addEventHandler("onClientResourceStart", gResRoot, function () serverlogo = guiCreateStaticImage ( 0.505, 0.378, 0.05, 0.05, "logo.png", true ) --- setSkyGradient(60,50,50,55,50,50) ---createPed ( int 120, float 1258, float -977, float 39 [, float rot = 0.0 ] ) end ) addEventHandler("onClientResourceStart", gResRoot, function () bindKey("Fingutako","down","logovisible") end ) function changeVisibility ( ) if guiGetVisible ( serverlogo ) then guiSetVisible ( serverlogo, false ) else guiSetVisible ( serverlogo, true ) end end addCommandHandler("logovisible", changeVisibility)
Castillo Posted February 18, 2014 Posted February 18, 2014 You want it to be deleted once the client finishes downloading?
Gallagher Posted February 18, 2014 Author Posted February 18, 2014 You want it to be deleted once the client finishes downloading? yes
Castillo Posted February 18, 2014 Posted February 18, 2014 Put this at the end of the file: fileDelete ( "logo.lua" )
Gallagher Posted February 18, 2014 Author Posted February 18, 2014 Put this at the end of the file: fileDelete ( "logo.lua" ) simple? thanks again
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