-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Would help if you could post the whole script.
-
Just change: "bankgothic" to: "default-bold" dxDrawColorText ('#00A2FFMap: #FFFFFF' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(1.1, 'default-bold')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.3, 'default-bold', 0.6, 'left')
-
You have to use: guiGridListGetSelectedItem -- Get selected item on a grid list. guiGridListGetItemText -- Get text of selected item on a grid list.
-
Because that make's no sense, you don't want to set the label to local player name, but to the selected player.
-
No lo parece, te falta un argumento en triggerServerEvent.
-
I've tested the script and it works just fine. About the double click, how can it ever do that if you didn't add the script to do it?
-
Vos siquiera lees el sintaxis de las funciones?
-
function addNum ( ... ) local num = 0 for i, b in ipairs ( ... ) do -- Loop through the table given. num = num + 1 -- Increase 'num' variable by one. end return num -- Return the 'num' variable. end outputChatBox ( addNum ( { "Hello", "World" } ) )
-
No leiste todos los argumentos de la funcion. Tambien te faltan comillas, variables.
-
Si, esta mal, tenes que hacer asi: if ( source == vehicle or source == vehicle2 ) then
-
You should give more information, what do you want to be done? how much are you willing to pay?
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(247,116,339,383,"",false) guiSetVisible(GUIEditor_Window[1], false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(46,43,223,20,"PM a ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(12,76,312,236,"",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Edit[1] = guiCreateEdit(12,318,239,38,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(252,315,78,44,"Enviar",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(84,122,163,376,"",false) guiSetVisible(GUIEditor_Window[2], false) guiWindowSetMovable(GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Grid[1] = guiCreateGridList(9,26,145,338,false,GUIEditor_Window[2]) local column = guiGridListAddColumn ( GUIEditor_Grid[1], "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, column, getPlayerName( playeritem ), false, false ) end end bindKey ( "F7", "down", function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) guiSetVisible ( GUIEditor_Window[2], not guiGetVisible ( GUIEditor_Window[2] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end )
-
You want to change the text to font "default-bold"?
-
Uhm, no, eso no tiene sentido, sin ofender. Te hare un ejemplo. local vehicle = createVehicle ( 411, 0, 0, 5 ) -- Creamos un Infernus en las coordenadas: 0, 0, 5. addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, seat ) if ( seat ~= 0 ) then -- Si el asiento no es el 0.. return -- Cancelamos la funcion. end if ( source == vehicle ) then -- Si el vehiculo que esta intentando entrar es el que creamos.. if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "MCC" ) then -- Si el jugador que intenta entrar tiene un team y el nombre del team no es "MCC".. outputChatBox ( "Este vehiculo esta restringido a MCC", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end end )
-
Podrias al menos intentar hacerlo? ya me estoy aburriendo de hacerte todo porque vos no lo intentas.
-
Please don't start to fight, you can do that via PM or any other chat program.
-
Skin mod: https://community.multitheftauto.com/index.php?p= ... ls&id=4237
-
Tambien podias usar triggerServerEvent cuando el recurso inicie ( en el evento onClientResourceStart), asi sabes cuando termine de descargarlo.
-
Estoy de acuerdo. Tema cerrado.
-
Te aconsejo que uses el evento onVehicleStartEnter, asi cancelas el evento si el jugador no esta en el team X.
-
function warpMexican ( player ) local theAccount = getPlayerAccount ( player ) if ( theAccount ) then local accountName = getAccountName ( theAccount ) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then setTimer ( setElementPosition, 10000, 1, player, 2568.22, -1279.25, 25.62 ) end end end addCommandHandler ( "basewarp",warpMexican )
