Gallagher Posted February 18, 2014 Share 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? Link to comment
Castillo Posted February 18, 2014 Share Posted February 18, 2014 getElementPosition getDistanceBetweenPoints3D Link to comment
Gallagher Posted February 18, 2014 Author Share 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) Link to comment
Castillo Posted February 18, 2014 Share Posted February 18, 2014 You want it to be deleted once the client finishes downloading? Link to comment
Gallagher Posted February 18, 2014 Author Share Posted February 18, 2014 You want it to be deleted once the client finishes downloading? yes Link to comment
Castillo Posted February 18, 2014 Share Posted February 18, 2014 Put this at the end of the file: fileDelete ( "logo.lua" ) Link to comment
Gallagher Posted February 18, 2014 Author Share Posted February 18, 2014 Put this at the end of the file: fileDelete ( "logo.lua" ) simple? thanks again 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