alt.getNetTime

Returns a result for the current network time on server-side.

Declaration

alt.getNetTime(): number

Usage

alt.getNetTime();

Real World Example

const netTime = alt.getNetTime();
alt.log(`The current netTime is: ${netTime}`);

These examples assume you have imported alt from alt-server.

results matching ""

    No results matching ""