Jump to content

Suggestion: c_freecrafting(3) to give player 3 free crafting


Recommended Posts

You can simply iterate through the player list.

function c_allcrafting()
  for _,v in pairs(AllPlayers) do
    v.components.builder:GiveAllRecipes()
  end
end

Or you can select the player with c_select(), then apply c_freecrafting()

Link to comment
Share on other sites

On 10/8/2022 at 10:35 AM, hhh2 said:

You can simply iterate through the player list.

function c_allcrafting()
  for _,v in pairs(AllPlayers) do
    v.components.builder:GiveAllRecipes()
  end
end

Or you can select the player with c_select(), then apply c_freecrafting()

Or you can do c_freecrafting(AllPlayers[3]) or 

function allcrafting() for_,v in pairs (AllPlayers) do c_freecrafting(v) end end 

On 10/8/2022 at 10:11 AM, marlamade said:

currently you can only give free crafting to yourself using console commands. You should be able to pass a player id as an agument to give free crafting to others.

Huh you didn't know you could use AllPlayers?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...