-
Posts
1,027 -
Joined
-
Last visited
Everything posted by BorderLine
-
https://community.multitheftauto.com/index.php?p= ... ls&id=5375
-
great..! i didnt see that.. thanks man is working
-
Hi everyone, well i have a question. i was searching in forum bot i didnt find about this. I need a example I have a combobox and i added items something like this infernus_choose = guiCreateComboBox(13,65,295,75,"choose",false,tabs[6]) guiComboBoxAddItem ( palette_choose, "Disabled" ) guiComboBoxAddItem ( palette_choose, "Model 1" ) guiComboBoxAddItem ( palette_choose, "Model 2" ) and the event should be "onClientGUIComboBoxAccepted" right? well im want make and combobox to select diferents models of infernus. how i can do this? if someone can explainme how detect when i select model 1 or model 2 or disabled Thanks for your time
-
This video has been created by one user on my server. Nickname:Rojas Thanks to him for the time to make this.. Enjoi
-
first img arent aviable Maybe you should edit the txd or use my shader to replace vehicle.txd and all vehicles can have leds lights https://community.multitheftauto.com/index.php?p= ... ls&id=4969 pd: can you sendme a pm the url where you get that suburban or tahoe?
-
intenta esto local country = getElementData(getLocalPlayer(),"Country") local flag = ":admin/client/images/flags/"..country..".png" dxDrawImage(520.0,58.0,20.0,20.0,flag)
-
sorry for double post, but hunterix. the version of scoreboard can be the problem? i have the last scoreboarsd and your vcode dont wrong, still same high
-
still with same high and i did all what you say.. edit-delete and refresh
-
what are you trying to do?
-
Hi, i have a quiestion. Anyone know how make the rows more high?? this rows If someone know the line or where i can make this. I have the last scoreboard.
-
https://community.multitheftauto.com/index.php?p= ... ils&id=861 and add admin rights
-
me parece ke no puedes usar getElementsByType para esa "faction" segundo te falta un end uno para el for, uno para el if y otro para el final de la funcion
-
local spawnpoint addEventHandler("onPlayerWasted",getRootElement(),function() cuSkin = getElementModel(source) end ) addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player, uSkin) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source.) end )
-
seguramente deben existir comandos algo como /newmap /nextmap /votemap o nose deberias chekar el resource
-
race/modes/destructionderby.lua en la funcion function DestructionDerby:onPlayerWasted(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 1 then RaceMode.endMap() else TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end RaceMode.setPlayerIsFinished(player) showBlipsAttachedTo(player, false) end
-
ajja aqui un videito, disfrutenlo
-
Car mod https://community.multitheftauto.com/index.php?p= ... ls&id=5763 DONE
-
con respecto a lo que Renkon dice. Intenta esto function inicio () local hour, minutes = getTime() if ( hour >= 23 ) then startResource( getResourceFromName( 'slothBot' ) ) end end addEventHandler("onResourceStart",getRootElement(), inicio) -----top--- function alto () local hour, minutes = getTime() if ( hour >= 03 ) then restartResource( getResourceFromName( 'slothBot' ) ) end end addEventHandler("onResourceStart", getRootElement(),alto)
-
usa /debugscript para ver los errores del script que has posteado. Mas a fondo, en la consola muestra algunos solamente.
-
https://community.multitheftauto.com/index.php?p= ... ls&id=5752 Original https://community.multitheftauto.com/index.php?p= ... ls&id=5042 DONE
-
Reported. This is allready exist https://community.multitheftauto.com/index.php?p= ... ls&id=5042
-
primero me parece que para que se ejecute una funcion como esa de restartResource deben tener agregada a la linea de Admin en la ACL segundo tu creas un evento y el segundo argumento no es el nombre de la funcion, es el elemento al cual le envias la funcion function inicio () local hours = getTime() if ( hours >= 23 ) then startResource( getResourceFromName( 'slothbot' ) ) end end addEventHandler("onResourceStart",getRootElement(), inicio) -----top--- function alto () if ( hours >= 03 ) then restartResource( getResourceFromName( 'slothbot' ) ) end end addEventHandler("onResourceStart", getRootElement(),alto)
-
la verdad no man, nunca e mirado ese gamemode. Deberias buscar dentro de serverside las funciones de camara y quisas la encuentres
-
deberias crear un sistema propio. Sino me equivoco el de solid esta compilado
-
Ejemplo de la Wiki: g_Players = getElementsByType("player") -- get a list of all players in the server for i,aPlayer in ipairs(g_Players) do -- find out what index the local player has in the list if aPlayer == getLocalPlayer() then g_CurrentSpectated = i break end end function spectatePrevious() -- decrement the spectate index and spectate the corresponding player if g_CurrentSpectated == 1 then g_CurrentSpectated = #g_Players else g_CurrentSpectated = g_CurrentSpectated - 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end function spectateNext() -- increment the spectate index and spectate the corresponding player if g_CurrentSpectated == #g_Players then g_CurrentSpectated = 1 else g_CurrentSpectated = g_CurrentSpectated + 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end -- Bind above functions to arrow keys bindKey("arrow_l", "down", spectatePrevious) bindKey("arrow_r", "down", spectateNext) Y para lo que quieres, nose si funcione en la primera linea en vez de g_Players = getElementsByType("player") usa g_Players = getAlivePlayers () y deberas editarlo con el evento onPlayerWasted