Personal tools

User:Dreadmullet/sandbox

From JC2-MP Documentation

Jump to: navigation, search



Returns    nil
Prototype    World:Remove()
Description    No description





Static functions

Returns Prototype
World Create()

Functions

Returns Prototype
iterator GetCheckpoints()
number GetId()
iterator GetPlayers()
number GetTime()
number GetTimeStep()
iterator GetVehicles()
number GetWeatherSeverity()
Remove()
SetTime(number)
SetTimeStep(number)
SetWeatherSeverity(number)

Operators

Returns Prototype
World == World

Notes

You can access the default world with the DefaultWorld global.




Global classes

Config

Chat

Server

SQL

Classes

CellID

SQLStatement

SQLCommand
SQLQuery

SQLTransaction

StreamableObject

Player
Vehicle
Checkpoint

UDPSocket

World

Enums

CollisionGroup

VehicleSeat

Events

ClientModuleLoad

PlayerAuthenticate

PlayerDeath

PlayerEnterCheckpoint

PlayerEnterMG

PlayerEnterStunt

PlayerExitCheckpoint

PlayerExitMG

PlayerExitStunt

PlayerMoneyChange

PlayerSpawn

PlayerStateChange

ServerStart

Shared events

ModuleLoad

ModuleUnload

ModulesLoad

PlayerChat

PlayerEnterVehicle

PlayerExitVehicle

PlayerJoin

PlayerQuit

PostTick

PreTick

Additions to standard Lua libraries

io.createdir(string)

io.directories(string)

io.files(string)







Lua Logo.gif

Lua is a powerful, fast, lightweight, embeddable scripting language.

It is the scripting language used in JC2-MP.

Lua 5.2 is the version supported.

You are welcome to join our IRC channel, #jc2-mp.lua, on irc.jc-mp.com.

Tutorials
Server Client Shared