1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

How to configure starting inventory?

Discussion in 'Development' started by Jan Walton, Dec 2, 2014.

  1. So, this works for every citizen that was to join, how would we configure the settings so it would force the items into their inventory?
     
  2. duck

    duck Phant0m Legend

    You can use this hook in a plugin and add items through there.

    Code:
    -- Called when a player's default inventory is needed.
    function PLUGIN:GetPlayerDefaultInventory(player, character, inventory) 
    
    end;
     
    • Like Like x 1
  3. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    Hi @Xanthus

    If you browse through sv_kernel.lua and cl_kernel.lua in the framework you'll find all the hooks in the framework and often with some kind of example or a little comment describing the hook.

    Feel free to help us document further by adding pull-requests :) or, if you're good with wikis, help us expand our documentation @ http://wiki.cloudsixteen.com
     
    • Like Like x 1
    • Informative Informative x 1
  4. Xanthus

    Xanthus Graphics Artist, and Novice Coder Clockwork Customer

    I did not know this! Amazing! Thank you, I really appreciate it the help.
     

Previous Readers (Total: 0)