Markn1 Posted September 13, 2017 Share Posted September 13, 2017 Does not save! Debug: no errors. Help pls function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local wpn1 = getAccountData (theCurrentAccount, "ak47") setPedStat (source, wpn1, 77) end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "ak47", getPedStat (source, 77)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) Link to comment
DNL291 Posted September 13, 2017 Share Posted September 13, 2017 Os argumentos em setPedStat estão errados e o uso de isGuestAccount não é necessário. 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