Machine Posted February 12, 2019 Share Posted February 12, 2019 so i have this code function replaceModel() banner = engineLoadTXD("ce_payspray.txd", 12978) engineImportTXD( banner, 12978 ) dff = engineLoadDFF("sw_shed02.dff", 12978) engineReplaceModel( dff, 12978 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) can someone tell me what am i doing wrong because it does start but the banner didnt change the object i am trying to replace is the 12978 sw_SHED02 Link to comment
#DaNiLiN Posted February 12, 2019 Share Posted February 12, 2019 Google translator Is there a mistake? Link to comment
Machine Posted February 12, 2019 Author Share Posted February 12, 2019 What the hell are you talking about u didn't understand what I said ? I already explained what's going on I am trying to change the little sign which is on the object 12978 so I can put my own logo . When I start the script it does start without errors but no change happen to the sign it stays the same Link to comment
Dimos7 Posted February 12, 2019 Share Posted February 12, 2019 function replaceModel() banner = engineLoadTXD("ce_payspray.txd") engineImportTXD( banner, 12978 ) dff = engineLoadDFF("sw_shed02.dff") engineReplaceModel( dff, 12978 ) end addEventHandler ( "onClientResourceStart", resourceRoot , replaceModel) Link to comment
iDannz [Breno] Posted February 12, 2019 Share Posted February 12, 2019 maybe the problem is in your texture or dff model Link to comment
Machine Posted February 12, 2019 Author Share Posted February 12, 2019 i thought of that at first but thanks to Dimos7 its working perfectly now 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