native

SetPackPosition

Syntax

native SetPackPosition(DataPack:pack, DataPackPos:position);

Description

Sets the datapack read/write position.

Parameters

pack Datapack handle
position New position to set

Note

This should only ever be used with (known to be valid) positions
returned by GetPackPosition(). It is not possible for plugins to safely
compute datapack positions.

Return

This function has no return value.

Error

If an invalid handle is provided, or the new position is
out of datapack bounds, an error will be thrown.