Jump to content

Help with: Scritping/ shade texture


WDS-Markoes

Recommended Posts

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

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

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

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