Lua API
  • 🔎Overview
  • Getting started
    • 🚀Creating scripts
    • 📓Metadata
    • ☎ïļCallbacks
    • 🧠Examples
    • 🌐Useful resources
  • Documentation
    • ⚙ïļNamespaces
      • ðŸ–ĨïļGui
      • ✏ïļRender
      • 🏎ïļEngine
      • ðŸ”ĒMath
      • ⚙ïļUtilities
      • 🙎Entities
      • 📖Database
      • ðŸ–ąïļInput
      • 🌌Panorama
      • ðŸŠķMaterials
      • 📂Filesystem
      • 🗃ïļZip
    • ⚙ïļInstances
      • ⚙ïļGlobal Vars
      • ⚙ïļFatality
      • ⚙ïļGamerules
      • ⚙ïļServer
    • ⚙ïļDatatypes
      • ðŸ–Ĩïļcontrol
      • ðŸ–Ĩïļcheckbox
      • ðŸ–Ĩïļcombobox
      • ðŸ–Ĩïļcolor_picker
      • ðŸ–Ĩïļslider
      • ðŸ–Ĩïļtextbox
      • ðŸ–Ĩïļlist
      • ⚙ïļentity
      • ⚙ïļplayer_info
      • ⚙ïļweapon_info
      • ⚙ïļuser_cmd
      • ⚙ïļtrace_t
      • ⚙ïļvec3
      • ⚙ïļtimer
      • ⚙ïļcvar
      • ⚙ïļshot_info
      • ⚙ïļgame_event
      • ⚙ïļmaterial
      • ⚙ïļmaterial_var
      • ⚙ïļzip
      • ⚙ïļanimator
Powered by GitBook

ÂĐ 2025 - FATALITY

On this page
  • Functions
  • read
  • read_stream
  • write
  • write_stream
  • save
  • get_files
  • exists
  • extract
  • extract_all
  1. Documentation
  2. Datatypes

zip

zip datatype

Functions

read

zip_object:read("folder/file.txt")

path

string

path to file

Returns:

contents

string

read_stream

zip_object:read_stream("folder/file.txt")

path

string

path to file

Returns:

file stream

table of char

write

zip_object:write("folder/file.txt", "data")

path

string

path to file

data

string

content to write to file

write_stream

zip_object:write_stream("folder/file.txt", {"a", "b", "c"})

path

string

path to file

data

table of char

stream to write

save

zip_object:save()

Saves the file's content

get_files

zip_object:get_files()

Returns:

files

table

exists

zip_object:exists("folder/file.txt")

path

string

path to file

Returns:

true if file exists

boolean

extract

zip_object:extract("folder/file.txt", "some_directory")

path

string

path to file

destination

string

directory to extract file to

extract_all

zip_object:extract_all("some_directory")

destination

string

directory to extract file to

Previousmaterial_varNextanimator

Last updated 2 years ago

⚙ïļ
⚙ïļ
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Value
Datatype
Parameter
Datatype
Description
Parameter
Datatype
Description