# CFX::DUPLICATE_FUNCTION_REFERENCE

- **Hash:** `0xF4E2079D`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `DuplicateFunctionReference`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/DUPLICATE_FUNCTION_REFERENCE

## Signature

```c
char* DUPLICATE_FUNCTION_REFERENCE(char* referenceIdentity);
```

## Parameters

- `referenceIdentity` (`char*`)

## Returns

`char*`

## Usage

### Lua

```lua
local retval = DuplicateFunctionReference(referenceIdentity)

-- always available, by hash
local retval = Citizen.InvokeNative(0xf4e2079d, referenceIdentity, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = DuplicateFunctionReference(referenceIdentity);

// by hash
const retval = Citizen.invokeNative('0xf4e2079d', referenceIdentity, Citizen.returnResultAnyway(), Citizen.resultAsString());
```

### C#

```csharp
string retval = Function.Call<string>((Hash)0xf4e2079d, referenceIdentity);
```

## See also

- [CFX::DELETE_FUNCTION_REFERENCE](https://natives.borderlinerp.com/natives/CFX/DELETE_FUNCTION_REFERENCE.md)

*Sources: Cfx.re native reference.*
