gohamvsgoku
Member
- Joined
- Aug 21, 2017
- Messages
- 151
- Reaction score
- 9
I have this script, that give outfit/addon for player with x storage.
on Creaturescripts
the script work but...
my problem is the player needs relog to get the addon, have some way to do this without relog? some function diferent?
on Creaturescripts
Lua:
function onLogin(player)
if player:getStorageValue(5005) == 1 then
player:addOutfitAddon(player:getSex() == PLAYERSEX_MALE and 131, 3 or 139, 3)
end
return true
end
the script work but...
my problem is the player needs relog to get the addon, have some way to do this without relog? some function diferent?