Ryosuke Posted June 4, 2018 Share Posted June 4, 2018 (edited) Hi, I'd like some help solving the problems in my script. it substitutes objects per table, but I can not verify the name and ID and give the correct functions to run everything, someone to help? Garage_OBJ_COL = { {"garage_1.col",1484}, {"garage_2.col",1485}, } function replacemodels(player) for i,OBJ in ipairs(Garage_OBJ_COL) do table.insert (engineLoadCOL,{OBJ[1]}) table.insert (engineReplaceCOL,{OBJ[2]}) end end addEventHandler("onResourceStart",root,replacemodels) Edited June 4, 2018 by Elvis Willian Link to comment
DNL291 Posted June 4, 2018 Share Posted June 4, 2018 (edited) Garage_OBJ_COL = { {"garage_1.col",1484}, {"garage_2.col",1485}, } function replacemodels(player) for i,v in ipairs(Garage_OBJ_COL) do engineReplaceCOL( engineLoadCOL(v[1]), v[2] ) end end addEventHandler("onClientResourceStart",resourceRoot,replacemodels) It's a client-side code. Edited June 4, 2018 by DNL291 fix Link to comment
Ryosuke Posted August 9, 2018 Author Share Posted August 9, 2018 On 04/06/2018 at 19:31, DNL291 said: Garage_OBJ_COL = { {"garage_1.col",1484}, {"garage_2.col",1485}, } function replacemodels(player) for i,v in ipairs(Garage_OBJ_COL) do engineReplaceCOL( engineLoadCOL(v[1]), v[2] ) end end addEventHandler("onClientResourceStart",resourceRoot,replacemodels) It's a client-side code. thanks bro 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