Sign in to follow this  
Suerte

HELP: TXD. wtf

Recommended Posts

TXD

help.png

CLIENT.LUA

resourceRoot = getResourceRootElement(getThisResource()) 
function loadTXD() 
    local txd = engineLoadTXD ( "FAM1.txd" ) --returns userdata 
    engineImportTXD ( txd, 105 ) --returns true 
end 
addEventHandler('onClientResourceStart', resourceRoot, loadTXD ) 

META.XML

<meta> 
    <info author="suerte" type="script" version="1.0.0" /> 
    <script src="server.lua" type="server" /> 
    <script src="client.lua" type="client" /> 
    <file src="FAM1.txd" /> 
</meta> 

Help

So what did I do wrong? :S Console looks like everything worked.. it just.. doesn't work. I hope its something stupid :) i'll keep at it but any help is massifly appreciated.

Share this post


Link to post

use this http://mta.dzek.eu/peds/

and is

"onClientResourceStart" not 'onClientResourceStart' 

function loadTXD() 
    local txd = engineLoadTXD ( "FAM1.txd" ) --returns userdata 
    engineImportTXD ( txd, 105 ) --returns true 
end 
addEventHandler("onClientResourceStart", root, loadTXD ) 

Share this post


Link to post

bandi, " and ' are the same, they just can't be used together in a string.

Suerte I have noticed skins only work for the first server u go on,

Share this post


Link to post
bandi, " and ' are the same, they just can't be used together in a string.

Suerte I have noticed skins only work for the first server u go on,

Yes, the function was definitely called on the resource start. Nice resource generator though :)

But that is a weird thing qaisjp.. This morning I thought I'd try again but it was already working! Cool, I think.

EDIT: just for the future.. if you have already logged into your server, you need to restart MTA to load the skin.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.