Skip to content

Packet List

Nexius edited this page Apr 22, 2024 · 36 revisions

Incoming Packets

  • 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 its 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, char[] 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, UINT16 target_player, UINT16 target_actor, 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_MARKERS_SYNC - ID: 208

Parameters: UINT8 Packet_ID, UINT32 players_count, UINT16 player_id, bool stream_marker, INT16 X, INT16 Y, INT16 Z

Additional Information:

  • Number of players which are passed in this packet is determined by players_count.
  • X, Y and Z are only passed if stream_marker is true.