> For the complete documentation index, see [llms.txt](https://theadam4.gitbook.io/wonder-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theadam4.gitbook.io/wonder-scripts-docs/scripts/wonder-apartments.md).

# Wonder Apartments

## Installation

### Putting script to server

* Download script from [keymaster](https://keymaster.fivem.net/)
* Put in your server files
* put **ensure wonder\_apartments** in your server.cfg

### Inserting into database

* open your program where you work with your server database
* find **import file** button
* select **import.sql** file

```sql
ALTER TABLE users ADD wonder_apartments VARCHAR(32) NOT NULL DEFAULT 'no';

CREATE TABLE IF NOT EXISTS `wonder_apartments` (
  `identifier` varchar(46) NOT NULL,
  `apartmentid` int(50) NOT NULL AUTO_INCREMENT,
  `purchased` varchar(50) NOT NULL DEFAULT 'no',
  `size` varchar(50) NOT NULL,
  `pincode` int(4) DEFAULT NULL,
  PRIMARY KEY (`apartmentid`) USING BTREE
);
```
