wsx5069 Posted October 6, 2020 Share Posted October 6, 2020 (edited) How do I set a button that jumps and a button cancels jumping function pxl () guiSetVisiblie (c1) true showCursor(true) end addEvenhandler ("onClientGUTClick " , root , function () if sourec == -dd-then guiSetVisiblie(ا1) ، fales showCursor(fales) end end) guiSetEnabled (1) (fales) outputChatBox("py pxl",255,0,0,true) key = "alt" -- player = localPlayer bindKey(key,"down", function pxl() if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if isPedOnGround(player) then local vx,vy,vz = getElementVelocity(veh) setElementVelocity(veh,vx,vy,vz + 0.5) end end end ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), startclient) function pxl () guiSetVisiblie (0) end Edited October 6, 2020 by wsx5069 Link to comment
Administrators Tut Posted October 10, 2020 Administrators Share Posted October 10, 2020 Thread moved to the Scripting forum. For any further posting for scripting help, please use this forum. Link to comment
Tekken Posted October 10, 2020 Share Posted October 10, 2020 Sorry but I don’t quite understand your question, also your script has no logic, it’s completely messed up. 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