---
title: "SetVehicleOccupiedTick | open.mp"
description: "Set the occupied tick of a vehicle."
canonical: https://omp.itsneufox.com/pl/docs/scripting/functions/SetVehicleOccupiedTick
language: pl
---

# SetVehicleOccupiedTick

ostrzeżenie

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

ostrzeżenie

This function has not yet been implemented.

## Description

Set the occupied tick of a vehicle.

## Parameters

| Name | Description |
| --- | --- |
| vehicleid | The ID of the vehicle. |
| ticks | The ticks to set. |

## Return Values

**true** - Function executed successfully.

**false** - Function failed to execute.

## Examples

```c
public OnGameModeInit()
{
    new vehicleid = CreateVehicle(560, 2096.1917, -1328.5150, 25.1059, 0.0000, 1, 8, 60);

    SetVehicleOccupiedTick(vehicleid, 300);
    return 1;
}
```

## Related Functions

-   [GetVehicleOccupiedTick](https://omp.itsneufox.com/pl/docs/scripting/functions/GetVehicleOccupiedTick): Get the occupied tick of a vehicle.
