Suerte Posted August 4, 2011 Posted August 4, 2011 TXD 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? 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.
bandi94 Posted August 4, 2011 Posted August 4, 2011 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 )
MTA Team qaisjp Posted August 5, 2011 MTA Team Posted August 5, 2011 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,
Suerte Posted August 5, 2011 Author Posted August 5, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now