Jump to content

Led Lights help


Reflex#

Recommended Posts

Posted

---> client.lua

function start () 
txd = engineLoadTXD("vehicle.txd") 
engineImportTXD(txd, vehicle) 

---> meta.xml

  
  
    "ReFleX" version="1.0.3" " type="script" /> 
    vehicle.txd" /> 
    " /> 
    .lua" type="client" /> 
 
  
 

What wrong?

Script is on on server,but dont working

Scripting in lua

Posted
function start ( ) 
    txd = engineLoadTXD ( "vehicle.txd" ) 
    engineImportTXD ( txd, 0 ) 
end-- you forgot to end the function. 
addEventHandler ( "onClientResourceStart", resourceRoot, start ) -- You forgot to attach a event handler to the function. 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function start ( ) 
    txd = engineLoadTXD ( "vehicle.txd" ) 
    engineImportTXD ( txd, txd ) -- Your variable name is 'txd' not 'vehicle'. 
end-- you forgot to end the function. 
addEventHandler ( "onClientResourceStart", resourceRoot, start ) -- You forgot to attach a event handler to the function. 

in function engineImportTXD 2 argument is model id, not TXD element.

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted

True, my bad :P.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function start ( ) 
    txd = engineLoadTXD ( "vehicle.txd" ) 
    engineImportTXD ( txd, txd ) -- Your variable name is 'txd' not 'vehicle'. 
end-- you forgot to end the function. 
addEventHandler ( "onClientResourceStart", resourceRoot, start ) -- You forgot to attach a event handler to the function. 

in function engineImportTXD 2 argument is model id, not TXD element.

resource dont work..i dont know why.

Scripting in lua

  • 1 month later...
Posted

you should read the wiki better and look right abover:

Client-only function

what u sayd:

What wrong?

Script is on on server,but dont working

Sometimes I dream about cheese

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