Jump to content

masgoku

Members
  • Posts

    8
  • Joined

  • Last visited

Details

  • Gang
    [Gta-MnG]

masgoku's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. It is downloading for them I have asked sometimes things will show but other things won't when it all shows for me so I know its working.
  2. Ok got a bunch of models and skins swapped out I can see them but others that join server can't see them.
  3. I have been working on replacing vehicle models at first I was having a issue where only 4 cars would replace now they won't replace I need help. P.S I recently reinstalled windows. Server.Lua function ReplaceCommand ( ) triggerClientEvent( "replaceVeh", getRootElement(), replaceVeh ) end addCommandHandler( "replace", ReplaceCommand ) Skins(Client).Lua local vehicls = { -- [carID] = "car file name", [557] = "monster3", [411] = "infernus", [415] = "cheetah", [545] = "hustler", [541] = "bullet", } function ReplaceVehicle ( ) for id,name in pairs(vehicls) do txd = engineLoadTXD ( name..".txd" ) engineImportTXD ( txd, id ) dff = engineLoadDFF ( name..".dff", 0 ) engineReplaceModel ( dff, id ) end end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) Meta.XML <meta> <info author='masgoku' version='1.0' name='Skins' description='Model Swap' type='script' /> <script src="skins.lua" type="client" /> <script src="server.lua" type="server" /> <file src="vehicles/bullet.dff" /> <file src="vehicles/bullet.txd" /> <file src="vehicles/cheetah.dff" /> <file src="vehicles/cheetah.txd" /> <file src="vehicles/comet.dff" /> <file src="vehicles/comet.txd" /> <file src="vehicles/huntley.dff" /> <file src="vehicles/huntley.txd" /> <file src="vehicles/hustler.dff" /> <file src="vehicles/hustler.txd" /> <file src="vehicles/infernus.dff" /> <file src="vehicles/infernus.txd" /> <file src="vehicles/monster3.dff" /> <file src="vehicles/monster3.txd" /> </meta>
  4. Yeah good Idea I just changed the link and here it is https://www.dropbox.com/s/x115kys320mlav3/Vehicles.zip?dl=0 Now when you click the one above it is also dropbox.
  5. Hey, here are the vehicle models in a zip for you guys to download and work with. Vehicles.zip I uploaded the file to dropbox for more convenience. So enjoy and maybe we can resolve the issue I am having.
  6. I tried ALw7sh's method still same issue think it might just be a weird issue with MTA honestly.
  7. Hey I tried this the same issue is still happening not sure why, but thanks I will use this method in the future much more clean looking.
  8. I have made a script for replacing vehicle models in my server, it work fine for the first four vehicles and now it won't work at all but script is the same all the way through out. This is the script below and before you ask I do have everything in the meta for the models. function ReplaceVehicle ( ) txd = engineLoadTXD ( "monster3.txd" ) engineImportTXD ( txd, 557 ) dff = engineLoadDFF ( "monster3.dff", 0 ) engineReplaceModel ( dff, 557 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) function ReplaceVehicle ( ) txd = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( txd, 411 ) dff = engineLoadDFF ( "infernus.dff", 0 ) engineReplaceModel ( dff, 411 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) function ReplaceVehicle ( ) txd = engineLoadTXD ( "cheetah.txd" ) engineImportTXD ( txd, 415 ) dff = engineLoadDFF ( "cheetah.dff", 0 ) engineReplaceModel ( dff, 415 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) function ReplaceVehicle ( ) txd = engineLoadTXD ( "hustler.txd" ) engineImportTXD ( txd, 545 ) dff = engineLoadDFF ( "hustler.dff", 0 ) engineReplaceModel ( dff, 545 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) function ReplaceVehicle ( ) txd = engineLoadTXD ( "comet.txd" ) engineImportTXD ( txd, 480 ) dff = engineLoadDFF ( "comet.dff", 0 ) engineReplaceModel ( dff, 480 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle )
×
×
  • Create New...