Skip to main content

Doors Issue

Prevent Climbing on Closed Sewer Doors

Ensure that sewer doors are not climbable when they are closed.

Solution

Apply a ped config flag when the door is closed to prevent climbing:

Example:

const ped = PlayerPedId();
//If it's true, the ped won't be able to climb
const isDoorClosed = true;
SetPedConfigFlag(ped, 146, isDoorClosed);