-
Posts
684 -
Joined
-
Last visited
Everything posted by EstrategiaGTA
-
Pues claro que no anda, la función 'Exit' no tiene ningún end. También has usado el evento 'onClientResourceStart' dos veces para la función 'guiapanel', y para la última función que no tiene nombre no le hiciste nada.
-
Ayuda server internet online
EstrategiaGTA replied to danieski's topic in Ayuda relacionada al cliente/servidor
Mira esto (está en inglés). Espera 24 horas y mira si ya se ve. -
Very nice!
-
And what's the problem?
-
function handlingChange() setModelHandling(423, "mass", 10000.0) setModelHandling(423, "turnMass", 50000.0) setModelHandling(423, "dragCoeff", 2.0) setModelHandling(423, "centerOfMass", { 0.0, 0.0, -0.6 } ) setModelHandling(423, "percentSubmerged", 80) setModelHandling(423, "tractionMultiplier", 0.70) setModelHandling(423, "tractionLoss", 0.9) setModelHandling(423, "tractionBias", 0.5) setModelHandling(423, "numberOfGears", 5) setModelHandling(423, "maxVelocity", 154.0) setModelHandling(423, "engineAcceleration", 35.0) setModelHandling(423, "engineInertia", 10.0) setModelHandling(423, "driveType", "awd") setModelHandling(423, "engineType", "petrol") setModelHandling(423, "brakeDeceleration", 11.0) setModelHandling(423, "brakeBias", 0.45) setModelHandling(423, "ABS", false) setModelHandling(423, "steeringLock", 30.0) setModelHandling(423, "suspensionForceLevel", 1.4) setModelHandling(423, "suspensionDamping", 0.10) setModelHandling(423, "suspensionHighSpeedDamping", 0.0) setModelHandling(423, "suspensionUpperLimit", 0.40) setModelHandling(423, "suspensionLowerLimit", -0.40) setModelHandling(423, "suspensionFrontRearBias", 0.5) setModelHandling(423, "suspensionAntiDiveMultiplier", 0.3) setModelHandling(423, "seatOffsetDistance", 0.20) setModelHandling(423, "collisionDamageMultiplier", 0.20) setModelHandling(423, "monetary", 35000) setModelHandling(423, "modelFlags", 0x40006800) setModelHandling(423, "handlingFlags", 0x1300005) setModelHandling(423, "headLight", 9) setModelHandling(423, "tailLight", 1) setModelHandling(423, "animGroup", 0) end setTimer ( handlingChange, 50, 0)
-
Use: if getPlayerMoney takePlayerMoney
-
Hello, try this. Client: addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(537, 244, 298, 234, "buy Health", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 154, 129, 70, "Buy Health\n($3.000)", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(159, 154, 129, 70, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(16, 25, 262, 115, "You can buy 200 health from here.\n\n200 HP costs $3.000", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 41, 255, 0) end ) function ff () triggerServerEvent ( "onHealth", localPlayer ) end addEventHandler ( "onClientGUIClick", GUIEditor.button[1], ff) addEvent("show",true) addEventHandler("show", localPlayer, function () if not guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end ) Server: addEvent ("onHealth", true) addEventHandler ("onHealth", getRootElement(), function() setPedStat(source, 24, 1000) setElementHealth ( source, 200 ) end ) themarker = createMarker ( 2024.6821289063, -1411.6774902344, 16.9921875, "cylinder", 2, 255, 0, 0 ) function lol ( ) triggerClientEvent("show", source) end addEventHandler("onMarkerHit", themarker, lol) I deleted the bindKey and put "onMarkerHit" event, because you said you want it like that. Try it.
-
Good map
-
Looks nice.
-
Postea el script.
-
Type /debugscript 3 in-game and tell us the errors which you got.
-
i really dont know how to script i dont know how to link server functions and client functions together and even if i learn i just can't do it cuz i am a noob but please can someone just make one? triggerClientEvent --or triggerServerEvent
-
Good map!
-
Habrá muchos MB de descarga en tu servidor, no te lo recomiendo.
-
getPedOccupiedVehicle setWorldSpecialPropertyEnabled
-
Puede ser que tengas la configuración de las teclas mal. Prueba lo que te dijeron Alexs y Ciber.
-
Modifícalo para que solo lo puedan abrir los Admins, usa: isObjectInACLGroup
-
setTrafficLightState
-
No hagas doble-post, usa el boton EDIT. ¿Lo que quieres es que si estás vigilando con Spectate a un usuario, no te eche del servidor?
-
No hagas doble-post, está el botón EDIT para editar tu post.
-
Eso no tiene sentido.
-
Como Hacer Que El Arresto De Mas Dinero Y Tiempo En Jail
EstrategiaGTA replied to ~P0W3R~'s topic in Scripting
¿Porqué no lo pruebas y nos dices? -
¿Para todos los jugadores? EDIT: Si es así, podrías usar: giveWeapon setTimer Sería server-side.
-
Nice
-
What does the /debugscript 3 say? @[sRN]xXMADEXx - It happens to me too.