xuaNN Posted January 5, 2019 Share Posted January 5, 2019 (edited) Hello everybody, I uploaded to my server a new sword animation, but i can't change original sword animations with my new ifp. how can i do it? Edited January 5, 2019 by xuaNN Link to comment
Captain Cody Posted January 5, 2019 Share Posted January 5, 2019 (edited) https://wiki.multitheftauto.com/wiki/EngineLoadIFP https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation swordAnimations = { 'sword_1', 'sword_2', 'sword_3', 'sword_4', 'sword_block', 'sword_hit_1', 'sword_hit_2', 'sword_hit_3', 'sword_idle', 'sword_part' } local IFP = engineLoadIFP( "sword.ifp", 'sword.custom' ) if IFP then for i,v in pairs(swordAnimations) do engineReplaceAnimation( localPlayer, "sword", v, 'sword.custom', v ) end else print('Failed to load - ','Sword.ipf') end Not tested, but should work, ensure to define it in meta properly and run that client side for everyone. Edited January 5, 2019 by CodyJ(L) Link to comment
xuaNN Posted January 6, 2019 Author Share Posted January 6, 2019 This worked for me after some edits. Thank you man. 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