justn Posted January 27, 2014 Share Posted January 27, 2014 Problem: The player who has his name as 'Test' will get a custom infernus mod, but the problem is, whenever i put my name as Test, the infernus mod doesn't change, can you tell me the problem ? Thanks ! CODE: function onResourceStart() if (getPlayerName(r) == "Test") then txd = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( txd, 411 ) dff = engineLoadDFF ( "infernus.dff", 411 ) engineReplaceModel ( dff, 411 ) end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) Link to comment
Bssol Posted January 27, 2014 Share Posted January 27, 2014 function onResourceStart() if (getPlayerName(localPlayer) == "Test") then txd = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( txd, 411 ) dff = engineLoadDFF ( "infernus.dff", 411 ) engineReplaceModel ( dff, 411 ) end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) Link to comment
justn Posted January 27, 2014 Author Share Posted January 27, 2014 Works fine, thanks. 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