Wananazo Posted June 23, 2022 Share Posted June 23, 2022 --this is part of the inventory elseif itemUsed == "knive" or itemUsed == "pickaxe" or itemUsed == "scissor" or itemUsed == "batt" or itemUsed == "helmet" or itemUsed == "pole" then if GiveAndTakeAndGetItem("get", playerSource, itemUsed) >= 1 then if not isTimer(acao[playerSource]) then if not arma[playerSource] then setPedAnimation(playerSource, "BUDDY", "buddy_reload", 500, false, true, false, false, _, true) arma[playerSource] = itemUsed giveWeapon(playerSource, weapons[itemUsed][1], 1, true) PlaySound3D(playerSource, "put", 15) toggleControl(playerSource, "next_weapon", false) toggleControl(playerSource, "previous_weapon", false) else if arma[playerSource] == itemUsed then arma[playerSource] = nil takeWeapon(playerSource, weapons[itemUsed][1]) PlaySound3D(playerSource, "put", 15) toggleControl(playerSource, "next_weapon", true) toggleControl(playerSource, "previous_weapon", true) this is the trunk code takeWeapon(source, ID) elseif Slot3 == "Livre" then setElementData(Mala, "TS:SlotPorta3", Objeto) setElementData(Mala, "TS:QuantidadeSlotPorta3", Quantidade) setElementData(Mala, "TS:IDSlotPorta3", ID) takeWeapon(source, ID) -- here I want to call the weapon from the code snippet above but I can't establish the link elseif Slot4 == "Livre" then setElementData(Mala, "TS:SlotPorta4", Objeto) setElementData(Mala, "TS:QuantidadeSlotPorta4", Quantidade) setElementData(Mala, "TS:IDSlotPorta4", ID) takeWeapon(source, ID) --here I want to call the weapon from the code snippet above but I can't establish the link elseif Slot5 == "Livre" then setElementData(Mala, "TS:SlotPorta5", Objeto) setElementData(Mala, "TS:QuantidadeSlotPorta5", Quantidade) setElementData(Mala, "TS:IDSlotPorta5", ID) takeWeapon(source, ID) 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