Hello @beastn
I found a bug with your script,
The way you have it set up is it checks sex and gives u the addons for your sex.
IF a player changes there sex they wont have the addons they recieved.
I think its an easy fix u just remove the male/female part and make it give both them eg. citizen 128,136 (male,female)
-Martin
Show me login.luaLua Script Error: [Action Interface]
data/actions/scripts/custom/modalAD.luanUse
data/actions/scripts/custom/modalAD.lua:47: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalAD.lua:47: in function <data/actions/scripts/custom/modalAD.lua:46>
Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalMD.luanUse
data/actions/scripts/custom/modalMD.lua:79: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalMD.lua:79: in function <data/actions/scripts/custom/modalMD.lua:78>
I have this error in TFS when I use the items as determined doll .
Issue is in the action script, player is not a player object, it's a number which means it's probably taking cidShow me login.lua
Are you using tfs 1.0? If so, after the onUse function, putLua Script Error: [Action Interface]
data/actions/scripts/custom/modalAD.luanUse
data/actions/scripts/custom/modalAD.lua:47: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalAD.lua:47: in function <data/actions/scripts/custom/modalAD.lua:46>
Lua Script Error: [Action Interface]
data/actions/scripts/custom/modalMD.luanUse
data/actions/scripts/custom/modalMD.lua:79: attempt to index local 'player' (a number value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/custom/modalMD.lua:79: in function <data/actions/scripts/custom/modalMD.lua:78>
I have this error in TFS when I use the items as determined doll .
player = Player(player)
if not player then
return false
end
http://pastebin.com/nRF0sje8 line 60I ran into this on my server aswell. I'll update the scripts when i get home
if player:getSex() == 0 then
player:addOutfitAddon(outfits[choiceId].female, 3)
else
player:addOutfitAddon(outfits[choiceId].male, 3)
end
player:addOutfitAddon(outfits[choiceId].male, 3)
player:addOutfitAddon(outfits[choiceId].female, 3)
lol whoopshttp://pastebin.com/nRF0sje8 line 60
forCode:if player:getSex() == 0 then player:addOutfitAddon(outfits[choiceId].female, 3) else player:addOutfitAddon(outfits[choiceId].male, 3) end
Code:player:addOutfitAddon(outfits[choiceId].male, 3) player:addOutfitAddon(outfits[choiceId].female, 3)
I had a bug by using a doll in the ground, than grabbing 2 dolls, using one, I got one outfit and had 2 dolls removed. I'm not sure if the only change I made was adding window:ModalWindowDelete() after line 53.lol whoops
Lua Script Error: [Action Interface]Issue is in the action script, player is not a player object, it's a number which means it's probably taking cid
Are you using tfs 1.0? If so, after the onUse function, put
Code:player = Player(player) if not player then return false end
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/custom/modalMD.lua:onModalWindow
data/creaturescripts/scripts/custom/modalMD.lua:91: attempt to index a nil value
stack traceback:
[C]: in function '__index'
data/creaturescripts/scripts/custom/modalMD.lua:91: in function <data/creaturescripts/scripts/custom/modalMD.lua:78>
Becuase it needs to be in the bp =)when i use from the ground, the item wont be removed
but i still can receive the addon from the ground.Becuase it needs to be in the bp =)
:S you must be using an out of date one... Use my new one https://otland.net/threads/tfs-1-2-modal-addon-doll-2-0.243230/but i still can receive the addon from the ground.