Reflex# Posted March 15, 2012 Posted March 15, 2012 ---> 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
Castillo Posted March 15, 2012 Posted March 15, 2012 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. Education is the most powerful weapon which you can use to change the world.
Kenix Posted March 15, 2012 Posted March 15, 2012 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.
Castillo Posted March 15, 2012 Posted March 15, 2012 True, my bad . San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Reflex# Posted March 15, 2012 Author Posted March 15, 2012 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
Kenix Posted March 15, 2012 Posted March 15, 2012 You need indicate model id for replace. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
BorderLine Posted March 15, 2012 Posted March 15, 2012 you need a shader. I mean he want replace vehicle.txd from models/generic/vehicle.txd check here https://wiki.multitheftauto.com/wiki/Eng ... rldTexture Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
JamalKrumme Posted May 5, 2012 Posted May 5, 2012 where did you get led 12v led light bars lights? -------------------------- led strip lighting led strip lighting outdoor
denny199 Posted May 5, 2012 Posted May 5, 2012 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
arezu Posted May 6, 2012 Posted May 6, 2012 "ReFleX" version="1.0.3" type="script" /> "vehicle.txd" /> "vehiclelightson128.png" />
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