Skip to content
Sammy-0 edited this page May 10, 2025 · 10 revisions

Under Construction! 🚧

This wiki is still under construction, and is not yet complete.

Globals

Lua Documentation on all RosaServer globals is maintained here

The Lua state has access to every standard 5.1 library, and all extensions from moonjit.

Types

Lua Documentation on the members and methods of every type is maintained here

Note:

  • 🔒 = read-only value, trying to set this will throw an error.
  • Type? = this value can be nil.
  • Methods must always have themselves passed as the first argument, i.e. player:update() and not player.update()
  • This wiki assumes you have jpxs/RosaServerCore installed.

Note:

  • Bellow are variables for various stuff for VERSION 38e
  • Credits to: mostly olv, jdb

Sounds

See event.sound and the EventSound hook.

Decimal Description
8 Car engine
10 Tire drift
11-18 Ricochet
19-20 Car crash
21-22 Bullet hit body
23-24 Bullet hit metal
25 Glass break
27 Phone ring
28-37 Phone buttons (0-9)
38 Phone busy signal
39 Magazine load
40 Bullet shell bounce
41 Gear shift
42 Helicopter
43-46 Train (different variations)
47 Factory whistle
48 Explosion
49 Computer dialup
50 Computer drive
71-76 AK-47 fire
77-82 M-16 fire
83-88 MP5 fire
89-94 Uzi fire
95-100 9mm fire

Item Types

With RosaServerCore you can type listitemtypes in the console to see a full updated list in case of Sub Rosa updates.

ID Name
0 Auto 5
1 AK-47
2 AK-47 Magazine
3 M-16
4 M-16 Magazine
5 Magnum
6 .45 Bullets
7 MP5
8 MP5 Magazine
9 Uzi
10 Uzi Magazine
11 9mm
12 9mm Magazine
13 Grenade
14 Bandage
15 Briefcase
16 Open Briefcase
17 Cash (Round)
18 Cash (World)
19 Black Disk
20 Green Disk
21 Blue Disk
22 White Disk
23 Gold Disk
24 Red Disk
25 Cell Phone
26 Walkie Talkie
27 Key
28 Door
29 Newspaper (World spawn paper)
30 Burger
31 Desk (Broken)
32 Lamp (Broken)
33 Pay Phone (.25 Phone)
34 Memo (Blank sheet of paper)
35 Soccer Ball
36 Rope
37 Box
38 Big Box (Plank)
39 Computer
40 Arcade
41 Table
42 tabletest2 (Table, no physics)
43 cubewall (White wall)
44 Bottle
45 Watermelon

Bullet Types

ID Type
00 AK-47
01 M-16
02 Auto 5 / MP5 / UZI / 9mm
03 Magnum

Computer Color Codes

https://en.wikipedia.org/wiki/Windows-1252#Character_set embim13

ID Hex Color
0 0x0 Black
1 0x1 Blue
2 0x2 Green
3 0x3 Cyan
4 0x4 Red
5 0x5 Magenta
6 0x6 Brown
7 0x7 Light Gray
8 0x8 Dark Gray
9 0x9 Light Blue
10 0xA Light Green
11 0xB Light Cyan
12 0xC Light Red
13 0xD Light Magenta
14 0xE Yellow
15 0xF White

Vehicle Types

With RosaServerCore you can type listvehicletypes in the console to see a full updated list in case of Sub Rosa updates.

ID Name
0 Town Car
1 Town Car 2 (Broken, Old Town Car Model with a Modeled Bumper.)
2 Metro (Broken, was used prior to 0.32. Very slow coupe)
3 Limo (Broken, was used prior to 0.32 by Megacorp before being replaced by the Town Car)
4 Turbo
5 Turbo S
6 Beamer
7 Van
8 Van 2 (Identical to Van but without a model or collision)
9 Minivan
10 Truck (Broken. Was seen in tweets as early as 2013.)
11 Trailer (Broken. Was seen in tweets as early as 2013. Was intended to be attached to the Truck)
12 Helicopter(Completely invisible besides the Propeller. Missing audio)
13 Train
14 No-clip vehicle
15 Hatchback
16 Test (Turbo, but weird)

