Jump to content

[HELP] TXD doesnt change on marker hit


BenceDev

Recommended Posts

Hi guys!

I work on my server railway signal system, but if i go in test marker (for test the txd is change) it doesnt change.

Debugscript says:



WARNING: ls_feny_bal\system\client.lua:9: Error loading TXD @ 'engineLoadTXD' [states/fenyjelzo_szabad.txd]
WARNING: ls_feny_bal\system\client.lua:10: Bad argument @'engineImportTXD' [Expected txd at argument 1, got boolean]

 




Client Side: 


local modellname = "";
local modellID = 2880;


local markerTest = createMarker(1782.267578125, -1956.04296875, 12.5, "cylinder", 1.3, 255, 125, 150)

function proceedSignalOnMarkerHit(hitElement)
    txd_floors = engineLoadTXD ( modellname.."states/fenyjelzo_szabad.txd" )
    engineImportTXD ( txd_floors, modellID )
end
addEventHandler("onClientMarkerHit", getRootElement(), proceedSignalOnMarkerHit)
 


 

 
 
 
Link to comment
22 minutes ago, Overkillz said:

Are you sure that the file "states/fenyjelzo_szabad.txd" is loaded correctly ?

Might you could add a condition with "fileExists" function to confirm that it exists.

Regards.

okay, i check it

 

the fenyjelzo_szabad.txd is doesn't exist.

How do i load it?

Link to comment

meta.xml

 

<meta>
    <script src="client.lua" type="client" />
    <script src="server.lua" type="server" />


	<file src="fenyjelzo.col" />
	<file src="fenyjelzo.txd" />
	<file src="fenyjelzo.dff" />

	<script src="system/client.lua" type="client" />
    <script src="system/server.lua" type="server" />

    <file src="system/states/fenyjelzo_szabad.txd" />
</meta>

 

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