-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Que te parece abrir el script de la scoreboard y buscar y editarlo?
-
De que "scores" estas hablando?
-
Para activar coches voladores y otras cosas usa esta funcion: https://wiki.multitheftauto.com/wiki/Set ... rtyEnabled No somos telepaticos, no podemos saber de que "Scores" hablas.
-
Para eso necesitas una funcion creada (no podes usar colores HEX en dxDrawText o ningun texto). Busca en el foro por una funcion llamada: dxDrawColorText (NO EN LA WIKI, LA CREO UN USUARIO ESTA).
-
You shouldn't post in Spanish in this forum, for that we have a multi lingual section (including Spanish). Spanish section: viewforum.php?f=122 About your question, I don't think there's one.
-
When you add the files to the meta.xml, they'll be downloaded, you can replace them only for some though.
-
No te entiendo, primero queres que lo quite, y ahora que lo agregue? no tiene sentido.
-
See? you changed my script, you didn't read how it worked. You must use the weapon OBJECT model ID's not the weapon model ID. You can find weapon OBJECT model in this link: https://wiki.multitheftauto.com/wiki/Weapons -- client.lua function load() txd = engineLoadTXD("gun.txd", 356 ) engineImportTXD(txd, 356) dff = engineLoadDFF("gun.dff", 0 ) -- IT HAS TO BE 0 IF NOT REPLACING A VEHICLE. engineReplaceModel(dff, 356) end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) -- meta.xml: type="script" version="1.0" author="tim"/>
-
Then why don't you use the Arabic language section? viewforum.php?f=119
-
I'm guessing you changed the weapon model, file name(s), right? Post your new script + meta.xml of it.
-
ABo.R3D, please don't use any other language than English in this forum, you can use the multi lingual forum for your own language. viewforum.php?f=117
-
Well, maybe you have a error in your resource or you expecified it wrong (the resource name, i.e the function name). Also check if it's started.
-
Well, then you should start learning, because what I can see is that you always get the code done, you never really make something by yourself.
-
Just wondering.. this iPhone.. what must have? because you can't just ask for an "iPhone" script because it has a lot of features, you should tell us what it must have.
-
local x, y = guiGetScreenSize () local localPlayer = getLocalPlayer() local spectatorSettings = { count = 7, -- how many player names to show, before showing "and x more" charLimit = 19, -- max limit of characters in player name xOffset = 200, -- how far to the left this should be yOffset = (y / 2) - 10, -- how far down the screen this should be ~ currently it is almost half way down alwaysShow = true -- whether to show anything if there aren't any players spectating you } local spectators = {} addEvent('addSpectator', true) addEvent('removeSpectator', true) addEventHandler('onClientResourceStart', root, function() triggerServerEvent ('addClient', localPlayer) end ) addEventHandler('addSpectator', root, function(spectator) table.insert(spectators, spectator) end ) addEventHandler('removeSpectator', root, function(spectator) for i, val in ipairs(spectators) do if (val == spectator) then table.remove(spectators, i) end end end ) function elementCheck (elem) if elem then if isElement (elem) then if (getElementType (elem) == 'player') then return true end end end return false end function drawSpectators() local textX = x - spectatorSettings.xOffset local textY = spectatorSettings.yOffset if (not isPlayerDead(localPlayer)) then local s_Spectators = 'Spectadores ['.. tostring(#spectators) ..']\n' if (#spectators > 0) then for i, v in ipairs(spectators) do if elementCheck (v) then local name = getPlayerName(v):gsub("#%x%x%x%x%x%x","") if (string.len(getPlayerName(v)) > spectatorSettings.charLimit) then name = string.sub(name, 0, spectatorSettings.charLimit)..'..' end if (i > spectatorSettings.count) then s_Spectators = s_Spectators..tostring(#spectators - spectatorSettings.count)..' more' break else s_Spectators = s_Spectators..name..'\n' end else table.remove (spectators, k) end end else if (spectatorSettings.alwaysShow) then s_Spectators = s_Spectators..'None' else s_Spectators = '/' end end dxDrawText (s_Spectators, textX, textY, x, y, tocolor(255, 255, 255, 255), 0.5, 'Bankgothic') dxDrawText (s_Spectators, textX, textY, x, y, tocolor(0, 0, 0, 0), 0.5, 'Bankgothic') --dxDrawText("Spectating [".. tostring(#spectators) .."]", 825, y-410, x, y, tocolor ( 255, 255, 255, 255 ), 0.5, "bankgothic" ) end end addEventHandler('onClientRender', root, drawSpectators) Intenta eso.
-
1): Check if your meta.xml in the script of teams is type="server". 2): Use this: function load() txd = engineLoadTXD ("m4.txd" ) engineImportTXD ( txd, 356 ) dff = engineLoadDFF ( "m4.dff", 0 ) engineReplaceModel ( dff, 356 ) end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) The script for weapon replacement must be type="client" in meta.xml. You can only replace weapons, skin models in MTA 1.1.1, not 1.1.
-
Nobody's going to give you anything, start learning!
-
That's pretty easy to understand... element = the element you want to set the alpha of, can be vehicles, objects, markers, players, peds. alpha = from 0 to 255.
-
You won't find the code for everything in the wiki. To "buy" health use: setElementHealth. invisible can be setElementAlpha + setPlayerNametagShowing.
-
Then, loadPlayerData is your function to get the XML cash and that. Well, you must add this line in the meta.xml: <export function="loadPlayerData" type="server" /> Then to use that function in another resource do this: exports["YOUR_RESOURCE_NAME"]:loadPlayerData (player,"cash")
-
Well, I guess you have some function to get the cash from that resource already, right?
-
Do you mean you want to use that data in another resource? you could make a exported function I think.
-
Well... that means Chase bumped it? I didn't know it was that old.
