Ryosuke Posted June 4, 2018 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
DNL291 Posted June 4, 2018 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 Please do not PM me with scripting related question nor support, use the forums instead.
Ryosuke Posted August 9, 2018 Author 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
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