Jump to content

New IDs and models for cars


KryngeerPL

Recommended Posts

Posted

Hi all. I have an idea. Can you try to make a script, which allow to add new car without replacing? I think, you must load 5 files from GTA SA to server MTA: handling.cfg, vehicles.ide, carcols.dat, cargrp.dat and carmods.dat. Then you can add lines for new ID (maybe copy a Banshee line and edit it). Then I can edit a freeroam panel and modloader config for new ID and its name. So it's possibly?

Posted
Yes, it's a problem because server loads files from game, not from server files. But can I change maybe Greenwood to Rhino? With cannon and other stuff for this?

You can modify them and replace the models through scripting.

Posted

Put this client side (client.lua):

addEventHandler('onClientResourceStart', resourceRoot, 
function()  
    txd = engineLoadTXD('vehicle.txd') 
    engineImportTXD(txd,411) 
    dff = engineLoadDFF('vehicle.dff',411) 
    engineReplaceModel(dff,411) 
end) 

Change 411 to the ID of the vehicle that you want to replace.

Add the txd and dff file of a custom vehicle model

Create meta.xml:

<meta> 
    <script src="client.lua" type="client"/> 
    <file src="vehicle.txd"/> 
    <file src="vehicle.dff"/> 
</meta> 

Posted

Nope, this is like ModLoader. You don't understood what I mean. I want to add new ID with new handling, carmods etc. and then change its model and textures, for example Rhino=432 (change to M1 Abrams) and Rhino2=612 (changed to T-90). Now you understand?

Posted
Nope, this is like ModLoader. You don't understood what I mean. I want to add new ID with new handling, carmods etc. and then change its model and textures, for example Rhino=432 (change to M1 Abrams) and Rhino2=612 (changed to T-90). Now you understand?

Problem is that you won't listen us! Solidsnake14 already told you about adding new id's!: "No, MTA has no support for new models" So, you can't create new ID. W H A T | Y O U | D O N 'T | U D E R S T A N D | H E R E |? ! ? !

Posted
But how do that? I don't see any vehicles.ide and other stuff. Maybe someone can do for me this script?
Nope, this is like ModLoader. You don't understood what I mean. I want to add new ID with new handling, carmods etc. and then change its model and textures, for example Rhino=432 (change to M1 Abrams) and Rhino2=612 (changed to T-90). Now you understand?

I understood you very well. You didn't understand us when we told you can only replace vehicle models and not add or change ID's. There is currently no way to do that in MTA.

Using the script is your best shot. If you want to change the handling use setModelHandling() as lcd1232 suggested.

Posted

OK, now I understand :) Maybe someone in stuff of MTA will make a function like addNewDff or etc. or maybe we will can edit all vehicles files from game on the server. OK topic can be close. Thanks for help !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...