Skip to content

Packet List

Nexius edited this page Oct 9, 2021 · 36 revisions

Incoming Packets

  • ID_CONNECTION_REQUEST - ID: 11

Parameters: UINT8 Packet_ID

  • ID_AUTH_KEY - ID: 12

Parameters: UINT8 Packet_ID, UINT8 key_length, char[] key

Additional Information: This packet responds with an authentication key.

  • ID_MODIFIED_PACKET - ID: 38

Parameters: UINT8 Packet_ID

  • ID_DRIVER_SYNC - ID: 200

Parameters: UINT8 Packet_ID, UINT16 vehicle_id, UINT16 lrkey, UINT16 udkey, UINT16 keys, float quat_w, float quat_x, float quat_y, float quat_z, float X, float Y, float Z, float velocity_x, float velocity_y, float velocity_z, float vehicle_health, UINT8 player_health, UINT8 player_armour, 2_BITS additional_key, 6_BITS weapon_id, UINT8 siren_state, UINT8 landing_gear_state, UIN16 trailer_id, float train_speed

Additional Information: train_speed has different data depending on vehicle model. It can contain following values in it's 32 bits:

  • FLOAT train speed for trains
  • FLOAT bike incline for bikes
  • Uint16 + Uint16 Hydra thrust angle
  • ID_RCON_COMMAND - ID: 201

Parameters: UINT8 Packet_ID, UINT32 text_length, STRING cmd_text

  • ID_AIM_SYNC - ID: 203

Parameters: UINT8 Packet_ID, UINT8 cam_mode, float cam_front_vec_x, float cam_front_vec_y, float cam_front_vec_z, float cam_pos_x, float cam_pos_y, float cam_pos_z, float aim_z, 2_BITS weapon_state, 6_BITS cam_zoom, UINT8 aspect_ratio

  • ID_WEAPONS_UPDATE - ID: 204

Parameters: UINT8 Packet_ID, UINT8 slot_0, UINT8 weapon_0, UINT16 ammo_0, UINT8 slot_1, UINT8 weapon_1, UINT16 ammo_1, UINT8 slot_2, UINT8 weapon_2, UINT16 ammo_2, UINT8 slot_3, UINT8 weapon_3, UINT16 ammo_3, UINT8 slot_4, UINT8 weapon_4, UINT16 ammo_4, UINT8 slot_5, UINT8 weapon_5, UINT16 ammo_5, UINT8 slot_6, UINT8 weapon_6, UINT16 ammo_6, UINT8 slot_7, UINT8 weapon_7, UINT16 ammo_7, UINT8 slot_8, UINT8 weapon_8, UINT16 ammo_8, UINT8 slot_9, UINT8 weapon_9, UINT16 ammo_9, UINT8 slot_10, UINT8 weapon_10, UINT16 ammo_10, UINT8 slot_11, UINT8 weapon_11, UINT16 ammo_11

  • ID_STATS_UPDATE - ID: 205

Parameters: UINT8 Packet_ID, INT32 money, INT32 drunk_level

  • ID_BULLET_SYNC - ID: 206

Parameters: UINT8 Packet_ID, UINT8 hit_type, UINT16 hit_id, float origin_x, float origin_y, float origin_z, float hit_pos_x, float hit_pos_y, float hit_pos_z, float offset_x, float offset_y, float offset_z, UINT8 weapon_id

  • ID_ONFOOT_SYNC - ID: 207

Parameters: UINT8 Packet_ID, UINT16 lrKey, UINT16 udKey, UINT16 keys, float X, float Y, float Z, float quat_w, float quat_x, float quat_y, float quat_z, UINT8 health, UINT8 armour, 2_BITS additional_key, 6_BITS weapon_id, UINT8 special_action, float velocity_x, float velocity_y, float velocity_z, float surfing_offsets_x, float surfing_offsets_y, float surfing_offsets_z, UINT16 surfing_vehicle_id, INT16 animation_id, INT16 animation_flags

  • ID_UNOCCUPIED_SYNC - ID: 209

Parameters: UINT8 Packet_ID, UINT16 vehicle_id, UINT8 seat_id, float roll_x, float roll_y, float roll_z, float direction_x, float direction_y, float direction_z, float X, float Y, float Z, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z, float vehicle_health

  • ID_TRAILER_SYNC - ID: 210

Parameters: UINT8 Packet_ID, UINT16 trailer_id, float X, float Y, float Z, float quat_x, float quat_y, float quat_z, float velocity_x, float velocity_y, float velocity_z, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z

  • ID_PASSENGER_SYNC - ID: 211

Parameters: UINT8 Packet_ID, UINT16 vehicle_id, 2_BITS drive_by, 6_BITS seat_id, 2_BITS additional_key, 6_BITS weapon_id, UINT8 health, UINT8 armour, UINT16 lrkey, UINT16 udkey, UINT16 keys, float X, float Y, float Z

  • ID_SPECTATING_SYNC - ID: 212

Parameters: UINT8 Packet_ID, UINT16 lrkey, UINT16 udkey, UINT16 keys, float X, float Y, float Z

Outgoing Packets

  • ID_AUTH_KEY - ID: 12

Parameters: UINT8 Packet_ID, UINT8 key_length, char[] key

Additional Information: This packet request an authentication key.

  • ID_NO_FREE_INCOMING_CONNECTIONS - ID: 31

Parameters: UINT8 Packet_ID

  • ID_DISCONNECTION_NOTIFICATION - ID: 32

Parameters: UINT8 Packet_ID

  • ID_CONNECTION_LOST - ID: 33

Parameters: UINT8 Packet_ID

  • ID_CONNECTION_REQUEST_ACCEPTED - ID: 34

Parameters: UINT8 Packet_ID

  • ID_CONNECTION_ATTEMPT_FAILED - ID: 35

Parameters: UINT8 Packet_ID

  • ID_CONNECTION_BANNED - ID: 36

Parameters: UINT8 Packet_ID

  • ID_INVALID_PASSWORD - ID: 37

Parameters: UINT8 Packet_ID

  • ID_MARKERS_SYNC - ID: 208

Parameters: UINT8 Packet_ID, INT32 number_of_players, UINT16 player_ID, bool is_active, INT16 X, INT16 Y, INT16 Z

Additional Information: player_ID, is_active, X, Y and Z are repeated several times depending on the value in number_of_players, for each player in the list.