Jump to content
  • 0

[SUGGESTION] Binding weapon slots for easy switching


Shagwrath

Question

  • 0

Could we add a command or something that we can use to switch our weapon slot instead of using the mousewheel?


addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),
function()
function changeWeaponSlot(commandName, slotNumber)
if (tonumber(slotNumber) >= 0 and tonumber(slotNumber) <= 12) then
setPedWeaponSlot(localPlayer,slotNumber);
outputChatBox("slot: "..slotNumber);
else
outputChatBox("0-12 ya idiot...");
end
end
addCommandHandler("slot", changeWeaponSlot);
end
);

This would be great, then I could bind all of these to my numbers, and switch super easy.


Link to comment
Share on other sites

3 answers to this question

Recommended Posts

×
×
  • Create New...