• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How repair items for addon

TehaceriaOts

New Member
Joined
Dec 4, 2017
Messages
19
Reaction score
0
Hey i have question in-game i have item such as hadow cowl, final judgement and other items who give addon,mount and my question is how i can repair this wher i can find script for it? In-game im use it but he dont work ;/
 
What server are you using? Are you getting Addons/Mounts from NPC? Quests?
 
if you man mean using this item then you will find it in data/actions
Ohh okey thanks but now i need script who give me example first addon mage or second addon mage. And something for mount ;d Or meybe i can use script for addon doll but with 1 reward? Okey for mount im get script now need only for addon
 
Last edited:
or if you want first or second addon only not full addon once then change those lines like this.
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getSex() == PLAYERSEX_FEMALE then
    player:addOutfitAddon(female outfit id, 2)
else
    player:addOutfitAddon(male outfit id, 1)
end
    return true
end
 
Last edited:
or if you want first or second addon only not full addon once then change those lines like this.
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getSex() == PLAYERSEX_FEMALE then
    player:addOutfitAddon(female outfit id, 2)
else
    player:addOutfitAddon(male outfit id, 1)
end
    return true
end
Hm but wher i can find full script?
 
What you want full script to do? The above one adds first addon for male/female outfit of your choice.
 
What you want full script to do? The above one adds first addon for male/female outfit of your choice.
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getSex() == PLAYERSEX_FEMALE then
    player:addOutfitAddon(female outfit id, 2)
else
    player:addOutfitAddon(male outfit id, 1)
end
    return true
end
if im put this on script he is work? I know i need change id on female,male but im try on citizen and this not work
 
Try this one
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getSex() == PLAYERSEX_FEMALE then
    player:addOutfitAddon(136, 2)
else
    player:addOutfitAddon(128, 2)
end
player:sendTextMessage(4, "You received your new outfit addons.")
   item:remove(1)
    return true
end
 
Last edited:
Edited it, You can change the 4 to any color you want and the message too.
 
Back
Top