WDS-Markoes Posted January 23, 2012 Share Posted January 23, 2012 Hey all. I need some help with my texture vgehshade01_lvs.txd / client script. I have a texture for the shades// but 1 shade is working and that is the: vgncarshade1.txd but id did the same with the vgEhshade01_lvs.txd.. and that one doenst work.. and i don''t understand why. Here is the client script: function txdClient () tekstura = engineLoadTXD("vgEhshade01_lvs.txd") engineImportTXD(tekstura, 8838 ) end addEventHandler( "onClientResourceStart", resourceRoot, txdClient ) function PAwloClient () tekstura = engineLoadTXD("vgncarshade1.txd") engineImportTXD(tekstura, 3458 ) end addEventHandler( "onClientResourceStart", resourceRoot, PAwloClient and this i put in the Meta file: script src="textures/client.lua" type="client" /> thx.. greetings Link to comment
BriGhtx3 Posted January 23, 2012 Share Posted January 23, 2012 function txdClient () tekstura = engineLoadTXD("textures/vgEhshade01_lvs.txd") engineImportTXD(tekstura, 8838 ) tekstura2 = engineLoadTXD("textures/vgncarshade1.txd") engineImportTXD(tekstura2, 3458 ) end addEventHandler( "onClientResourceStart", resourceRoot, PAwloClient) Link to comment
Kenix Posted January 23, 2012 Share Posted January 23, 2012 xthepr0mise,Your code is wrong function txdClient () tekstura = engineLoadTXD("textures/vgEhshade01_lvs.txd") engineImportTXD(tekstura, 8838 ) tekstura2 = engineLoadTXD("textures/vgncarshade1.txd") engineImportTXD(tekstura2, 3458 ) end addEventHandler( "onClientResourceStart", resourceRoot, PAwloClient) Correct function txdClient( ) local tekstura = engineLoadTXD( "textures/vgEhshade01_lvs.txd" ) engineImportTXD( tekstura, 8838 ) local tekstura2 = engineLoadTXD( "textures/vgncarshade1.txd" ) engineImportTXD( tekstura2, 3458 ) end addEventHandler( "onClientResourceStart", resourceRoot, txdClient ) Link to comment
BriGhtx3 Posted January 23, 2012 Share Posted January 23, 2012 Oh I corrected the other function Link to comment
hahec Posted January 23, 2012 Share Posted January 23, 2012 if it won't work try this, and by the way...name the script "client" (isn't nessesary but well...) and also don't forget to put the "vgncarshade1" and "vgEhshade01_lvs" moded files in your map file. function txdStarted () txd = engineLoadTXD("vgEhshade01_lvs.txd") engineImportTXD(txd, 8838) txd = engineLoadTXD("vgncarshade1.txd") engineImportTXD(txd, 3458) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), txdStarted ) meta.xml: Link to comment
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