#Raiden
Members-
Posts
79 -
Joined
-
Last visited
Everything posted by #Raiden
-
Ya se que está mal el drawText igual pensé que era eso lo que querías, perdón.
-
así? dxDrawText("Hora Real :"..horas..":"..minutos.."")
-
¿Quieres que te diga la hora real?
-
Bueno, como dice el titulo quiero hacer un hud que me diga la vida, chaleco y oxigeno, pero no sé si se pueda adaptar con imagenes la vida y eso, Si se pueden me podrían decir como hacer eso?
-
Si sirvió Muchas Gracias!!
-
Eso fue lo que me paso Enargy ayer, pero si lo quito no me aparecen los autos en la lista
-
Claro, aqui los dejo Client vehiculos = { {411}, --{"nombreDeSkin", ID} } Horns2 = guiCreateGridList(10, (260 - 191) / 2, 104, 191, false) usar2 = guiCreateButton(267 - 100 - 10, (260 - 70) / 2, 100, 70, "Usar", false, window2) cerrar2 = guiCreateButton(128, 157, 85, 34, "Cerrar", false) guiSetFont(usar2, "sa-header") guiGridListAddColumn(Horns2, "Autos Vip", 0.9) for i,v in ipairs (vehiculos) do local vehicle = getVehicleNameFromID(v[1]) local row = guiGridListAddRow (Horns2) guiGridListSetItemText (Horns2, row, 1, vehicle, false, true) guiGridListSetItemData (Horns2, row, 1, v[1] ) end local player = getLocalPlayer() addEventHandler("onClientGUIClick", root, function() if source == usar2 then local vehRow, column = guiGridListGetItemText (Horns2, guiGridListGetSelectedItem (Horns2), 2) if ( vehRow ~= 0 and column ~= 0 ) then local vehID = guiGridListSetItemText (Horns2, row, 1, vehicle, false, true) triggerServerEvent("onPlayerRequestVehicleVIP", player, vehID) --outputChatBox( row ) end end end) server addEvent("onPlayerRequestVehicleVIP", true) addEventHandler("onPlayerRequestVehicleVIP", root, function( vehicle ) if ( vehicle ) then local vehicleID = getVehicleIDFromName(vehicle) local x,y,z = getElementPosition( source ); x = x + 5 vipCar = createVehicle( vehicleID, x, y, z ); return true; end end)
-
Me dice de nuevo que hay error en guiGridListSetItemText pero ahora en donde dice ''row''
-
Con eso que me pasate Tomas, me Pone otro error en el debugscript, es este WARNING: PanelVip/Vip_c.lua:128 Bad Argument 'guiGridListGetItemText' [expexted number at argument 3, got nil]
-
Bueno, ya pude arreglar las gridlist , pero ahora me tira un error al debugscript 3 cuando intento crear el auto: [Expexted Number at argument 1, got bolean] Por si no Sale la foto completa e_e.
-
Lo que no entiendo es esto al iniciar el script aparece esa ventana pero al darle click al boton ''Autos Vip''' Me sale la gridlist de los skins pero no la de los autos Dejare los codigos para ver si tengo un error client function centerWindow (center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) /2,(screenH - windowH) /2 guiSetPosition(center_window, x, y, false) end function centerWindow1 (center_window1) local screenW1, screenH1 = guiGetScreenSize() local windowW1, windowH1 = guiGetSize(center_window1, false) local x1, y1 = (screenW1- windowW1) /2,(screenH1 - windowH1) /6 guiSetPosition(center_window1, x1, y1, false) end function centerWindow2 (center_window2) local screenW2, screenH2 = guiGetScreenSize() local windowW2, windowH2 = guiGetSize(center_window2, false) local x2, y2 = (screenW2- windowW2) /2,(screenH2 - windowH2) /2.5 guiSetPosition(center_window2, x2, y2, false) end local xp, yp = guiGetScreenSize() local ypf = (yp - 157) /2 local mix, miy = 1366, 768 local screenW, screenH = guiGetScreenSize() window = guiCreateWindow(103, 99, 618, 404, "Panel V.I.P", false) guiWindowSetSizable(window, false) guiSetProperty(window, "CaptionColour", "FF0BFD3E") centerWindow(window) memoVIP = guiCreateMemo(9, 25, 599, 100, "Hola!!, Bienvenido al panel vip, aqui podras hacer varias cosas que un jugador Normal no podria hacer, Habrá teleports para los V.I.P por ahora Solo Esta La Base Vip, Si tienes una sugerencia o vez algun bug sobre el panel No dudes en decirmelo nick: Raiden, Tambien Si quieres otros Teleports Solo Preguntame si lo puedo hacer... Bueno, ya terminando Lo ultimo Es un Panel Warp que se utiliza Poniendo /warp Gracias.!! Nota: Al elegir los botones skins vip e autos vip es mejor darle a cerrar al elegir tu skin o auto ", false, window) guiMemoSetReadOnly( memoVIP, true ) Jugador = guiCreateLabel(19, 145, 61, 19, "Jugador:", false, window) JetPack = guiCreateLabel(19, 168, 61, 19, "JetPack:", false, window) guiLabelSetColor(JetPack, 8, 108, 245) Invisible = guiCreateLabel(19, 192, 49, 14, "Invisible:", false, window) guiLabelSetColor(Invisible, 114, 138, 134) Velocidadx3 = guiCreateLabel(19, 216, 76, 14, "Velocidad x3:", false, window) guiLabelSetColor(Velocidadx3, 247, 227, 4) AutoIndestructible = guiCreateLabel(19, 240, 110, 14, "Auto Indestructible:", false, window) guiLabelSetColor(AutoIndestructible, 250, 0, 0) AutoInvisible = guiCreateLabel(19, 264, 76, 16, "Auto Invisible:", false, window) guiLabelSetColor(AutoInvisible, 7, 242, 35) ItemsVip = guiCreateLabel(241, 308, 61, 19, "Items Vip", false, window) guiSetFont(ItemsVip, "clear-normal") SkinsVip = guiCreateButton(27, 337, 72, 24, "Skins Vip", false, window) guiSetProperty(SkinsVip, "NormalTextColour", "FF07F223") AutosVip = guiCreateButton(109, 337, 72, 24, "Autos Vip", false, window) guiSetProperty(AutosVip, "NormalTextColour", "FFF1B705") Vida200 = guiCreateButton(27, 370, 72, 24, "Vida", false, window) guiSetProperty(Vida200, "NormalTextColour", "FFF80000") Chaleco = guiCreateButton(109, 374, 72, 20, "Chaleco", false, window) guiSetProperty(Chaleco, "NormalTextColour", "FF03F4CF") PackArmas1 = guiCreateButton(191, 337, 82, 24, "Pack Armas 1", false, window) guiSetProperty(PackArmas1, "NormalTextColour", "FFE403F2") HabilidadDeArmas = guiCreateButton(283, 337, 82, 57, "Todas las Habilidades De Armas", false, window) guiSetProperty(HabilidadDeArmas, "NormalTextColour", "FFE36C14") Teleports = guiCreateLabel(355, 135, 61, 19, "Teleports", false, window) guiSetFont(Teleports, "clear-normal") BaseVip = guiCreateButton(350, 164, 66, 24, "Base Vip ", false, window) guiSetProperty(BaseVip, "NormalTextColour", "FF07F223") MasTeleports = guiCreateButton(432, 164, 141, 24, "Pronto mas teleports ", false, window) guiSetProperty(MasTeleports, "NormalTextColour", "FFFFFFFF") guiSetVisible(window, false) CheckJetPack = guiCreateCheckBox(68, 171, 15, 15, "", false, false, window) CheckInvisible = guiCreateCheckBox(65, 192, 15, 15, "", true, false, window) CheckVelocidadx3 = guiCreateCheckBox(95, 215, 15, 15, "", false, false, window) CheckAutoGod = guiCreateCheckBox(129, 240, 15, 15, "", true, false, window) CheckAutoInvisible = guiCreateCheckBox(95, 264, 15, 15, "", false, false, window) OnJetPack = guiCreateLabel(84, 170, 21, 16, "On", false, window) guiLabelSetColor(OnJetPack, 254, 13, 13) BarraJetPack = guiCreateLabel(100, 170, 21, 16, "/", false, window) OffJetPack = guiCreateLabel(105, 170, 21, 16, "Off", false, window) OnInvisible = guiCreateLabel(83, 191, 21, 16, "On", false, window) guiLabelSetColor(OnInvisible, 254, 13, 13) BarraInvisible = guiCreateLabel(100, 190, 21, 16, "/", false, window) OffJetPack = guiCreateLabel(105, 191, 21, 16, "Off", false, window) OnVelocidadx3 = guiCreateLabel(114, 214, 21, 16, "On", false, window) guiLabelSetColor(OnVelocidadx3, 254, 13, 13) BarraVelocidadx3 = guiCreateLabel(133, 214, 21, 16, "/", false, window) OffJetPack = guiCreateLabel(139, 214, 21, 16, "Off", false, window) OnAutoGod = guiCreateLabel(145, 238, 21, 16, "On", false, window) guiLabelSetColor(OnAutoGod, 254, 13, 13) BarraAutoGod = guiCreateLabel(166, 238, 21, 16, "/", false, window) OffAutoGod = guiCreateLabel(170, 238, 21, 16, "Off", false, window) OnAutoInvisible = guiCreateLabel(112, 263, 21, 16, "On", false, window) guiLabelSetColor(OnAutoInvisible, 254, 13, 13) BarraInvisible = guiCreateLabel(0.21, 0.65, 0.03, 0.04, "/", true, window) OffAutoInvisible = guiCreateLabel(135, 263, 21, 16, "Off", false, window) PackArmas2 = guiCreateButton(191, 371, 82, 24, "Pack Armas 2", false, window) guiSetProperty(PackArmas2, "NormalTextColour", "FFD73030") vehiculos = { {411}, --{"nombreDeSkin", ID} } Horns = guiCreateGridList(10, (260 - 191) / 2, 104, 191, false) usar = guiCreateButton(267 - 100 - 10, (260 - 70) / 2, 100, 70, "Usar", false, window2) cerrar = guiCreateButton(128, 157, 85, 34, "Cerrar", false) guiSetFont(usar, "sa-header") guiGridListAddColumn(Horns, "Autos Vip", 0.9) for i,v in ipairs (vehiculos) do local vehicle = getVehicleNameFromID(v[1]) local row = guiGridListAddRow (Horns) guiGridListSetItemText (Horns, row, 1, vehicle, false, true) end local player = getLocalPlayer() addEventHandler("onClientGUIClick", root, function() if source == usar then local vehRow, column = guiGridListGetItemText (Horns, guiGridListGetSelectedItem (Horns), 2) if ( vehRow ~= 0 and column ~= 0 ) then triggerServerEvent("onPlayerRequestVehicleVIP", player, vehRow) --outputChatBox( row ) end end end) skins = { {"Skin1", 256}, {"Skin2", 230}, --{"nombreDeSkin", ID} } Horns = guiCreateGridList(10, (260 - 191) / 2, 104, 191, false) usar = guiCreateButton(267 - 100 - 10, (260 - 70) / 2, 100, 70, "Usar", false) cerrar = guiCreateButton(128, 157, 85, 34, "Cerrar", false) guiSetFont(usar, "sa-header") guiGridListAddColumn(Horns, "Skins Vip", 0.9) guiGridListAddColumn(Horns, "ID", 0.5) for i,v in ipairs (skins) do local skinIDs, idModel = v[1], v[2] local row = guiGridListAddRow (Horns) guiGridListSetItemText (Horns, row, 1, skinIDs, false, true) guiGridListSetItemText (Horns, row, 2, idModel, false, true) end local player = getLocalPlayer() addEventHandler("onClientGUIClick", root, function() if source == usar then local skinRow, column = guiGridListGetItemText (Horns, guiGridListGetSelectedItem (Horns), 2) if ( skinRow ~= 0 and column ~= 0 ) then triggerServerEvent("skin1", player, skinRow) --outputChatBox( row ) end end end ) function quit() showCursor (true) guiSetVisible (usar, false) guiSetVisible(Horns, false) guiSetVisible(cerrar, false) end addEventHandler ("onClientGUIClick", cerrar, quit, false) guiSetVisible(Horns, false) guiSetVisible(usar, false) guiSetVisible(cerrar, false) function clicks() if (source == SkinsVip) then guiSetVisible(Horns, true) guiSetVisible(usar, true) guiSetVisible(cerrar, true) elseif (source == AutosVip) then guiSetVisible(Horns, true) guiSetVisible(usar, true) guiSetVisible(cerrar, true) end end addEventHandler("onClientGUIClick", root, clicks) --------------------------------------------------- function Habilidades() showCursor(true) triggerServerEvent("HabilidadesFuncion", getLocalPlayer() ) end addEventHandler("onClientGUIClick",HabilidadDeArmas, Habilidades ) function Vida1() showCursor(true) triggerServerEvent("VidaFuncion", getLocalPlayer() ) end addEventHandler("onClientGUIClick",Vida200, Vida1, false ) function Chaleco1 () showCursor (true) triggerServerEvent ( "ChalecoFuncion", getLocalPlayer() ) end addEventHandler("onClientGUIClick",Chaleco, Chaleco1, false ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BaseVip) then local player = getLocalPlayer() setElementPosition (player , 1707.45435, -2398.20752, 13.55469 ) end end ) function isInvisable() if getElementAlpha(localPlayer) == 0 then guiCheckBoxSetSelected(CheckInvisible) else guiCheckBoxSetSelected(CheckInvisible, false) end end addEventHandler("onClientResourceStart", localPlayer, isInvisable) function invisable() if guiCheckBoxGetSelected(CheckInvisible) == true then triggerServerEvent("noalpha", getRootElement(), localPlayer) else triggerServerEvent("noalpha1", getRootElement(), localPlayer) end
-
Si, Pero cuando le cambio el evento Ya no puedo cerrar la gridlist, Tengo que crear otra gridlist para lo de los autos?
-
client: vehiculos = { --Precio {"402"}, } Horns = guiCreateGridList(10, (260 - 191) / 2, 104, 191, false) usar = guiCreateButton(267 - 100 - 10, (260 - 70) / 2, 100, 70, "Usar", false) cerrar = guiCreateButton(128, 157, 85, 34, "Cerrar", false) guiSetFont(usar, "sa-header") guiGridListAddColumn(Horns, "Autos Vip", 0.9) for i,v in ipairs (vehiculos) do local row = guiGridListAddRow (Horns) guiGridListSetItemText (Horns, row, 1, Autos, false, true) end local player = getLocalPlayer() addEventHandler("onClientGUIClick", root, function() if source == usar then local skinRow, column = guiGridListGetItemText (Horns, guiGridListGetSelectedItem (Horns), 2) if ( skinRow ~= 0 and column ~= 0 ) then triggerServerEvent("skin1", player, skinRow) --outputChatBox( row ) end end end ) server addEvent("skin1", true) addEventHandler("skin1", root, function( skin ) if ( skin ) then createVehicle( source, tonumber(skin) ); return true; end end) asi fue como lo intente pero no sirve...
-
No me sale ningun error, solo que el auto no spawnea pero no se si lo estaba haciendo bien por que no entendi muy bien lo que dijeron , también que la ventana de los autos aparece al iniciar el script
-
Enargy, Podrias darme el codigo de como hacerlo? por que intente y no me salio la verdad no entendi...
-
Esta bien, luego lo pruebo (cuando este en la pc ) y te digo si hay un error.
-
Y si le quiero quitar el precio para que puedan elegirlo sin pagar e_a , tendría que hacerlo así? vehiculos = { --Precio {"Infernus"}, {"Turismo"}, {"Comet"}, Si no es asi me podrian decir como hacer para que puedan elegir el Vehiculo sin pagar? Gracias.
-
Tienes razón... ¿Para los autos sería igual? ¿O hay que hacerlo de diferente manera?
-
Gracias... Ya me sirvió pero como hago para ponerle mas skins para elegir ? por que cuando intento poner otro se quita el que habia puesto antes y se pone el nuevo
-
Si, ya pude hacer eso pero como le agrego algo a la gridlist? Yo intente asi me sale la gridlist cuando le doy click al boton pero no se me pone nada en la gridlist mira: Horns = guiCreateGridList(10, (260 - 191) / 2, 104, 191, false, window2) usar = guiCreateButton(267 - 100 - 10, (260 - 70) / 2, 100, 70, "Usar", false, window2) guiSetFont(usar, "sa-header") local rowx rowx = guiGridListAddRow(Horns) guiGridListSetItemText(Horns, 1, "Skin1", false, false) guiGridListAddColumn(Horns, "Skins Vip", 0.9) guiGridListAddRow(Horns) guiSetFont(usar, "sa-header") local player = getLocalPlayer() addEventHandler("onClientGUIClick", usar, function() local row, column = guiGridListGetSelectedItem(Horns) if row == 0 then triggerServerEvent("skin1", player, 1) end end,false) guiSetVisible(Horns, false) guiSetVisible(window2, false) function clicks() if (source == SkinsVip) then guiSetVisible(Horns, true) guiSetVisible(window2, true) end end addEventHandler("onClientGUIClick", root, clicks)
-
Lo de las resoluciones creo que ya se como hacerlo pero necesito ayuda con los botones...
-
Blue, pero como hago para que al darle click a ''skins vip'' salga esa gridlist? aqui está el codigo: function centerWindow (center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) /2,(screenH - windowH) /2 guiSetPosition(center_window, x, y, false) end function centerWindow1 (center_window1) local screenW1, screenH1 = guiGetScreenSize() local windowW1, windowH1 = guiGetSize(center_window1, false) local x1, y1 = (screenW1- windowW1) /2,(screenH1 - windowH1) /6 guiSetPosition(center_window1, x1, y1, false) end function centerWindow2 (center_window2) local screenW2, screenH2 = guiGetScreenSize() local windowW2, windowH2 = guiGetSize(center_window2, false) local x2, y2 = (screenW2- windowW2) /2,(screenH2 - windowH2) /2.5 guiSetPosition(center_window2, x2, y2, false) end local xp, yp = guiGetScreenSize() local ypf = (yp - 157) /2 local mix, miy = 1366, 768 window = guiCreateWindow(103, 99, 618, 404, "Panel V.I.P", false) guiWindowSetSizable(window, false) guiSetProperty(window, "CaptionColour", "FF0BFD3E") centerWindow(window) memoVIP = guiCreateMemo(9, 25, 599, 100, "Hola!!, Bienvenido al panel vip, aqui podras hacer varias cosas que un jugador Normal no podria hacer, Habrá teleports para los V.I.P por ahora Solo Esta La Base Vip, Si tienes una sugerencia o vez algun bug sobre el panel No dudes en decirmelo nick: Raiden, Tambien Si quieres otros Teleports Solo Preguntame si lo puedo hacer... Bueno, ya terminando Lo ultimo Es un Panel Warp que se utiliza Poniendo /warp Gracias.!!", false, window) guiMemoSetReadOnly( memoVIP, true ) Jugador = guiCreateLabel(19, 145, 61, 19, "Jugador:", false, window) JetPack = guiCreateLabel(19, 168, 61, 19, "JetPack:", false, window) guiLabelSetColor(JetPack, 8, 108, 245) Invisible = guiCreateLabel(19, 192, 49, 14, "Invisible:", false, window) guiLabelSetColor(Invisible, 114, 138, 134) Velocidadx3 = guiCreateLabel(19, 216, 76, 14, "Velocidad x3:", false, window) guiLabelSetColor(Velocidadx3, 247, 227, 4) AutoIndestructible = guiCreateLabel(19, 240, 110, 14, "Auto Indestructible:", false, window) guiLabelSetColor(AutoIndestructible, 250, 0, 0) AutoInvisible = guiCreateLabel(19, 264, 76, 16, "Auto Invisible:", false, window) guiLabelSetColor(AutoInvisible, 7, 242, 35) ItemsVip = guiCreateLabel(241, 308, 61, 19, "Items Vip", false, window) guiSetFont(ItemsVip, "clear-normal") SkinsVip = guiCreateButton(27, 337, 72, 24, "Skins Vip", false, window) guiSetProperty(SkinsVip, "NormalTextColour", "FF07F223") AutosVip = guiCreateButton(109, 337, 72, 24, "Autos Vip", false, window) guiSetProperty(AutosVip, "NormalTextColour", "FFF1B705") Vida200 = guiCreateButton(27, 370, 72, 24, "Vida 200%", false, window) guiSetProperty(Vida200, "NormalTextColour", "FFF80000") Chaleco = guiCreateButton(109, 374, 72, 20, "Chaleco", false, window) guiSetProperty(Chaleco, "NormalTextColour", "FF03F4CF") PackArmas1 = guiCreateButton(191, 337, 82, 24, "Pack Armas 1", false, window) guiSetProperty(PackArmas1, "NormalTextColour", "FFE403F2") HabilidadDeArmas = guiCreateButton(283, 337, 82, 57, "Todas las Habilidades De Armas", false, window) guiSetProperty(HabilidadDeArmas, "NormalTextColour", "FFE36C14") Teleports = guiCreateLabel(355, 135, 61, 19, "Teleports", false, window) guiSetFont(Teleports, "clear-normal") BaseVip = guiCreateButton(350, 164, 66, 24, "Base Vip ", false, window) guiSetProperty(BaseVip, "NormalTextColour", "FF07F223") MasTeleports = guiCreateButton(432, 164, 141, 24, "Pronto mas teleports ", false, window) guiSetProperty(MasTeleports, "NormalTextColour", "FFFFFFFF") guiSetVisible(window, false) CheckJetPack = guiCreateCheckBox(68, 171, 15, 15, "", false, false, window) CheckInvisible = guiCreateCheckBox(65, 192, 15, 15, "", true, false, window) CheckVelocidadx3 = guiCreateCheckBox(95, 215, 15, 15, "", false, false, window) CheckAutoGod = guiCreateCheckBox(129, 240, 15, 15, "", true, false, window) CheckAutoInvisible = guiCreateCheckBox(95, 264, 15, 15, "", false, false, window) OnJetPack = guiCreateLabel(84, 170, 21, 16, "On", false, window) guiLabelSetColor(OnJetPack, 254, 13, 13) BarraJetPack = guiCreateLabel(100, 170, 21, 16, "/", false, window) OffJetPack = guiCreateLabel(105, 170, 21, 16, "Off", false, window) OnInvisible = guiCreateLabel(83, 191, 21, 16, "On", false, window) guiLabelSetColor(OnInvisible, 254, 13, 13) BarraInvisible = guiCreateLabel(100, 190, 21, 16, "/", false, window) OffJetPack = guiCreateLabel(105, 191, 21, 16, "Off", false, window) OnVelocidadx3 = guiCreateLabel(114, 214, 21, 16, "On", false, window) guiLabelSetColor(OnVelocidadx3, 254, 13, 13) BarraVelocidadx3 = guiCreateLabel(133, 214, 21, 16, "/", false, window) OffJetPack = guiCreateLabel(139, 214, 21, 16, "Off", false, window) OnAutoGod = guiCreateLabel(145, 238, 21, 16, "On", false, window) guiLabelSetColor(OnAutoGod, 254, 13, 13) BarraAutoGod = guiCreateLabel(166, 238, 21, 16, "/", false, window) OffAutoGod = guiCreateLabel(170, 238, 21, 16, "Off", false, window) OnAutoInvisible = guiCreateLabel(112, 263, 21, 16, "On", false, window) guiLabelSetColor(OnAutoInvisible, 254, 13, 13) BarraInvisible = guiCreateLabel(0.21, 0.65, 0.03, 0.04, "/", true, window) OffAutoInvisible = guiCreateLabel(135, 263, 21, 16, "Off", false, window) PackArmas2 = guiCreateButton(191, 371, 82, 24, "Pack Armas 2", false, window) guiSetProperty(PackArmas2, "NormalTextColour", "FFD73030") function Habilidades() showCursor(true) triggerServerEvent("HabilidadesFuncion", getLocalPlayer() ) end addEventHandler("onClientGUIClick",HabilidadDeArmas, Habilidades ) function Vida1() showCursor(true) triggerServerEvent("VidaFuncion", getLocalPlayer() ) end addEventHandler("onClientGUIClick",Vida200, Vida1, false ) function Chaleco1 () showCursor (true) triggerServerEvent ( "ChalecoFuncion", getLocalPlayer() ) end addEventHandler("onClientGUIClick",Chaleco, Chaleco1, false ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == BaseVip) then local player = getLocalPlayer() setElementPosition (player , 1707.45435, -2398.20752, 13.55469 ) end end ) function isInvisable() if getElementAlpha(localPlayer) == 0 then guiCheckBoxSetSelected(CheckInvisible) else guiCheckBoxSetSelected(CheckInvisible, false) end end addEventHandler("onClientResourceStart", localPlayer, isInvisable) function invisable() if guiCheckBoxGetSelected(CheckInvisible) == true then triggerServerEvent("noalpha", getRootElement(), localPlayer) else triggerServerEvent("noalpha1", getRootElement(), localPlayer) end end addEventHandler("onClientGUIClick", CheckInvisible, invisable, false) function carDamage() if isPedInVehicle(localPlayer) == true then if guiCheckBoxGetSelected(CheckAutoGod) == true then triggerServerEvent("cardamage", getRootElement(), localPlayer) else triggerServerEvent("nodamage", getRootElement(), localPlayer) end else guiCheckBoxSetSelected(CheckAutoGod, false) end end addEventHandler("onClientGUIClick", CheckAutoGod, carDamage, false) function inviscar() if isPedInVehicle(localPlayer) == true then if guiCheckBoxGetSelected(CheckAutoInvisible) == true then triggerServerEvent("nocaralpha", getRootElement(), localPlayer) else triggerServerEvent("nocaralpha1", getRootElement(), localPlayer) end else guiCheckBoxSetSelected(CheckAutoInvisible, false) end end addEventHandler("onClientGUIClick", CheckAutoInvisible, inviscar, false) function velo() local selected = guiCheckBoxGetSelected(CheckVelocidadx3) if selected then setGameSpeed(3) elseif not selected then setGameSpeed(1) end end addEventHandler("onClientGUIClick", CheckVelocidadx3, velo, false) function JetPack() if guiCheckBoxGetSelected(CheckJetPack) == true then triggerServerEvent("jetpack", getRootElement(), localPlayer) else triggerServerEvent("jetpack1", getRootElement(), localPlayer) end end addEventHandler("onClientGUIClick", CheckJetPack, JetPack, false) function show_gui() if guiGetVisible(window) == false then guiSetVisible(CheckInvisible, true) guiSetVisible(CheckJetPack, true) guiSetVisible(CheckVelocidadx3, true) guiSetVisible(CheckAutoInvisible, true) guiSetVisible(CheckAutoGod, true) end end function openabout() guiSetVisible(CheckInvisible, false) guiSetVisible(CheckJetPack, false) guiSetVisible(CheckVelocidadx3, false) guiSetVisible(CheckAutoInvisible, false) guiSetVisible(CheckAutoGod, false) end addEventHandler("onClientGUIClick", getRootElement(), openabout, false) function closeabout() guiSetVisible(CheckInvisible, true) guiSetVisible(CheckJetPack, true) guiSetVisible(CheckVelocidadx3, true) guiSetVisible(CheckAutoInvisible, true) guiSetVisible(CheckAutoGod, true) end addEventHandler("onClientGUIClick", getRootElement(), closeabout, false) function guiackapa() if guiGetVisible(window) then guiSetVisible(window, false) showCursor(false) local sound = playSound("Arquivos/open.wav") setSoundVolume(sound, 8.5) else guiSetVisible(window, true) showCursor(true) local sound = playSound("Arquivos/open.wav") setSoundVolume(sound, 8.5) end end addEvent("ShowGUI", true) addEventHandler("ShowGUI", getRootElement(), guiackapa) function Pack1() triggerServerEvent("pack1", getRootElement(),localPlayer) end addEventHandler("onClientGUIClick", PackArmas1,Pack1, false) function Pack2() triggerServerEvent("pack2", getRootElement(),localPlayer) end addEventHandler("onClientGUIClick", PackArmas2,Pack2, false)
-
Hola, Necesito ayuda de nuevo , Pueden decirme como hacer que al precionar los botones ''Skins Vip'' Y ''Autos Vip'' Se abra una venta así como la del freeroam, y y poder añadir los skins y autos que quiero, Otra cosa es ¿Cómo puedo hacer que el panel Se abra en el centro de la pantalla En todas las resoluciones? Quiero que el panel quede igual solo que aparezca en todas las resoluciones, bueno solo eso , espero me entiendan...
-
También Me pasa Cuando Le pongo un texto o color, Espera, Creo que ya entendí Lo que me querias decir, Gracias.^^
