Jump to content

myonlake

Members
  • Posts

    2,312
  • Joined

  • Days Won

    41

Everything posted by myonlake

  1. meta.xml <meta> <info author="Threule" name="Bodikit" version="1" type="script" /> <script src="script.lua" type="client" /> <file src="elegy.txd" /> <file src="elegy.dff" /> <file src="exh_a_l.dff" /> <file src="fbmp_a_l.dff" /> <file src="rbmp_a_l.dff" /> <file src="rf_a_l.dff" /> <file src="spl_a_l_b.dff" /> <file src="wg_l_a_l.dff" /> </meta> Client-side (script.lua) function replaceModel() -- Elegy local txd = engineLoadTXD("elegy.txd") engineImportTXD(txd, 562) local dff = engineLoadDFF("elegy.dff", 562) engineReplaceModel(dff, 562) -- Mods local dff = engineLoadDFF("exh_a_l.dff", 1034) engineReplaceModel(dff, 1034) local dff = engineLoadDFF("fbmp_a_l.dff", 1171) engineReplaceModel(dff, 1171) local dff = engineLoadDFF("rbmp_a_l.dff", 1149) engineReplaceModel(dff, 1149) local dff = engineLoadDFF("rf_a_l.dff", 1038) engineReplaceModel(dff, 1038) local dff = engineLoadDFF("spl_a_l_b.dff", 1147) engineReplaceModel(dff, 1147) local dff = engineLoadDFF("wg_l_a_l.dff", 1036) engineReplaceModel(dff, 1036) local dff = engineLoadDFF("wg_r_a_l.dff", 1040) engineReplaceModel(dff, 1040) end addEventHandler("onClientResourceStart", resourceRoot, replaceModel) addCommandHandler("reloadcar", replaceModel) Please note that you are only replacing the DFFs, not the TXDs.
  2. myonlake

    mta sa problem

    It feels like you moved the Grand Theft Auto game from C-drive to D-drive, but thing is, you can't do that. It will mess up the registry editor and sure your MTA will fail finding the correct files. I think you should really leave the default paths and settings, I suggest making Program Files -folder in D-drive if you haven't already. Perhaps, like always, give Towncivilian your MTADiag.
  3. Well, pretty much, you had semicolons after every table element, so try this. Server-side lockPoliceveh = { [598] = true, [523] = true, [427] = true, [596] = true, [597] = true, [599] = true, [428] = true, [601] = true } lockPoliceSkin = { [280] = true, [281] = true, [282] = true, [283] = true, [284] = true, [285] = true, [286] = true, [287] = true, [288] = true } addEventHandler("onVehicleStartEnter", root, function(player, seat, jacked, door) if (lockPoliceveh[getElementModel(source)]) and (not lockPoliceSkin[getElementModel(player)]) and (seat == 0) then cancelEvent() end end )
  4. Eh... is this J2_wheels.txd included in GTA or is this some fully custom thing? Because you can't get it to work I suppose. You have to have a separate TXD for each model.
  5. Look at this page's example: https://wiki.multitheftauto.com/wiki/EngineReplaceModel and then look at your code. You will notice that you replace the TXDs as DFFs, which are different. Use the example in the Wiki. Also, you do not need the type after file tag in meta.xml so you can take it off. PS. No one else replies to this thread unless you really have to. I hate when someone starts helping and then everybody joins and after 1 hour the thread is 5 pages long. Just let the first helper help...
  6. Well thank you But I suggest waiting for the new version.
  7. @Anderl: COMPETITION (not really) You're welcome
  8. myonlake

    Lua help

    You can read the recommended manuals and trust me , you will be a good scripter if you kept reading lua manuals, no one will help you , you must help yourself. hey can you give me any recommended manuals link? viewtopic.php?f=148&t=40809 viewtopic.php?f=148&t=40809 viewtopic.php?f=148&t=40809 viewtopic.php?f=148&t=40809 viewtopic.php?f=148&t=40809 viewtopic.php?f=148&t=40809 viewtopic.php?f=148&t=40809 HOW many times do we have to link you the manual?! If you can't understand it, then DON'T EVEN BOTHER starting to script.
  9. local means it will only be shared by the function it is underneath. If I make a function and make a local in it, it means it will not be working outside the function. If I didn't make it local, as in, keep it global, it could be fetched by any other function.
  10. Mod: https://community.multitheftauto.com/index.php?p= ... ls&id=5959 Mod: https://community.multitheftauto.com/index.php?p= ... ls&id=6055 DONE
  11. You have to enter the model ID you want to change.
  12. myonlake

    jetpack

    Or.. engineImportTXD(engineLoadTXD("Models-n-Sounds/jetpack.txd"),370) engineReplaceModel(engineLoadDFF("Models-n-Sounds/jetpack.dff",0),370) The script is executed when the resource starts, therefore you do not need that event.
  13. You do not need locals or globals to execute this, and secondly, you can remove LODs with the same function. But since the LOD is zero, there is no LOD. removeWorldModel
  14. You haven't declared the TXD model arguments. txd = engineLoadTXD("J2_wheels.txd") engineImportTXD(txd, MODEL)
  15. Why use a retarded admin panel in the first place? Too mainstream and secondly the script isn't much different if I made my own. It's simply because this guy wants to get through with his 100 computers and modems.
  16. I do not have a list, as I said. The only way to check them is...
  17. Mod. https://community.multitheftauto.com/index.php?p= ... ls&id=6051 Mod. https://community.multitheftauto.com/index.php?p= ... ls&id=5576 Mod. https://community.multitheftauto.com/index.php?p= ... ls&id=4773 Mod. https://community.multitheftauto.com/index.php?p= ... ls&id=5736 Mod. https://community.multitheftauto.com/index.php?p= ... ls&id=5631 DONE
  18. Perhaps update your server to 1.3.1?
  19. Mod: https://community.multitheftauto.com/index.php?p= ... ls&id=6047 Mod: https://community.multitheftauto.com/index.php?p= ... ls&id=6042 DONE
  20. myonlake

    MTASA Problems.

    I am sure your Grand Theft Auto: San Andreas is corrupted, because this shouldn't happen even on the worst computer.
  21. Console can mean two things, so please make sure you understand it. 1) Server console, which is the server you use to run your server 2) F8 console, which is the in-game console where you can write longer texts than regular talk button Doesn't matter which one of these you use; both use the same command 'say'. Thing is, you don't use a slash before the command, so keep that in mind.
  22. 1) Unzip the 'basicrp.zip' with 7zip or WinRar. 2) Move the 'acl.xml' and 'mtaserver.conf' into your deathmatch folder, let them replace the ones you are using. 3) Move the 'brp...' folders into your resources folder. 4) Start the server. 5) Set yourself as a 'Server Owner' in the 'acl.xml' by first making your account in-game and then adding the below code to the group. <object name="user.USERNAMEHERE"></object> Should work after a restart. -- Secondly, the gamemode is no longer supported. I am currently making a new version of this gamemode, so if you notice any bugs, then you have to wait and see the next gamemode. Also, commands can be checked from the lua -files from the 'brp...' folders.
  23. Hey, I have two issues that I'd like to get fixed since these never happened in the earlier versions of MTA before 1.3.1. So basically, when I start my server, it crashes right away, no error, no log, nothing. Just goes away. I try again, maybe does it again, sometimes doesn't. It takes me a couple of times to actually start the server, I'd like to know why this is happening and how can I get it fixed. Then about this Game Monitor thing. Why does it say.. .. in the beginning of the server log. It basically gives a response, 302: Moved temporarily. Does this mean they can't find me on Game Monitor or what? This has been an issue for me for a long time since 1.3.1.
×
×
  • Create New...