ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setFPSLimit

Function

setFPSLimit

ServerMiscellaneousIdentical to MTA:SA

Sets the frames per second limit (0-32767). The value is stored for compatibility with existing scripts (getFPSLimit) but does not cap the in-game frames yet; the player sets the limit in the game options.

Syntax

bool setFPSLimit(int fpsLimit)

Arguments

fpsLimitint
The limit.

Returns

true on success.

Example

setFPSLimit(60)

See also