TheSmart Posted February 1, 2015 Share Posted February 1, 2015 hey guys! i download it from community i edit some thing but i fail can anyone help me? Client [local marker = createMarker(1643.6999511719, -2237.8000488281, -3.7000000476837"cylinder",2.0,0,255,255,255) local marker2 = createMarker(1673.1999511719, 1448.1999511719, 9.8000001907349"cylinder",2.0,0,255,255,255) local marker3 = createMarker(-1421.5, -287.10000610352, 13.10000038147"cylinder",2.0,0,255,255,255) function draw() base = dxDrawRectangle(422, 221, 353, 360, tocolor(0, 0, 0, 160), false) dxDrawRectangle(422, 187, 353, 34, tocolor(0, 0, 0, 230), false) dxDrawText("Teleportation System", 461, 192, 742, 216, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "left", "top", false, false, false, false, false) dxDrawRectangle(440, 254, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawRectangle(558, 254, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawRectangle(677, 254, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawRectangle(558, 443, 83, 31, tocolor(131, 179, 252, 35), false) dxDrawText("Los Santos", 465, 264, 495, 282, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(" Las Ventura", 576, 264, 625, 280, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("San Fierro", 697, 264, 746, 280, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Close", 582, 453, 631, 469, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) showcursor (true) end button = guiCreateButton(439, 254, 84, 31, "Los Santos", false) button2 = guiCreateButton(558, 254, 84, 31, "Las Venturas", false) button3 = guiCreateButton(677, 254, 84, 31, "San Fierro", false) button10 = guiCreateButton(557, 443, 84, 31, "Close", false) guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button10, false) local drawingPanel = false; function startDrawing_CMD() if(drawingPanel == false) then addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) drawingPanel = true; showCursor(true) else removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) drawingPanel = false; showCursor(false) end end addEventHandler("onClientMarkerHit", marker, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientMarkerHit", marker2, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientMarkerHit", marker3, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientGUIClick",button10,function() if ( source == button10) then removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button10, false) showCursor(false) end end ) addEventHandler("onClientGUIClick",button,function() if ( source == button) then showCursor(false) takePlayerMoney(Player, 5000) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1643.6999511719, -2237.8000488281, -3.7000000476837 ) exports.AC_message:outputTopBar("You have been teleported to Los Santos",0,255,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button2,function() if ( source == button2) then showCursor(false) takePlayerMoney(Player, 5000) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1673.1999511719, 1448.1999511719, 9.8000001907349 ) exports.AC_message:outputTopBar("You have been teleported to Las Venturas",0,255,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button3,function() if ( source == button3) then showCursor(false) takePlayerMoney(Player, 5000) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), -1421.5, -287.10000610352, 13.10000038147 ) exports.AC_message:outputTopBar("You have been teleported to San Fierro",0,255,0,LocalPlayer) end end ) local un = createBlip (1643.6999511719, -2237.8000488281, -3.7000000476837, 44) local un = createBlip (1673.1999511719, 1448.1999511719, 9.8000001907349, 44) local un = createBlip (-1421.5, -287.10000610352, 13.10000038147, 44) Link to comment
TAPL Posted February 1, 2015 Share Posted February 1, 2015 Line 18: showcursor should be showCursor. And it shouldn't be inside onClientPreRender event . Link to comment
TheSmart Posted February 1, 2015 Author Share Posted February 1, 2015 i can't get u please fix it Link to comment
TheSmart Posted February 1, 2015 Author Share Posted February 1, 2015 still does not work Link to comment
xeon17 Posted February 1, 2015 Share Posted February 1, 2015 If you want us to help you and you don't explain what your problem is about, it doesn't help us to help you. Also check /debugscript 3 Link to comment
xeon17 Posted February 1, 2015 Share Posted February 1, 2015 local marker = createMarker(1643.6999511719, -2237.8000488281, -3.7000000476837,"cylinder",2.0,0,255,255,255) Link to comment
Bean666 Posted February 1, 2015 Share Posted February 1, 2015 sorry i uploaded the resoruce with the showcursor thingy ill make an update ASAP with the bug fixed. thank u for reminding me. 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