-misterX- Posted December 19, 2012 Share Posted December 19, 2012 the console says bad argument on getaccountdata and setelementmodel... help! function setModel(source) local playeraccount = getPlayerAccount(source) -- gets players account local skin = getAccountData (playeraccount, "standardskin") -- gets players skin setElementModel(source, skin) end addEventHandler("onPlayerSpawn",root,setModel) Link to comment
Castillo Posted December 19, 2012 Share Posted December 19, 2012 function setModel(source) Remove 'source' from there, is already defined by it's own. Link to comment
Cadu12 Posted December 19, 2012 Share Posted December 19, 2012 onPlayerSpawn doesnt have any source in parameters. You should read wiki. Link to comment
Kenix Posted December 19, 2012 Share Posted December 19, 2012 https://wiki.multitheftauto.com/wiki/Event_system 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