DeletedAccount1111
Members-
Posts
329 -
Joined
Everything posted by DeletedAccount1111
-
I was adding some cars with custom bodikits, and i found that i have some error, and i cant find it, if anyone could help i'll be very glad. meta.xml "Threule" version="1" type="script" /> script.lua function replaceModel() txd = engineLoadTXD( "elegy.txd") engineImportTXD(txd, 562) dff = engineLoadDFF( "elegy.dff", 0 ) engineReplaceModel(dff, 562) dff = engineLoadDFF( "exh_a_l.dff", 0 ) engineReplaceModel(dff, 1034) dff = engineLoadDFF( "exh_c_l.dff", 0 ) engineReplaceModel(dff, 1037) dff = engineLoadDFF( "fbmp_a_l.dff", 0 ) engineReplaceModel(dff, 1171) dff = engineLoadDFF( "fbmp_c_l.dff", 0 ) engineReplaceModel(dff, 1172) dff = engineLoadDFF( "rbmp_a_l.dff", 0 ) engineReplaceModel(dff, 1149) dff = engineLoadDFF( "rbmp_c_l.dff", 0 ) engineReplaceModel(dff, 1148) dff = engineLoadDFF( "rf_a_l.dff", 0 ) engineReplaceModel(dff, 1038) dff = engineLoadDFF( "rf_c_l.dff", 0 ) engineReplaceModel(dff, 1035) dff = engineLoadDFF( "spl_a_l_b.dff", 0 ) engineReplaceModel(dff, 1147) dff = engineLoadDFF( "spl_c_l_b.dff", 0 ) engineReplaceModel(dff, 1146) dff = engineLoadDFF( "wg_l_a_l.dff", 0 ) engineReplaceModel(dff, 1036) dff = engineLoadDFF( "wg_l_c_l.dff", 0 ) engineReplaceModel(dff, 1039) dff = engineLoadDFF( "wg_r_a_l.dff", 0 ) engineReplaceModel(dff, 1040) dff = engineLoadDFF( "wg_r_c_l.dff", 0 ) engineReplaceModel(dff, 1041) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel )
-
Hi, I'm currently using custom cars in my server (loaded with modloader) and i wanted to apply some paintjobs to them, but seems that i cant do that thing. So i want to lnow how I am suposed to do this. At the moment, I'm using a script that i found here: viewtopic.php?f=91&t=35778 And here it is: The lua: addEventHandler( "onClientResourceStart", resourceRoot, function() texture = dxCreateTexture ( "uranus2body256.png" ) shader, tec = dxCreateShader( "shader.fx" ) --bit of sanity checking if not shader then outputConsole( "Could not create shader. Please use debugscript 3" ) destroyElement( texture ) return elseif not texture then outputConsole( "loading texture failed" ) destroyElement ( shader ) tec = nil return else engineApplyShaderToWorldTexture ( shader, "uranus2body256" ) dxSetShaderValue ( shader, "gTexture", texture ) end end ) the fx: texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } and obviously, the meta: "Shader - UV Scroll" version="0.0.3" type="script" /> The car is some AE86 from Emzone guys. (Just if this helps) If an admin grants me permission, i'll upload the script folder to mediafire or to mega, so you can see what i created.
-
What if you use Modloader? It works with peds, but i think it'll do the job with clothes too
-
Just change all the LS and SF and LV sings into Police, then, edit some stuff that had the carcols, and make cars kinda look like this:
-
[WIP] Usersystem [ Q: Should I remake? ]
DeletedAccount1111 replied to Cannonball's topic in Resources
If you are ever going to release this, you could try to add some true / false in the meta, so if someone who wants to use it doesnt want some function, he can just disable it on the meta -
Just in case, i think he means this
-
Wait, i dont know if it's needed but... didnt it need a line to start when server starts?
-
The meta.xml file is done properly, right? And theres any way to just take the save skin part from this script?
-
How do you actually replace wheels with custom ones? Searching that for a long time
-
Loading various models on the same vehicle
DeletedAccount1111 replied to DeletedAccount1111's topic in Scripting
You didn't understand the question. Threule wants to display 2 different models of 2 vehicles of the same model ID for 1 client which is not possible. You can change textures of the same model but different elements though. You can have the same model IDs with different textures for 1 client. https://wiki.multitheftauto.com/wiki/Eng ... rldTexture So you can load a texture to the hydra, like a paintjob? How? -
Hello, I have a custom Hydra (actually is a Tomcat) and I want to add the paintjobs to it, and i dont know why my scripts dont work. meta.xml "Bla" version="Bla" type="script" name="" description="" showInResourceBrowser="false" /> script.lua addEventHandler( "onClientResourceStart", resourceRoot, function() texture = dxCreateTexture ( "/hydra/remaphydrabody.png" ) shader, tec = dxCreateShader( "texturereplaceshader.fx" ) --bit of sanity checking if not shader then outputConsole( "Could not create shader. Please use debugscript 3" ) destroyElement( texture ) return elseif not texture then outputConsole( "loading texture failed" ) destroyElement ( shader ) tec = nil return else engineApplyShaderToWorldTexture ( shader, "hydra1body256" ) dxSetShaderValue ( shader, "gTexture", texture ) end end ) texturereplaceshader.fx texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } And yes, the tomcat technically supports custom paintjobs.
-
Loading various models on the same vehicle
DeletedAccount1111 replied to DeletedAccount1111's topic in Scripting
But he wants to see his own as 1 and his friend as another one. 2 separate models for same client which as far as I know is not possible. I think you got the idea. I want to see mine as one model, while seeing my friend as another model. -
Loading various models on the same vehicle
DeletedAccount1111 replied to DeletedAccount1111's topic in Scripting
But we'll have each one our own model, right? And I know how to replace for everyone, but not an option to choose your model then replace -
Is there any way that i can load tons of models for the same vehicle? Ex: I put a MIG and a F-18 mods for hydra, and a friend can be the F-18 and i can be the MIG. Any way to do this?
-
Uses custom cars? Or they are modified parts for already existing cars? EDIT: Btw, I found how to third color, If i dont find any use to the 4th color, i'll upload the script here
-
Huh? Somehow, you'll need to script that into Bat's ID. I dont know too much about this, but it'll be like if weapon = "whatever the bat id is" then onplayerdamage teleport or whatever
-
Do any car have a fourth color? Because i have 3 colors for the camper and a custom hydra I added, but cant seem to find a 4 colored car
-
I need to edit color picker, and I want to add a third and a fourth color picker, but I cant seem to find the first and second color picker option
-
Is there any color picker that lets you choose a third and a fourth color?
-
Hod do you replace textures for everyone in the server? For example, i make LV desert less red-ish
-
This night, before sleeping, i just had some script ideas, feel free to take them and make them, no credit needed: Radio: that loads default game radios, lets you make radios out of a playlist, listen to internet radio, and lets you add a image logo in PNG format. Could possibly have car radio synch (if a friend is in my car, he will hear the BBC radio, for example) Configurable radar: Radar that lets you show other blips, just team blips or all blips (configurable in the meta, so it wont show enemy's blips for deathmatches). Could also come with a health gui or something Car gui: A car gui, that lets you use a custom font for cars (so you can see "URANUS" in Times New Roman, for example) or set a logo (with a maximum height and weight) for a car (For example, I put a Ford Focus, and when you enter what you'll see will be Ford logo, then Focus) I know many of these scripts ideas have a part done, but my idea is to have them full. Some of them could be cool for RP or racing servers
-
Sorry for the necro, but how the hell i make this work? This doesnt work for me
-
I just didnt add the txd loader because i used a HD wheels mod for that. The thing is that we cant load that txd properly. There's should be a trick to load new txd
-
I was trying to install that too. I think you need to add the txd as a shader or something for it to work. I'll give you the script: meta.xml "Bla" version="Bla" type="script" name="" description="" showInResourceBrowser="false" /> script.lua addEventHandler('onClientResourceStart', resourceRoot, function() dff = engineLoadDFF ( "wheel_gn1.dff", 1082) engineReplaceModel ( dff, 1082) dff = engineLoadDFF ( "wheel_gn2.dff", 1085) engineReplaceModel ( dff, 1085) dff = engineLoadDFF ( "wheel_gn3.dff", 1096) engineReplaceModel ( dff, 1096) dff = engineLoadDFF ( "wheel_gn4.dff", 1097) engineReplaceModel ( dff, 1097) dff = engineLoadDFF ( "wheel_gn5.dff", 1098) engineReplaceModel ( dff, 1098) dff = engineLoadDFF ( "wheel_lr1.dff", 1077) engineReplaceModel ( dff, 1077) dff = engineLoadDFF ( "wheel_lr2.dff", 1083) engineReplaceModel ( dff, 1083) dff = engineLoadDFF ( "wheel_lr3.dff", 1078) engineReplaceModel ( dff, 1078) dff = engineLoadDFF ( "wheel_lr4.dff", 1076) engineReplaceModel ( dff, 1076) dff = engineLoadDFF ( "wheel_lr5.dff", 1084) engineReplaceModel ( dff, 1084) dff = engineLoadDFF ( "wheel_or1.dff", 1025) engineReplaceModel ( dff, 1025) dff = engineLoadDFF ( "wheel_sr1.dff", 1079) engineReplaceModel ( dff, 1079) dff = engineLoadDFF ( "wheel_sr2.dff", 1075) engineReplaceModel ( dff, 1075) dff = engineLoadDFF ( "wheel_sr3.dff", 1074) engineReplaceModel ( dff, 1074) dff = engineLoadDFF ( "wheel_sr4.dff", 1081) engineReplaceModel ( dff, 1081) dff = engineLoadDFF ( "wheel_sr5.dff", 1080) engineReplaceModel ( dff, 1080) dff = engineLoadDFF ( "wheel_sr6.dff", 1073) engineReplaceModel ( dff, 1073) end ) Since i dont know how to add those custom TXD, we need to investigate how to load that custom txd (maybe we need to break it into tons of TXDs)
-
No, i mean the txd called vehicles or something like that.
