# PROPSET::_CREATE_PROP_SET_2

- **Hash:** `0x899C97A1CCE7D483`
- **Namespace:** PROPSET
- **Runtime name (Lua/JS):** `CreatePropSet_2`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PROPSET/_CREATE_PROP_SET_2

## Signature

```c
PropSet _CREATE_PROP_SET_2(Hash propsetType, float x, float y, float z, int placementType, float heading, float zProbe, BOOL p7, BOOL useVegMod);
```

## Parameters

- `propsetType` (`Hash`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `placementType` (`int`)
- `heading` (`float`)
- `zProbe` (`float`)
- `p7` (`BOOL`)
- `useVegMod` (`BOOL`)

## Returns

`PropSet`

## Description

Same as _CREATE_PROP_SET

## Usage

### Lua

```lua
local retval = CreatePropSet_2(propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod)

-- always available, by hash
local retval = Citizen.InvokeNative(0x899C97A1CCE7D483, propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = CreatePropSet_2(propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod);

// by hash
const retval = Citizen.invokeNative('0x899C97A1CCE7D483', propsetType, x + 0.0000001, y + 0.0000001, z + 0.0000001, placementType, heading + 0.0000001, zProbe + 0.0000001, p7, useVegMod, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x899C97A1CCE7D483, propsetType, x, y, z, placementType, heading, zProbe, p7, useVegMod);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## Related enums

- [PlacementType](https://natives.borderlinerp.com/enums/PlacementType.md) — 6 values

## See also

- [PROPSET::_REQUEST_PROP_SET_2](https://natives.borderlinerp.com/natives/PROPSET/_REQUEST_PROP_SET_2.md) — Same as _REQUEST_PROP_SET

*Sources: alloc8or RDR3 NativeDB.*
