Skip to content

Exports (server)#

StartEarthquake#

Starts the earthquake.

Parameters:
force? - integer - The force applied to vehicles and objects (defaults to 1000).
frequency? - integer - The frequency at which the earth shakes (defaults to 3).
direction? - float - The direction of the earthquake (0.0-1.0 - randomized if not set)
seed? - integer - The seed used for the randomization (defaults to os.time if not set).

exports["EarthquakeSimulator"]:StartEarthquake(1000, 3, 0.5, os.time())

StopEarthquake#

Stops the earthquake.

exports["EarthquakeSimulator"]:StopEarthquake()