Leaderboard
Popular Content
Showing content with the highest reputation on 27/12/17 in all areas
-
New service to help promote your server For 12 euros, you can buy a top 20 position in the MTA server browser for 20 days. Ideal for getting your amazing gamemode seen by more players. See here for details: https://www.multitheftauto.com/toplist/ All proceeds are used to support development and the upkeep of MTA services; by helping yourself, you're also helping out MTA by donating.1 point
-
تم الحمد لله انشاء منتدى عرب كوم والسكربت مفاجأة بدون كلام كثير الرابط http://host-game-osman.esy.es/forum/1 point
-
1 point
-
Prueba esto GUIEditor = { button = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function () VipDiamante = guiCreateWindow(355, 197, 713, 464, "PANEL VIP DIAMANTE", false) guiWindowSetSizable(VipDiamante, false) guiSetProperty(VipDiamante, "CaptionColour", "FF01FDF4") guiSetVisible( VipDiamante, false ) informacion = guiCreateMemo(20, 29, 329, 141, "* Gracias por la compra de tu VIP DIAMANTE.\n\n* Evita no abusar del panel.\n\n* Disfrutalo.\n\n- COMANDOS:\n/parlante : Radio VIP.\n/volar : Activas el modo de vuelo en auto.\n/tp : teletransportarse a un jugador.\n/salto : Super Salto.\n/bici : Super Salto en bicicleta.\n/municion : Municion infinita.", false, VipDiamante) logo = guiCreateStaticImage(368, 29, 336, 141, "img/diamante.png", false, VipDiamante) Cabeza = guiCreateButton(15, 202, 89, 27, "Cabeza", false, VipDiamante) guiSetFont(Cabeza, "default-bold-small") guiSetProperty(Cabeza, "NormalTextColour", "FF9A9F94") Jetpack = guiCreateButton(131, 202, 89, 27, "Jetpack", false, VipDiamante) guiSetFont(Jetpack, "default-bold-small") guiSetProperty(Jetpack, "NormalTextColour", "FF9A9F94") Invisible = guiCreateButton(368, 202, 89, 27, "Invisible", false, VipDiamante) guiSetFont(Invisible, "default-bold-small") guiSetProperty(Invisible, "NormalTextColour", "FF9A9F94") AutoInvisible = guiCreateButton(246, 202, 89, 27, "Auto Invisible", false, VipDiamante) guiSetFont(AutoInvisible, "default-bold-small") guiSetProperty(AutoInvisible, "NormalTextColour", "FF9A9F94") Reparar = guiCreateButton(494, 202, 89, 27, "Reparar", false, VipDiamante) guiSetFont(Reparar, "default-bold-small") guiSetProperty(Reparar, "NormalTextColour", "FF9A9F94") Fuego = guiCreateButton(611, 202, 89, 27, "Fuego", false, VipDiamante) guiSetFont(Fuego, "default-bold-small") guiSetProperty(Fuego, "NormalTextColour", "FF9A9F94") Paracaidas = guiCreateButton(15, 252, 89, 27, "Paracaidas", false, VipDiamante) guiSetFont(Paracaidas, "default-bold-small") guiSetProperty(Paracaidas, "NormalTextColour", "FF9A9F94") Velocidad = guiCreateButton(131, 252, 89, 27, "Velocidad 3x", false, VipDiamante) guiSetFont(Velocidad, "default-bold-small") guiSetProperty(Velocidad, "NormalTextColour", "FF9A9F94") PistolaDual = guiCreateButton(131, 301, 89, 27, "Pistola Doble", false, VipDiamante) guiSetFont(PistolaDual, "default-bold-small") guiSetProperty(PistolaDual, "NormalTextColour", "FF9A9F94") DualUzi = guiCreateButton(250, 301, 89, 26, "Uzi Doble", false, VipDiamante) guiSetFont(DualUzi, "default-bold-small") guiSetProperty(DualUzi, "NormalTextColour", "FF9A9F94") SawOffDual = guiCreateButton(368, 301, 95, 27, "Sawn-Off Doble", false, VipDiamante) guiSetFont(SawOffDual, "default-bold-small") guiSetProperty(SawOffDual, "NormalTextColour", "FF9A9F94") VisionNocturna = guiCreateButton(614, 252, 89, 27, "Vision Nocturna", false, VipDiamante) guiSetFont(VisionNocturna, "default-bold-small") guiSetProperty(VisionNocturna, "NormalTextColour", "FF9A9F94") VisionRoja = guiCreateButton(15, 301, 89, 27, "Vision Termica", false, VipDiamante) guiSetFont(VisionRoja, "default-bold-small") guiSetProperty(VisionRoja, "NormalTextColour", "FF9A9F94") Chaleco = guiCreateButton(251, 251, 89, 27, "Chaleco", false, VipDiamante) guiSetFont(Chaleco, "default-bold-small") guiSetProperty(Chaleco, "NormalTextColour", "FF9A9F94") Vida100 = guiCreateButton(368, 251, 89, 27, "Vida 100%", false, VipDiamante) guiSetFont(Vida100, "default-bold-small") guiSetProperty(Vida100, "NormalTextColour", "FF9A9F94") Vida200 = guiCreateButton(494, 251, 89, 27, "Vida 200%", false, VipDiamante) guiSetFont(Vida200, "default-bold-small") guiSetProperty(Vida200, "NormalTextColour", "FF9A9F94") PeleaNormal = guiCreateButton(494, 301, 99, 31, "Estilo de pelea Standard", false, VipDiamante) guiSetFont(PeleaNormal, "default-bold-small") guiSetProperty(PeleaNormal, "NormalTextColour", "FF9A9F94") EstiloBoxeo = guiCreateButton(611, 301, 92, 31, "Estilo de pelea Boxing", false, VipDiamante) guiSetFont(EstiloBoxeo, "default-bold-small") guiSetProperty(EstiloBoxeo, "NormalTextColour", "FF9A9F94") EstiloKungFu = guiCreateButton(15, 350, 93, 31, "Estilo de pelea Kung Fu", false, VipDiamante) guiSetFont(EstiloKungFu, "default-bold-small") guiSetProperty(EstiloKungFu, "NormalTextColour", "FF9A9F94") EstiloKneeHead = guiCreateButton(130, 350, 90, 31, "Estilo de pelea Knee Head", false, VipDiamante) guiSetFont(EstiloKneeHead, "default-bold-small") guiSetProperty(EstiloKneeHead, "NormalTextColour", "FF9A9F94") EatiloGrabKick = guiCreateButton(251, 350, 89, 31, "Estilo de pelea Grab Kick", false, VipDiamante) guiSetFont(EatiloGrabKick, "default-bold-small") guiSetProperty(EatiloGrabKick, "NormalTextColour", "FF9A9F94") Sniper = guiCreateButton(369, 350, 84, 31, "Obtener Sniper Pro", false, VipDiamante) guiSetFont(Sniper, "default-bold-small") guiSetProperty(Sniper, "NormalTextColour", "FF9A9F94") skin1 = guiCreateButton(498, 350, 89, 31, "Skin VIP 1", false, VipDiamante) guiSetFont(skin1, "default-bold-small") guiSetProperty(skin1, "NormalTextColour", "FF9A9F94") skin2 = guiCreateButton(614, 350, 89, 31, "Skin VIP 2", false, VipDiamante) guiSetFont(skin2, "default-bold-small") guiSetProperty(skin2, "NormalTextColour", "FF9A9F94") Cerrar = guiCreateButton(621, 421, 80, 29, "Cerrar", false, VipDiamante) guiSetFont(Cerrar, "clear-normal") guiSetProperty(Cerrar, "NormalTextColour", "FF9A9F94") GUIEditor.edit[1] = guiCreateEdit(362, -698, 15, 15, "", false, VipDiamante) addEventHandler( "onClientGUIClick", Sniper, Sniperr, false ) addEventHandler( "onClientGUIClick", Cerrar, Salir, false ) addEventHandler( "onClientGUIClick", PistolaDual, pistola, false ) addEventHandler( "onClientGUIClick", DualUzi, uzi, false ) addEventHandler( "onClientGUIClick", SawOffDual, escopeta, false ) addEventHandler( "onClientGUIClick", Cabeza, Cabeza1, false ) addEventHandler( "onClientGUIClick", Jetpack, VIPJetpack, false ) addEventHandler( "onClientGUIClick", AutoInvisible, Carro, false ) addEventHandler( "onClientGUIClick", Invisible, Invi1, false ) addEventHandler( "onClientGUIClick", Reparar, Repair, false ) addEventHandler( "onClientGUIClick", Fuego, Fire, false ) addEventHandler( "onClientGUIClick", Paracaidas, Parachute, false ) addEventHandler( "onClientGUIClick", Velocidad, maxpayne, false ) addEventHandler( "onClientGUIClick", Chaleco, armor, false ) addEventHandler( "onClientGUIClick", Vida100, Life, false ) addEventHandler( "onClientGUIClick", Vida200, Life200, false ) addEventHandler( "onClientGUIClick", VisionNocturna, Nocturna, false ) addEventHandler( "onClientGUIClick", VisionRoja, Nocturna2, false ) addEventHandler( "onClientGUIClick", PeleaNormal, Pelea, false ) addEventHandler( "onClientGUIClick", EstiloBoxeo, Pelea2, false ) addEventHandler( "onClientGUIClick", EstiloKungFu, Pelea3, false ) addEventHandler( "onClientGUIClick", EstiloKneeHead, Pelea4, false ) addEventHandler( "onClientGUIClick", EatiloGrabKick, Pelea5, false ) addEventHandler( "onClientGUIClick", skin1, skinn, false ) addEventHandler( "onClientGUIClick", skin2, skinnn, false ) end ) bindKey("o", "down", function() guiSetVisible( VipDiamante, not guiGetVisible( VipDiamante ) ) showCursor( not isCursorShowing() ) end ) ---------------------------------------------------- function Sniperr () showCursor(true) triggerServerEvent ( "onGreeting", localPlayer) end ----------------------------------------------------------------- function Salir () showCursor(false) guiSetVisible (VipDiamante, not guiGetVisible ( VipDiamante ) ) end --------------------------------------------------------------------- function pistola () showCursor(true) triggerServerEvent ( "onGreetinPistola", localPlayer) end ---------------------------------------------------------------------- function uzi () showCursor(true) triggerServerEvent ( "onGreetinUzi", localPlayer) end ---------------------------------------------------------------------- function escopeta () showCursor(true) triggerServerEvent ( "onGreetinEscopeta", localPlayer) end ---------------------------------------------------------------------- function Cabeza1 () showCursor(true) triggerServerEvent ( "onCabeza",localPlayer) end ---------------------------------------------------------------------- function VIPJetpack () showCursor(true) triggerServerEvent ( "onJetpack",localPlayer) end ---------------------------------------------------------------------- function Carro () showCursor(true) triggerServerEvent ( "onCarro",localPlayer) end ---------------------------------------------------------------------- function Invi1 () showCursor(true) triggerServerEvent ( "onInvisible",localPlayer) end ---------------------------------------------------------------------- function Repair () showCursor(true) triggerServerEvent ( "onReparar", localPlayer) end ---------------------------------------------------------------------- function Fire () showCursor(true) triggerServerEvent ( "onFuego", localPlayer) end ---------------------------------------------------------------------- function Parachute () showCursor(true) triggerServerEvent ( "onParacaidas", localPlayer) end ---------------------------------------------------------------------- function speed () showCursor(true) triggerClientEvent ( "onVelocidad", localPlayer) end ---------------------------------------------------------------------- function speed () showCursor(true) triggerServerEvent ( "onVelocidad", localPlayer) end ---------------------------------------------------------------------- function armor () showCursor(true) triggerServerEvent ( "onArmadura", localPlayer) end ---------------------------------------------------------------------- function Life () showCursor(true) triggerServerEvent ( "onVida", localPlayer) end ---------------------------------------------------------------------- function Life200 () showCursor(true) triggerServerEvent ( "onVida2", localPlayer) end ---------------------------------------------------------------------- function Nocturna () showCursor(true) triggerServerEvent ( "onVision", localPlayer) end ---------------------------------------------------------------------- function Nocturna2 () showCursor(true) triggerServerEvent ( "onVision2", localPlayer) end -------------------------------------------------------------------------------------------------------------------------------------------- function Pelea () showCursor(true) triggerServerEvent ( "onPelea1", localPlayer) end --------------------------------------------------------------------------------- function Pelea2 () showCursor(true) triggerServerEvent ( "onPelea2", localPlayer) end --------------------------------------------------------------------------------- function Pelea3 () showCursor(true) triggerServerEvent ( "onPelea3", localPlayer) end --------------------------------------------------------------------------------- function Pelea4 () showCursor(true) triggerServerEvent ( "onPelea4", localPlayer) end --------------------------------------------------------------------------------- function Pelea5 () showCursor(true) triggerServerEvent ( "onPelea5", localPlayer) end --------------------------------------------------------------------------------- function skinn () showCursor(true) triggerServerEvent ( "onSkin1", localPlayer) end --------------------------------------------------------------------------------- function skinnn () showCursor(true) triggerServerEvent ( "onSkin2", localPlayer) end -------------------------------------------------------------------------------- function maxpayne() if getGameSpeed() == 2.5 then setGameSpeed(1) outputChatBox("#00FFF7VIP DIAMANTE: #D5D8D8Tu velocidad a cambiado a Normal.", 255, 255, 255, true) else setGameSpeed(2.5) outputChatBox("#00FFF7VIP DIAMANTE: #D5D8D8Tu velocidad a cambiado a 3X.", 255, 255, 255, true) end triggerServerEvent ( "onVelocidad", localPlayer) end ----------------------------------------------------------------------1 point
-
It's the fact that I want to replace the dff model of the canopy itself, and I actually tried a shader to make the parachute disappear but failed, since I really don't know anything about shaders. As you can see sometimes it disappears and sometimes not. struct PSInput { float4 Diffuse : COLOR0; }; float4 PixelShaderFunction( PSInput PS ) : COLOR0 { float4 color = PS.Diffuse; color.a = 0; return color; } technique { pass p0 { AlphaBlendEnable = TRUE; DestBlend = INVSRCALPHA; SrcBlend = SRCALPHA; PixelShader = compile ps_2_0 PixelShaderFunction(); } }1 point
-
"1" is a string, tonumber converts it to a numeric value which is used in giveWeapon's argument for example.1 point
-
Idk. I even replaced the default .TXD with a transparent .PNG and it won't disappear it just goes white. So long story short, I think the actual parachute canopy ID is 3060 but it doesn't work when replacing. And the parachute backpack is ID 371. I was gonna suggest turning the default parachute transparent and using AttachElements but, since it remains white you're out of luck. You can currently change the shaders of the default canopy and that's it. If I'm not mistaken, the guy in the video has CLEO mod installed. paracx.txd Maybe the .DFF is named something weird, but I couldn't find anything, idk man. Since shaders allow you to change them according to names instead of ID's, as far as I know this is all you've got.1 point
-
In order to poll the password you have to do it this way: SERV_LAUNCH_PW = exports.db:sqlQuery("SELECT server_launch_pw FROM server_vars") local result = dbPoll (SERV_LAUNCH_PW, -1) if #result > 0 then local password = SERV_LAUNCH_PW[1].server_launch_pw; outputChatBox(password) end for the dbPoll, you can try this: -- use the database connection variable in (connection). function _Query (...) if connection then local queryS = dbQuery(connection, ... ) local result = dbPoll(queryS,-1) return result else return false end end -- Usage: local SERV_LAUNCH_PW = _Query ('SELECT server_launch_pw FROM server_vars') if ( #SERV_LAUNCH_PW > 0 ) then local password = SERV_LAUNCH_PW[1].server_launch_pw; outputChatBox(password) end1 point
-
1 point
-
1 point
-
https://wiki.multitheftauto.com/wiki/SetPedStat Do you mean that? Not sure if its possible to activate that big bmx jump cheat in MTA somehow.1 point
-
En primer lugar, engineImportTXD, engineReplaceModel, engineLoadTXD, engineLoadDFF son funciones propias de client side(solo pueden ser usadas en client side, no en server), segundo, es mejor que uses attachElements en vez de attachElementToElement, ya que esta ultima como dice la wiki está deprecated(obsoleta). Y por último lo que tienes son errores en cuanto al código. Prueba esto y mira si te funciona: CLIENT function mapLoad ( name ) local txdCortinas1518 = engineLoadTXD( "objetos/cortinas/vehicle.txd" ) local dffCortinas1518 = engineLoadDFF( "objetos/cortinas/spl_b_mar_m.dff", 0 ) engineImportTXD( txdCortinas1518, 1000 ) engineReplaceModel( dffCortinas1518, 1000 ) end addEventHandler ( "onClientResourceStart", resourceRoot, mapLoad ) addEventHandler("onClientGUIClick", guiRoot, --VENTANA2 = CORTINAS > Completas > Turquesas function() local getGui = guiGetVisible(Ventana2) if source == Boton9A then triggerServerEvent("PonerCortina", localPlayer, localPlayer) end end ) SERVER function Cortina1(player) local vehicle = getPedOccupiedVehicle( player ) if ( vehicle ) then local object = createObject( 1000, 0, 0, 0 ) attachElements( object, vehicle, 0, 0, 1, 0, 0, -90 ) end end addEvent("PonerCortina", true) addEventHandler("PonerCortina", root, Cortina1)0 points