Jump to content

Can you add a *loaded* gun to a player's inventory?


Banjo

Recommended Posts

I know that you can use

            player:getInventory():AddItem("Base.itemname");

to add items to the player during startup, and also that you can use something like

                local playerstartbag = player:getInventory():AddItem("Base.Purse");
                playerstartbag:getItemContainer():AddItem("Base.Scissors");

to give them a bag with stuff already in it.

 

However, I can't figure out how to give the player a pistol that already contains a magazine, let alone a loaded magazine!

 

I'm sure it must be possible, but how? Does anyone know?

 

(I tried doing it like the "bag" method above, but it throws an error when trying to put a clip inside a gun that way)
 

Edited by Banjo
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...