Anderl
Members-
Posts
2,266 -
Joined
-
Last visited
Everything posted by Anderl
-
Ninguém irá criar recursos para você, se você precisa de ajuda a desenvolver o script, é só perguntar.
-
This is my first shader code so sorry if it does not work: Client-side: local pShader = dxCreateShader( 'clothe.rep.fx' ); -- change this to the shader file name if( pShader ) then -- check if shader was created successfully local pTexture = dxCreateTexture( 'clothtexture.png' ); -- create texture || change here to the texture file name if( pTexture ) then -- check if texture was created successfully dxSetShaderValue( pShader, 'clotheTexture', pTexture ); -- set shader texture to the texture we created -- engineApplyShaderToWorldTexture( pShader, 'clothe_text_name'--[[, TARGET [ not needed ] ]] ); -- apply texture to the world || change here to the clothe texture name you want to replace and maybe fill target with an element if you don't want it to be applied to all world textures with this name end end Shader file: texture clotheTexture; technique clotheTexRep { pass P0 { Texture[0] = clotheTexture; } }
-
This won't fix the error, it will just stop the function if randnum is 5 or 7.
-
yeh, thank you You're welcome.
-
Output an element in Chat Box? If it's a player element you should use getPlayerName, not tostring.
-
local hRow = nil; hWnd = guiCreateWindow( 0.1, 0.1, 0.2, 0.65, "Hats", true ); local aObjects = { "WW1 hat", "WW2 hat"; }; hGrid = guiCreateGridList( 0.1, 0.10, 0.8, 0.60, true, hWnd ); guiGridListAddColumn( hGrid, "ZM hats", 0.85 ); for i,m_obj in ipairs( aObjects ) do hRow = guiGridListAddRow( hGrid ); -- guiGridListSetItemText ( hGrid, hRow, 1, tostring( m_obj ), false, false ); end Isn't that what you want.
-
But using files you'll have to download them. More houses = bigger download.
-
I recommend you to use MySQL.
-
Client-side: addEventHandler( 'onClientResourceStart', resourceRoot, function( pRes ) for i,v in ipairs( getElementsByType( 'object' ) ) do if( getElementModel( v ) == 2916 ) then local iX, iY, iZ = getElementPosition( v ) local iInt = getElementInterior( v ) local iDim = getElementDimension( v ) myMarker = createMarker( iX, iY, iZ, 'cylinder', 2.0, 255, 0, 0, 125 ) setElementInterior( myMarker, iInt ) setElementDimension( myMarker, iDim ) end end end ) addCommandHandler( 'train', function( c ) local p = localPlayer if( isElementWithinMarker( p, myMarker ) ) then local iX, iY, iZ = getPedBonePosition( p, 25 ) attachElements( 2916, p, iX, iY, iZ ) else outputChatBox( 'Nope.', p ) end end ) Not tested.
-
Just one thing: Best game ever.
-
[quote name=\_<()>_/][quote name=\<()>/] Funçoes engine nao percebi,converter tem alguma coisa a ver com engine?nao percebi nada https://wiki.multitheftauto.com/wiki/Cli ... _functions
-
[quote name=\<()>/]Okey,agradaçeo a sua opiniao! Ja agora o topico está a desviar-se um bocado Pode-me enviar um link? Sobre?
-
[quote name=\<()>/] Sao assuntos completamente diferentes Não há problema, faça duas questões num tópico. Difícil?
-
Nem perto. http://lua.org
-
Qual linguagem Pascal? Fumou? Não tem linguagem Pascal nenhuma em MTA:SA.
-
Seria melhor se voce editasse o seu tópico em vez de criar dois tópicos seguidos. Para adicionar um carro ao servidor use as funções de engine, voce pode encontrar elas na Wiki do MTA:SA. Não é possivel converter mods cleo para MTA:SA mas é possivel de recriá-los em Lua.
-
onClientGUIClick + guiCheckBoxGetSelected / guiCheckBoxSetSelected
-
You're joking, right? Website has nothing to do with where he host servers.
-
This is not needed, you can use sha1 module which is on Wiki.
-
It's not hard, he is just doing something wrong. Did you check if the server-id.keys is being saved on a existent location?
-
Seems like permissions issues, do: chmod -R 777 /PATH/TO/YOUR/MTA/FOLDER;
-
What? GTX 590 for 995.99$? I get a GTX 680M 4GB GDDR5 which is much better than that card for 600£ in eBay and also an i7-3820QM 2.7GHz Turbo to 3.7GHz for 198£ so you're buying things for a higher price when you can build a better machine for almost same price ( I'm talking about mobile hardware so maybe you should search the desktop versions ).
-
You can also make one by yourself with what you want.
-
Other way is to be able to add multiple files.
