Jump to content

Problem replacing dff/txd of Tec9, gift weapons, parachute..


Recommended Posts


I'm replacing weapons in my server, but the problem is that when I replace, Tec9, parachute, dildos, flowers..... and I enter uin the server it crashes

It's not problem of the mod, I have tried a lot of them, it's just these weapons.... :/

I have thought that maybe is not possible to change them...

(I write good the scripts, wapons ids, files in resource....) I've replaced all weapons succesfully...

Why I can't change tec9, parachute, flowers........?

Link to comment
Show us the script that replaces the textures, if you could, please.


for example (Tec9)

function replaceModel ( ) 
  txd = engineLoadTXD("files/tec9mod.txd", 372 ) 
  engineImportTXD(txd, 372) 
  dff = engineLoadDFF("files/tec9mod.dff", 0 ) 
  engineReplaceModel(dff, 372) 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 

(the folder is "files" and meta is ok... no matter what mod I try to use)

I've changed all weapons, and work, but Tec9, flowers.. parachute.. nope :/ I've changed spraycan and camera too and they work...

Link to comment
  • 1 month later...

Try this

--Client side

function applyMods() 
local skin = engineLoadTXD("files/tec9mod.txd", true) 
engineImportTXD(skin, 352) 
local skin = engineLoadDFF("files/tec9mod.dff", 352) 
engineReplaceModel(skin, 352) 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), applyMods) 

Link to comment

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...