-
Posts
2,106 -
Joined
-
Last visited
-
Days Won
6
Everything posted by aka Blue
-
Es onPlayerLogout y onPlayerLogin, has puesto: onPlayerLogOut y onPlayerLogIn.
-
It's so bad that code. Use this i think: mkl - createmaker(1274.0817871094, -1657.0938720703, 13.546875 ,"cylinder" 1.5 , 0, 255, 0, 255) function createVehicleForPlayer( player, cmd, model ) local model = tonumber( model ) if model then local x, y, z = getElementPosition( player ) local vehicle = createVehicle( model, x, y, z ) else outputChatBox( "Syntax: /"..cmd.." [model]", player, 255, 255, 255 ) end end
-
Here is it. Full tested and works great, I add some condicionals and debugs. If you dont want some improvements, I will send it you by PM. PD: I use a video converter so looks like little stretched but IG its different.
-
Yo no
-
[TUT] Crear un panel de logueo con HTML-CSS-Lua desde 0
aka Blue replied to aka Blue's topic in Recursos y aportes
@EstrategiaGTA ¿Le metemo regetón papi? -
Pero has metido el resource bone_attach?
-
@Tekken Great! I will start in a few hours. Tell me if you want some improvements PD: I can make it functional with MTA Account System, you can see it here:
-
Thanks @Tekken, I made it with css/html. If you want, i can make it functional with the MTA Account system or SQLite.
-
Lo único que tienes que editar en ese código es lo que te puse, que tienes que ajustar la posición tú: exports.bone_attach:attachElementToBone( objeto[ player ], player, 11, -0.2, 0, 0, -90, 0, 0) Lo demás, tal y como está.
-
Yo no te lo puedo hacer porque no sé ni como es, ni que escala ni nada de ese objeto que has creado, por lo tanto, te explicaré un poco por encima: Descargas el recurso bone_attach: https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540 Lo inicias en tu servidor. Creas el recurso con el que quieres hacer lo que tienes pensado. Introduces ésto. local objeto = { } addCommandHandler( "objeto", function( player ) local objeto = objeto[ player ] if objeto then destroyElement( objeto ) -- Destruimos el objeto creado objeto[ player ] = nil -- Le damos valor nil a la tabla outputChatBox( "Oh! Has destruido tu objeto", player, 255, 0, 0 ) else local x, y, z = getElementPosition( player ) -- Obtenemos la posición del jugador objeto[ player ] = createObject( id_del_objeto, x, y, z ) -- Creamos el objeto exports.bone_attach:attachElementToBone( objeto[ player ], player, 11, -0.2, 0, 0, -90, 0, 0) -- Aqui las posiciones las vas ordenando tú outputChatBox( "Has creado tu objeto!", player, 0, 255, 0 ) end end )
-
Descarga bone_attach y utilizas la función attachElementToBone, obviamente con su export. Aquí sus argumentos: attachElementToBone( element,ped,bone,x,y,z,rx,ry,rz )
-
Usa el recurso bone_attach y vas testeando las posiciones.
-
[TUT] Crear un panel de logueo con HTML-CSS-Lua desde 0
aka Blue replied to aka Blue's topic in Recursos y aportes
@iSmokee Gracias, hoy se viene el tutorial de crear el script dentro de HTML para poder hacer los triggers a MTA, es que ando con el instituto y no tengo mucho tiempo. @Anzo Es un framework que incorpora Chrome en otras aplicaciones. Resumido, que abre un Google Chrome en MTA el cual puedes utilizar xd. -
Nunca me puse a hacerlo @iSmokee jaja.
-
Scrollbar es complicado en DX. Debes usar dxSetRenderTarget e ir calculando posiciones.
-
[TUT] Crear un panel de logueo con HTML-CSS-Lua desde 0
aka Blue replied to aka Blue's topic in Recursos y aportes
@iSmokee Es más sencillo de hacer (efectos, botones personalizados, animaciones, etc) si tienes una mínima idea de CSS. -
I think that MTA Community does not support stolen scripts.
-
[TUT] Crear un panel de logueo con HTML-CSS-Lua desde 0
aka Blue replied to aka Blue's topic in Recursos y aportes
Gracias. Te respondo: Sí, usé HTML y CSS para hacer eso. Doctype se añade siempre para que el navegador pueda entender la versión de HTML que estamos usando. El meta charset efectivamente es para pasar los carácteres a UTF-8 Eso se llama reset de la página. El * se utiliza para seleccionar todos los elementos de la página. Sí, aunque ese tag no se suele usar mucho. No sé a que te refieres con pasar a MTA, utilizo CEF para cargarlo y sí funciona dentro del juego -
Try this: addEventHandler( "onPlayerLogin", root, function( ) local account = getPlayerAccount( source ) if ( account ) then if ( not isGuestAccount( account ) ) then if ( getAccountData( account, "FirstTime" ) ) then outputChatBox("You're playing for the first time!", source, 0, 255, 0) startResource ( skinnew ) setElementPosition ( source, 1254.50049, -790.40015, 92.03018 ) setAccountData(account, "FirstTime", true) else outputChatBox("This is not the first time for you!", source, 255, 0, 0) end end end end ) And do what i post, cleaning the acl.xml
-
Well, add this in your resource meta: <aclrequest> <right name="function.startResource" access="true" /> </aclrequest> After execute: aclrequest allow resource_name all
-
¿Why you need to start a resource every time that a player has logged in?
-
Added one more design, i can't edit, sorry. https://i.gyazo.com/0fd49f99c00806eade5cc30ba3332ccd.gif
-
I think a GM of this range should have a more advanced logging panel improve that we have actually the CEF, i make this little login panel in... 5 minutes? Hope you like it. I make some designs I can change all the login system to SQLite if you want, making it compatible with Lua and your DayZ system.
