Jump to content

zorrigas

Members
  • Posts

    58
  • Joined

  • Last visited

About zorrigas

  • Birthday 07/12/1992

Details

  • Gang
    [GT]
  • Location
    Chile
  • Occupation
    Webmaster, Scripter... :B

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

zorrigas's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. Stolen lua: https://community.multitheftauto.com/in ... ls&id=4487
  2. Download a shader example and learn how replace ! client: texShader = dxCreateShader ( "texreplace.fx" ) texture = dxCreateTexture("floor.png") dxSetShaderValue(texShader,"gTexture",texture) -- you can get textname with this shader [url=https://wiki.multitheftauto.com/wiki/Shader_examples#Texture_names]https://wiki.multitheftauto.com/wiki/Sha ... ture_names[/url] engineApplyShaderToWorldTexture(texShader,"texturename") texreplace.fx: // Variable to fetch the texture from the script texture gTexture; // My nice technique. Requires absolutely no tools, worries nor skills technique TexReplace { pass P0 { // Set the texture Texture[0] = gTexture; // LET THE MAGIC DO ITS MAGIC! } }
  3. use S H A D E R S then, only need replace text name and this works on all objects with her name
  4. 1. Learn https://wiki.multitheftauto.com/wiki/Shader_examples 2. viewtopic.php?f=91&t=65025&p=613820#p613820 Only need put ids, and script make rest... READ CODE
  5. -- not tested but logically should work local txd1 = engineLoadTXD ( "des_ne.txd" ) local ids1 ={16103, 16171, 16172, 16173} -- add more you for k,v in ipairs(ids1) do engineImportTXD ( txd1, v ) end also use shader would be better?
  6. Update http://linux.multitheftauto.com Temporary Link (Nightly Version) https://nightly.multitheftauto.com/multitheftauto ... 1CE.tar.gz
  7. All Random -- zorrigas 18:32 GMT-4 30/SEPT/2011 resRoot = getResourceRootElement(getThisResource()) addEventHandler("onResourceStop", resRoot, function() resetWaterColor() resetSkyGradient() resetVehicleColor() end) addEventHandler("onResourceStart", resRoot, function() setTimer(colores,275,0) end) function colores() -- se definen los colores setSkyGradient(math.random(0,255),math.random(0,255),math.random(0,255),math.random(0,255),math.random(0,255),math.random(0,255)) setWaterColor(math.random(0,255),math.random(0,255),math.random(0,255)) for i, auto in ipairs( getElementsByType( "vehicle" ) ) do setVehicleColor ( auto,math.random(0,255),math.random(0,255),math.random(0,255),math.random(0,255),math.random(0,255),math.random(0,255) ) end end
  8. to many timers, all functions on 1 timer viewtopic.php?f=91&t=36202&p=373313#p373310
  9. Working Script, ServerSide, not tested but should work [1.1] -- zorrigas 18:21 GMT-4 30/SEPT/2011 resRoot = getResourceRootElement(getThisResource()) addEventHandler("onResourceStop", resRoot, function() resetWaterColor() resetSkyGradient() resetVehicleColor() end) addEventHandler("onResourceStart", resRoot, function() setTimer(colores,275,0) end) function colores() -- se definen los colores local color1 = math.random(0,255) local color2 = math.random(0,255) local color3 = math.random(0,255) local color4 = math.random(0,255) local color5 = math.random(0,255) local color6 = math.random(0,255) setSkyGradient(color1,color2,color3,color4,color5,color6) setWaterColor(color1,color2,color3) for i, auto in ipairs( getElementsByType( "vehicle" ) ) do setVehicleColor ( auto,color1,color2,color3,color4,color5,color6 ) end end
  10. you are bad. resetWaterColor and setWaterColor is Client and Server function on 1.1! all functions work in serverside but have a bad elements. for i, car in ipairs( getElementsByType( "vehicle" ) ) do ....... setVehicleColor ( car, color[1], color[2], color[3] ) end end PD for SnoopCat: Fuga ahora no puedes decir que no te ayude, deja de hacer copy paste de scripts y lee el wiki!
  11. onResourceStart is ServerSide event, cant runit on ClientSide, Bad Copy Paste. setVehicleColor(VEHICLE NO ID, color1,color2,color3,color4)
  12. getPedOccupiedVehicle attachElements
×
×
  • Create New...