Vehicle Colors

ID COLOR
00 Black
01 Red
02 Blue
03 Grey
04 White
05 Golden
06 Broken

Clothing colors

ID Shirt Suit
0 White Brown
1 Pink Black
2 Yellow Light Gray
3 Green Turquoise
4 Cyan Green
5 Red Pink
6 White Gold
7 White White
8 Red Red
9 Black Blue
10 Blue Dark Blue
11 Green Gray
12 White White
13 White White
14 White White
15 White White

Tie colors

ID Color
0 None
1 Green
2 Gold
3 Red
4 Pink
5 Dark Red
6 White
7 Light Gray
8 Black
9 Cyan
10 Purple
11 White
12 White
13 White
14 White
15 White

Necklaces

ID Type
00 None
01 Jewel Necklace
02 Dollar Necklace

Body Parts

ID Path Mass
00 Pelvis 14
01 Stomach 14
02 Torso 14
03 Head 8
04 Left Shoulder 3
05 Left Forearm 2.5
06 Left Hand 1.5
07 Right Shoulder 3
08 Right Forearm 2.5
09 Right Hand 1.5
10 Left Thigh 12
11 Left Shin 7
12 Left Foot 3
13 Right Thigh 12
14 Right Shin 7
15 Right Foot 3

Movement States

ID State
00 Standing
01 Mid air
02 Sliding
03 Floating
04 Inside of vehicle
05 Laying on ground
06 Straightened out legs

Input Flags

Bit Flag
0 Nothing
1 Left Mouse Button
2 Right Mouse Button
4 Jump (Space)
8 Crouch (Ctrl)
16 Shift
32 Drop item (Q)
2048 Grab (E)
4096 Reload (R)
8192 Switch hands (F)
262144 Delete
524288 Slide (Z)

Teams

ID Name
0 Goldmen Inc.
1 Monsota
2 OXS International
3 Nexaco
4 Pentacom
5 Prodocon
6 Megacorp
7-16 Unused. labeled as team 7, team 8, so on
17 Civilian/Spectator

Game Types

ID Type
0 Practice
1 Driving (Broken)
2 Racing (Broken)
3 Round
4 World
5 Eliminator
6 Cooperative
7 Versus
8 None

Game States

ID State
0 Idle (Intermission, but no HUD, AI disabled)
1 Intermission
2 In-Game
3 Restarting
4 Paused

Menu Tabs

ID Tab
00 Nothing
01 Enter City
02 Lobby
03 Empty Base Menu
09 World Car Shop
10 World Gun Store / Burger Shop / Clothing Store
11 World Store (Only "Done" button)
12 World Bank
13 World Bank
14 Round Corporation Weapons Menu
15 Round Corporation Ammo Menu
16 Round Corporation Equipment Menu
17 Round Corporation Vehicle Menu
18 Round Corporation Stock Menu
19 World Empty Corporation Menu
20 World Corporation Application Menu
22 World Corporation Hiring Menu
23 World Corporation Firing Menu
24 World Corporation Team Menu
25 World Corporation Requisition Menu

Mission Locations

ID Location
0 Hondo Park
1 Rio Granary
2 Isle of Burgers
3 Park above the Kamel Building
4 Bobson Dugnutt Museum
5 The Mall
6 Gas Station
7 Red Cube Park

Mission Types

ID Mission Has team1 Has team2
0 Acquisition from building/lab No No
1 Acquisition from towncar No No
2 Trade disk to other corp No No
3 Trade money for disk from other corp Yes No
4 Acquire disk from other corp by any means Yes No
5 Trade money for disk from other corp, three way deal Yes No
6 Acquire disk from other corp by any means, three way deal Yes No
7 Trade disk to other corp, double disk Yes No
8 Trade money for disk from two other corps, double disk Yes Yes
9 Acquire disk from two other corps by any means, double disk Yes Yes
Clone this wiki locally