Look at the instance properties on the left panel - you need to fill in the values for slotID and slot instance variables. 1 for the first slot, 2 for the second etc. And the same for weapons.
You can do this manually in the editor, or you can do this with events, for example, when a new weapon is picked up, find an empty slot and assign the weapon to that slotID