> For the complete documentation index, see [llms.txt](https://mstudio-1.gitbook.io/mstudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mstudio-1.gitbook.io/mstudio/kz-resources/editor-8/exports/client-exports.md).

# Client Exports

<table data-header-hidden><thead><tr><th width="226"></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Export</strong></td><td><strong>Description</strong></td><td><strong>Arguments</strong></td><td><strong>Returns</strong></td></tr><tr><td>startPlacement(itemName)</td><td>Manually starts the placement ghost mode for a specific item.</td><td><code>itemName</code> (string)</td><td><code>nil</code></td></tr></tbody></table>

## 📥 Export Usage Example

**Integration with Item Buttons**\
Below is an example of how to link the export to a functional button within an item menu:

{% hint style="info" icon="box" %}
Example for items
{% endhint %}

#### ../ox\_inventory/data/items.lua

```lua
	['water'] = {
		label = 'Acqua',
		weight = 70,
		client = {
			status = { thirst = 200000 },
			anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
			prop = { model = `prop_ld_flow_bottle`, pos = vec3(0.03, 0.03, 0.02), rot = vec3(0.0, 0.0, -1.5) },
			usetime = 2500
		},
		buttons = {
			{
				label = "Place",
				action = function()
					exports['Kz-PlaceableItems']:startPlacement('water')
				end
			}
		}
	},
```

{% hint style="info" icon="gun-squirt" %}
Example for weapons
{% endhint %}

#### ../ox\_inventory/data/weapons.lua

```lua
		['WEAPON_PISTOL'] = {
			label = 'Pistol',
			weight = 1130,
			durability = 0.1,
			ammoname = 'ammo-9',
			buttons = {
				{
					label = "Place",
					action = function()
						exports['Kz-PlaceableItems']:startPlacement('WEAPON_PISTOL')
					end
				}
			}
		},
```

#### ../Kz-PlaceableItems/shared/config.lua

Link the element to the script

```lua
Config.Items = {
    ---....
    ["WEAPON_PISTOL"] = { label = "Pistol", sizes = { [1] = "w_pi_pistol" } },
    ["water"] = { label = "Bottle", sizes = { [1] = "prop_ld_flow_bottle" } }
}
```
