-
Posts
1,708 -
Joined
-
Last visited
Everything posted by iFoReX
-
yakusa no me sirvio D: se crea el area en el radar pero los zombis igual entran y matan safecol = createColCuboid ( 661.65600585938, -2784.9812011719, 8.5092506408691, 220, 200, 60 ) safeZoneRadar = createRadarArea ( 661.65600585938, -2784.9812011719, 220, 200, 0, 255, 0, 100 ) setElementData (safeZoneRadar, "zombieProof", true)
-
now the button 1 and 2 doesnt work D:
-
Kenix ur code doesnt work D:, and ur code Jaiysd doesnt work too
-
now GUI Elements appear when I start the resource
-
Bueeno yo hize esto con guiSetVisible onClientGUIClick guiSetText, setElementModel, getElementModel, setElemenetPosition, setPedRotation, y una que otra tabla, ademas de la camara
-
Wooow Nice code I go to test and I tell how work Doesnt work D:
-
and if u use event in .lua 'onZombieSpawn' ? I dont know if it will work but try
-
mmm... better I do with Labels, with DxTexts is very hard
-
why it doesnt work ? D: GUIEditor_Button = {} GUIEditor_Edit = {} rotation = 0 GUIEditor_Button[1] = guiCreateButton(0.3688,0.84,0.0625,0.055,"<",true) GUIEditor_Button[2] = guiCreateButton(0.5013,0.84,0.0625,0.055,">",true) GUIEditor_Button[3] = guiCreateButton(0.4013,0.9067,0.1287,0.065,"Empezar a Jugar",true) GUIEditor_Edit[1] = guiCreateEdit(0.4412,0.8367,0.05,0.0567,"",true) guiEditSetReadOnly(GUIEditor_Edit[1],true) function texto() ls = dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) addEvent("onVisibleButtons", true) addEventHandler("onVisibleButtons", getLocalPlayer(), function() guiSetVisible(GUIEditor_Button[1],true) guiSetVisible(GUIEditor_Button[2],true) guiSetVisible(GUIEditor_Button[3],true) guiSetVisible(GUIEditor_Edit[1],true) addEventHandler("onClientRender",root, texto) showCursor(true) bindKey("space", "down", theR) ped = createPed( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[3] then guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) setCameraTarget( localPlayer ) destroyElement(ped) unbindKey("space") removeEventHandler("onClientRender", root, texto) removeEventHandler("onClientRender", root, theR) local table = {{731.21276855469, -1276.6033935547, 17.6484375}} setElementPosition( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) elseif source == GUIEditor_Button[1] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") elseif source == GUIEditor_Button[2] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") end end ) function rotateTempPed ( ) if isElement ( ped ) then rotation = rotation + 1 if ( rotation > 359 ) then rotation = 0 end setPedRotation ( ped, rotation ) end end addEventHandler("onClientRender", root, rotateTempPed) numero = 0 function on_pushButton_2_clicked(button,state) if (button == "left" and state == "up") then if(numero == 1) then return end numero = numero - 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[1], on_pushButton_2_clicked) function on_pushButton_3_clicked(button,state) if (button == "left" and state == "up") then if (numero == 288) then return end numero = numero + 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[2], on_pushButton_3_clicked) function lvT() removeEventHandler("onClientRender", root, texto) lv = dxDrawText("Las Venturas",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) if (lv) then sf = dxDrawText("San Fierro",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end end function theR() addEventHandler("onClientRender", root, lvT) end I want if the Player has pressed the "space" , if the player press again he change the dxDrawText to SF
-
yo toy asiendo uno no es nada dificil con conocimientos de eventos de GUIs se te hace re facil
-
now Doesnt work my second text 'LV' GUIEditor_Button = {} GUIEditor_Edit = {} rotation = 0 GUIEditor_Button[1] = guiCreateButton(0.3688,0.84,0.0625,0.055,"<",true) GUIEditor_Button[2] = guiCreateButton(0.5013,0.84,0.0625,0.055,">",true) GUIEditor_Button[3] = guiCreateButton(0.4013,0.9067,0.1287,0.065,"Empezar a Jugar",true) GUIEditor_Edit[1] = guiCreateEdit(0.4412,0.8367,0.05,0.0567,"",true) guiEditSetReadOnly(GUIEditor_Edit[1],true) function texto() ls = dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) addEvent("onVisibleButtons", true) addEventHandler("onVisibleButtons", getLocalPlayer(), function() guiSetVisible(GUIEditor_Button[1],true) guiSetVisible(GUIEditor_Button[2],true) guiSetVisible(GUIEditor_Button[3],true) guiSetVisible(GUIEditor_Edit[1],true) addEventHandler("onClientRender",root, texto) showCursor(true) bindKey("space", "down", lvT) ped = createPed( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[3] then guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) setCameraTarget( localPlayer ) destroyElement(ped) unbindKey("space") removeEventHandler("onClientRender", root, texto) local table = {{731.21276855469, -1276.6033935547, 17.6484375}} setElementPosition( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) elseif source == GUIEditor_Button[1] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") elseif source == GUIEditor_Button[2] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") end end ) function rotateTempPed ( ) if isElement ( ped ) then rotation = rotation + 1 if ( rotation > 359 ) then rotation = 0 end setPedRotation ( ped, rotation ) end end addEventHandler("onClientRender", root, rotateTempPed) numero = 0 function on_pushButton_2_clicked(button,state) if (button == "left" and state == "up") then if(numero == 1) then return end numero = numero - 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[1], on_pushButton_2_clicked) function on_pushButton_3_clicked(button,state) if (button == "left" and state == "up") then if (numero == 288) then return end numero = numero + 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[2], on_pushButton_3_clicked) function lvT() removeEventHandler("onClientRender", root, texto) lv = dxDrawText("Las Venturas",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end
-
thanks you! I searched in wiki 'cancelEventHandler'
-
GUIEditor_Button = {} GUIEditor_Edit = {} rotation = 0 GUIEditor_Button[1] = guiCreateButton(0.3688,0.84,0.0625,0.055,"<",true) GUIEditor_Button[2] = guiCreateButton(0.5013,0.84,0.0625,0.055,">",true) GUIEditor_Button[3] = guiCreateButton(0.4013,0.9067,0.1287,0.065,"Empezar a Jugar",true) GUIEditor_Edit[1] = guiCreateEdit(0.4412,0.8367,0.05,0.0567,"",true) guiEditSetReadOnly(GUIEditor_Edit[1],true) function texto() ls = dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) end guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) addEvent("onVisibleButtons", true) addEventHandler("onVisibleButtons", getLocalPlayer(), function() guiSetVisible(GUIEditor_Button[1],true) guiSetVisible(GUIEditor_Button[2],true) guiSetVisible(GUIEditor_Button[3],true) guiSetVisible(GUIEditor_Edit[1],true) addEventHandler("onClientRender",root, texto) showCursor(true) ped = createPed( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[3] then guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) setCameraTarget( localPlayer ) destroyElement(ped) destroyElement(ls) ---Here I tried destroy the text , but in the debugscript 3, ( destroyElement( bad argument ) ) D: local table = {{731.21276855469, -1276.6033935547, 17.6484375}} setElementPosition( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) elseif source == GUIEditor_Button[1] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") elseif source == GUIEditor_Button[2] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") end end ) function rotateTempPed ( ) if isElement ( ped ) then rotation = rotation + 1 if ( rotation > 359 ) then rotation = 0 end setPedRotation ( ped, rotation ) end end addEventHandler("onClientRender", root, rotateTempPed) numero = 0 function on_pushButton_2_clicked(button,state) if (button == "left" and state == "up") then if(numero == 1) then return end numero = numero - 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[1], on_pushButton_2_clicked) function on_pushButton_3_clicked(button,state) if (button == "left" and state == "up") then if (numero == 288) then return end numero = numero + 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[2], on_pushButton_3_clicked) yeh I find the problem , now I want destroy the text when the Player press the GUIEditor_Button[3], but I dont know how D: please help me
-
Im having a GUI Skins for my server , but my text doesnt appear cl-side GUIEditor_Button = {} GUIEditor_Edit = {} rotation = 0 GUIEditor_Button[1] = guiCreateButton(0.3688,0.84,0.0625,0.055,"<",true) GUIEditor_Button[2] = guiCreateButton(0.5013,0.84,0.0625,0.055,">",true) GUIEditor_Button[3] = guiCreateButton(0.4013,0.9067,0.1287,0.065,"Empezar a Jugar",true) GUIEditor_Edit[1] = guiCreateEdit(0.4412,0.8367,0.05,0.0567,"",true) guiEditSetReadOnly(GUIEditor_Edit[1],true) guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) addEvent("onVisibleButtons", true) addEventHandler("onVisibleButtons", getLocalPlayer(), function() guiSetVisible(GUIEditor_Button[1],true) guiSetVisible(GUIEditor_Button[2],true) guiSetVisible(GUIEditor_Button[3],true) guiSetVisible(GUIEditor_Edit[1],true) showCursor(true) dxDrawText("Los Santos",433.0,539.0,641.0,585.0,tocolor(255,255,255,255),3.0,"default","left","top",false,false,true) ped = createPed( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) ---Here the text( doesnt appear ) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[3] then guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) guiSetVisible(GUIEditor_Edit[1],false) showCursor(false) setCameraTarget( localPlayer ) destroyElement(ped) local table = {{731.21276855469, -1276.6033935547, 17.6484375}} setElementPosition( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) elseif source == GUIEditor_Button[1] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") elseif source == GUIEditor_Button[2] then guiSetText(GUIEditor_Edit[1], " "..getElementModel(ped).."") end end ) function rotateTempPed ( ) if isElement ( ped ) then rotation = rotation + 1 if ( rotation > 359 ) then rotation = 0 end setPedRotation ( ped, rotation ) end end addEventHandler("onClientRender", root, rotateTempPed) numero = 0 function on_pushButton_2_clicked(button,state) if (button == "left" and state == "up") then if(numero == 1) then return end numero = numero - 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[1], on_pushButton_2_clicked) function on_pushButton_3_clicked(button,state) if (button == "left" and state == "up") then if (numero == 288) then return end numero = numero + 1 setElementModel(ped,numero) end end addEventHandler("onClientGUIClick", GUIEditor_Button[2], on_pushButton_3_clicked) sv-side addEventHandler("onPlayerLogin", getRootElement(), function() triggerClientEvent(source, "onVisibleButtons", source) local x,y,z,lx,ly,lz = 755.94171142578, -1258.78125, 18.399745941162, 756.03051757813, -1239.4184570313, 13.552116394043 setCameraMatrix(source,x,y,z,lx,ly,lz) end ) thanks in advance image :
-
-.- no solo 1 variable todas las variables -.- txd1 = engineLoadTXD("skins/ddzomb.txd", 22 ) engineImportTXD(txd1, 22) dff1 = engineLoadDFF("skins/ddzomb.dff", 22 ) engineReplaceModel(dff1, 22)
-
las que dice txd y dff cambialas a txd, dff, txd1, dff1, txd2, dff2 y asi continuamente
-
Plate cambia las variables y asi te funcionaran
-
vitoko es mejor hacerlo con root, y con IFs
-
no funciono cuando reconecto el blip se queda ahy y no se atachea asia mi D:
-
a mi tambien me pasa lo mismo
-
D: yo las veo perfectamente, pasa que cuando pongo el script se ven borrosamente estos objetos que son como unos hangares cerrados, y cuando uno va asia ellos uno los traspasa D:
-
el objeto el bugg
-
eso es cuando el player se logge verdad ?