-
Posts
1,102 -
Joined
Everything posted by Enargy,
-
El traffic script es muy viejo, no creo que sea buena idea usarlo.
-
You could use setVehicleColor, selecting vehicle color from getVehicleColor and then use required arguments to change lights color.
-
Thank you for tutorial, I have learned more about strings
-
Pue si funciona pues obviamente lo usas.
-
try this: local state = true bindKey( 'F3', 'down', function( ) if state then engineRestoreModel (3458); outputChatBox( '#ffcc00[MSG]: #c0c0c0Road texture disabled!', 255,255,255,true ); state = false; else dff = engineLoadDFF("vgncarshade1.dff", 3458); -- dff file. engineReplaceModel(dff, 3458); txd = engineLoadTXD( 'vgncarshade1.txd', 3458 ); engineImportTXD( txd, 3458 ); state = true; outputChatBox( '#ffcc00[MSG]: #c0c0c0Road texture enabled!', 255,255,255,true ); end end )
-
No me habia dado cuenta , gracias. Ahora cuando probé el script pues no checa el marcador especifico, en cualquiera que entres se ejecuta la función :l probé con el source como decía tu código Tomas, y no ocurre nada.
-
destroyElement not work with that. replace engineRestoreModel instead.
-
[AYUDA] MTA no lee skins modificados
Enargy, replied to aka Blue's topic in Ayuda relacionada al cliente/servidor
Trata de reemplazarlos de nuevo. -
Replacing their collisions.
-
local entro = createMarker ( 559.48969 + 2,-1262.79260 + 2, 16, "cylinder", 1.5, 255, 0, 0, 170) local entro = createMarker ( 2132.33447 + 2,-1140.62585 + 2, 24.3, "cylinder", 1.5, 255, 0, 0, 170) local entro = createMarker ( -1638.22449 + 2,1204.40271 + 2, 6.2, "cylinder", 1.5, 255, 0, 0, 170) local entro = createMarker ( -1958.16150 + 2,287.20938 + 2, 34.5, "cylinder", 1.5, 255, 0, 0, 170) local myBlip = createBlip( 559.48969, -1262.79260, 16, 55, 0, 0, 0, 255, 300 ) local myBlip = createBlip( 2132.33447, -1140.62585, 25.21735, 55, 0, 0, 0, 255, 10 ) local myBlip = createBlip( -1638.22449, 1204.40271, 7.17969, 55, 0, 0, 0, 255, 10 ) local myBlip = createBlip( -1958.16150, 287.20938, 35.46875, 55, 0, 0, 0, 255, 10 ) Esto esta mal porque al momento de identificar al marcador, solo el ultimo que añadiste será identificado y el resto no. Es mas fácil hacerlo por tablas. prueba con esto: local markers = {} local num = 0 cordinates = { -- EDIT: si quieres agregar mas markers pues haces el mismo procedimiento que hice debajo. {559.48969 + 2,-1262.79260 + 2, 16}, {2132.33447 + 2,-1140.62585 + 2, 24.3}, {-1638.22449 + 2,1204.40271 + 2, 6.2}, {-1958.16150 + 2,287.20938 + 2, 34.5} } for i, m in pairs(cordinates) do num = num + 1 markers[num] = createMarker(m[1], m[2], m[3], "cylinder", 1.5, 255, 0, 0, 170 ) createBlip(m[1], m[2], m[3], 55, 0, 0, 0, 255, 10 ) end function entro_al_marcador ( hitElement ) if markers[num] then triggerClientEvent(hitElement, "AbrirPanel", hitElement) outputChatBox("asd", hitElement) end end addEventHandler ( "onMarkerHit", root, entro_al_marcador )
-
Nice job buddy, i really like your works, specially whole GTW-RPG scripts.
-
Postea la parte del codigo serverside donde donde trabaja el sistema del chat.
-
Perfecto me funciono gracias, Pero ahora la pregunta del millon, porque i? si me dice que i es igual a 1, no ? es el indice que te otorga el for loops, lo que hiciste para definir todas las armas funciona igual para sus municiones.
-
Faster Killer Corrupted LOL
-
What did you meant about "one and multi" resources?.
-
Si quiero hacer que la vida del Boss aparesca en el dx que esta ahi pero no me sale :C Coloca esto al principio del script. local vidaboss = 0
-
dentro del mismo for loops, usas getPedTotalAmmo.
-
Nunca lo destruyó ._. if isElement(bossfinala) then destroyElement(bossfinala) end ??
-
function setPlayerAFK() local wanted = getPlayerWantedLevel(localPlayer) if isPedInVehicle(localPlayer) or wanted > 1 then return outputChatBox("Unable to go AFK!", 255, 0, 0) end if getElementData(localPlayer,"afk") == true then setElementFrozen(localPlayer, false) setElementData(localPlayer, "afk", false) setElementAlpha(localPlayer, 255) removeEventHandler("onClientRender", root, dxDraw) fadeCamera(true) else setElementFrozen(localPlayer, true) setElementData(localPlayer, "invincible", true) setElementAlpha(localPlayer, 100) fadeCamera(false) addEventHandler("onClientRender", root, dxDraw) setElementData(localPlayer, "afk", true) end end tickA = {} function toggleAFK() local one_min = 1000*60 -- one minute. if tickA[localPlayer] and tickA[localPlayer] + one_min > getTickCount() then return else tickA[localPlayer] = getTickCount() setPlayerAFK() end end addCommandHandler("afk", toggleAFK)
-
Fifty Independences Quicker BAD
-
No entiendo. quieres crear un bot y luego destruirlo al momento de crearlo ?
-
local cantidadWeapons = 5 for i=1, cantidadWeapons do local weap = getPedWeapon(localPlayer,i) if weap ~= getPedWeapon(localPlayer,0) then local row = guiGridListAddRow ( itemgrid ) guiGridListSetItemText ( itemgrid, row, 1, getWeaponNameFromID(weap), false, false ) end end
-
Es que olvidaste colocar la funcion [lua]function spawnOnLogin() spawnPlayer (source, 2170.20972, 1483.10522, 24.14063, 0, 0, 0, 0, nil) -- spawns player with random skin fadeCamera (source, true) setCameraTarget (source) end addEventHandler("onPlayerJoin", root, spawnOnLogin) [/lua]
-
Olvidaste function function() spawnPlayer (source, 2170.20972, 1483.10522, 24.14063, 0, 0, 0, 0, nil) -- spawns player with random skin fadeCamera (source, true) setCameraTarget (source, thePlayer) end addEventHandler("onPlayerJoin", root, spawnOnLogin)
