Jump to content

Search the Community

Showing results for tags 'paintjob'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 7 results

  1. Anyone can explain me how to replace paintjobs? I wrote this script and it's not working function replacepaintjob() paintjob1 = engineLoadTXD ( "elegy1.txd" ) engineImportTXD (paintjob1, [562]={0}) paintjob2 = engineLoadTXD ( "elegy2.txd" ) engineImportTXD (paintjob2, [562]={1}) paintjob3 = engineLoadTXD ( "elegy3.txd" ) engineImportTXD (paintjob3, [562]={2}) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replacepaintjob) addCommandHandler ( "reloadmodel", replacepaintjob ) And please explain me how to use paintjob IDs in MTA Wiki Paintjob.
  2. Buenas noches!!, Alguien sabe si se puede de alguna manera tener varios "Skins de autos" y que sea visibles por todos¿? Otra pregunta es si esta función se puede hacer para un team nada mas, pero que los demas la puedan ver. Y la ultima si los coches que no tengan paintjob se pueden aplicar mas de 4, y de que manera, si alguno sabe aunque sea uno me seria de gran ayuda, gracias! function CambiarSkin1() txd = engineLoadTXD("mod.txd", 411) engineImportTXD(txd, 411) dff = engineLoadDFF("mod.dff", 411) engineReplaceModel(dff, 411) end addEventHandler("onClientResourceStart", resourceRoot, CambiarSkin1) --Hay alguna forma de cambiarlo para que solo un team se le aplique?
  3. Hello! I'm trying to replace some paintjobs in my server but I don't know if that is even possible. For example: if I wanted to replace jester2.txd texture, how would I do it? Here is a screenshot of my .lua, in case of this could help in any way: https://drive.google.com/file/d/1VciiFOzO5Vv5mw5ziJBiNyDteDB6qRvP/view?usp=sharing I would appreciate if you could help me, cheers!
  4. I tried several ways to make the communication between client and server, but I can not get to the shop that I am armed, my idea is to make different curtains for groups, and each has a color, I can not get that when the person chooses the object who wants to buy, everyone can see the curtain that I would buy in a different color ... The other problem is how to keep it, it has me really disconnected, thank you for your attention. -- Client Side addEventHandler("onClientGUIClick", guiRoot, --VENTANA2 = CORTINAS > Completas > Turquesas function (player) local getGui = guiGetVisible(Ventana2) if source == Boton9a then triggerServerEvent("PonerCortina", localPlayer, localPlayer) PrecioCortinasCompletas = 3500 PrecioTotal = PrecioCortinasCompletas guiSetText(BotonTOTAL2, PrecioCortinasCompletas) local paintjobID = 1 end end) function addPaintjob2(paintjobID,player) if paintjobID == 1 then myTexture = dxCreateTexture( "cortinasRojas.png" ) elseif paintjobID == 2 then myTexture = dxCreateTexture( "cortinasAzules.png" ) else if player == getLocalPlayer() then outputChatBox ("There is no such paintjob ID!") return end end engineRemoveShaderFromWorldTexture ( shader_cars, "cortinas", getPedOccupiedVehicle(player) ) shader_cars, tec = dxCreateShader ( "shader.fx" ) engineApplyShaderToWorldTexture ( shader_cars, "cortinas", getPedOccupiedVehicle(player) ) dxSetShaderValue ( shader_cars, "TX0", myTexture ) end addEvent( "setShader", true ) addEventHandler( "setShader", getLocalPlayer(), addPaintjob2 ) Server-Side function Cortina1() local vehicle = getPedOccupiedVehicle( source ) if ( vehicle ) then local pos = {getElementPosition( vehicle )} Cortinapuesta = createObject( 1000, pos[1], pos[2], pos[3] ) attachElements( Cortinapuesta, vehicle, 0, 0, 0, 0, 0, 0 ) triggerClientEvent (players,"setShader",players,cortina) end end addEvent("PonerCortina", true) addEventHandler("PonerCortina", root, Cortina1)
  5. function addPaintjob(commandName,paintjobID) me = getLocalPlayer() if isPedInVehicle ( me ) then triggerServerEvent ( "addPJ", resourceRoot, tonumber(paintjobID), me ) end end addCommandHandler ("addpaintjob",addPaintjob) function addPaintjob2(paintjobID,player) if paintjobID == 1 then myTexture = dxCreateTexture( "paintjob1.png" ) elseif paintjobID == 2 then myTexture = dxCreateTexture( "paintjob2.png" ) elseif paintjobID == 3 then myTexture = dxCreateTexture( "paintjob3.png" ) elseif paintjobID == 4 then myTexture = dxCreateTexture( "paintjob4.png" ) elseif paintjobID == 5 then myTexture = dxCreateTexture( "paintjob5.png" ) elseif paintjobID == 6 then myTexture = dxCreateTexture( "paintjob6.png" ) else if player == getLocalPlayer() then outputChatBox ("There is no such paintjob ID!") return end end engineRemoveShaderFromWorldTexture ( shader_cars, "vehiclegrunge256", getPedOccupiedVehicle(player) ) shader_cars, tec = dxCreateShader ( "shader.fx" ) engineApplyShaderToWorldTexture ( shader_cars, "vehiclegrunge256", getPedOccupiedVehicle(player) ) dxSetShaderValue ( shader_cars, "TX0", myTexture ) end addEvent( "addPJ2", true ) addEventHandler( "addPJ2", getLocalPlayer(), addPaintjob2 ) function removePaintjob2(player) if engineApplyShaderToWorldTexture ( shader_cars, "vehiclegrunge256", getPedOccupiedVehicle(player) ) then me = getLocalPlayer() engineRemoveShaderFromWorldTexture ( shader_cars, "vehiclegrunge256", getPedOccupiedVehicle(player) ) removePaintjob2(player) end end addEvent( "removePJ2", true ) addEventHandler( "removePJ2", getLocalPlayer(), removePaintjob2 ) function removePaintjob() triggerServerEvent ( "removePJ", resourceRoot, getLocalPlayer() ) end addCommandHandler ("removepaintjob",removePaintjob) It works everything to wonder, but when it comes to paintjob for certain imported vehicles you can not. How could you apply a paintjob to these vehicles? I do not want to change color, but have multiple skin... Thanks for you Attention
  6. Buenas noches!!, Alguien sabe si se puede de alguna manera tener varios "Skins de autos" y que sea visibles por todos¿? Otra pregunta es si esta función se puede hacer para un team nada mas, pero que los demas la puedan ver. Y la ultima si los coches que no tengan paintjob se pueden aplicar mas de 4, y de que manera, si alguno sabe aunque sea uno me seria de gran ayuda, gracias! function CambiarSkin1() txd = engineLoadTXD("mod.txd", 411) engineImportTXD(txd, 411) dff = engineLoadDFF("mod.dff", 411) engineReplaceModel(dff, 411) end addEventHandler("onClientResourceStart", resourceRoot, CambiarSkin1) --Hay alguna forma de cambiarlo para que solo un team se le aplique?
  7. Hello, everyone! I understand that cars that have paint jobs in the normal gta sa have the ability to carefully add paint jobs to them (via scripts etc.) and other cars that don't can just get 1 overall paintjob. Problem is I can't find the templates for those few cars so I could create my own paint job. I've been searching for hours, but still can't find a single one! Anyone can help me? Thank you!
×
×
  • Create New...