# sam.Config.set

> #### **sam.Config.set(** [**string**](https://wiki.facepunch.com/gmod/string) ke&#x79;**,** [**any**](https://wiki.facepunch.com/gmod/any) **value,**  *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [bool](https://wiki.facepunch.com/gmod/boolean) force *= false* **)**

## Description

Set a config's value.

On server it just sets it and casts it for everyone.

On client it sends a netmessage to set it, if you have permission it will be casted to everyone.

## Aguments

1. #### [**string**](https://wiki.facepunch.com/gmod/string) key
2. #### [**any**](https://wiki.facepunch.com/gmod/any) **value**
3. #### *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [bool](https://wiki.facepunch.com/gmod/boolean) force *= false*

   If force then it will override and cast it for everyone, it can be useful to use with tables.
