> For the complete documentation index, see [llms.txt](https://legacy-script.gitbook.io/legacy-script/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-script.gitbook.io/legacy-script/lgf-utility/common/cl-common-replacement.md).

# CL COMMON REPLACEMENT

### Client Replacement Common (Still To Be Updated)

#### Player Functions:

```lua
-- Return Player Ped
exports.LGF_Utility:GetPed()

-- Return Player ID 
exports.LGF_Utility:GetPlayerId()

-- Return Player Health
exports.LGF_Utility:GetPlayerHealth()

-- Return Player Position (Params = ped or entity)
exports.LGF_Utility:GetPlayerPosition(ped)

-- Return if the player is alive (true) or dead (false)
exports.LGF_Utility:IsPlayerAlive(ped)

-- Return if the player is in a vehicle (true) or not (false)
exports.LGF_Utility:IsPlayerInVehicle(ped)

-- Return hashKey of the current weapon
exports.LGF_Utility:GetCurrentWeapon(ped)

```

#### Vehicle Functions:

```lua
-- Return Specific Vehicle Speed
exports.LGF_Utility:GetVehicleSpeed(ped)

-- Set Vehicle Door Status (true to open, false to close)
exports.LGF_Utility:OpenVehicleDoor(vehicle, open)

-- Return Vehicle Model Label and Class Number
exports.LGF_Utility:GetVehicleModelAndClass(vehicle)

-- Get the Vehicle Pede is using
exports.LGF_Utility:GetVehiclePed(PlayerPed)

-- Create Vehicle With Params
exports.LGF_Utility:CreateVehicle(params)
```
