Array
(
    [object] => egg
    [attributes] => Array
        (
            [id] => 15
            [uuid] => d6ceb98c-be98-4f9c-9ac8-5b36b1e0093a
            [name] => FiveM
            [nest] => 5
            [author] => parker@parkervcp.com
            [description] => A new FiveM egg for the latest builds due to recent changes in FiveM
            [docker_image] => ghcr.io/parkervcp/yolks:debian
            [docker_images] => Array
                (
                    [ghcr.io/parkervcp/yolks:debian] => ghcr.io/parkervcp/yolks:debian
                )

            [config] => Array
                (
                    [files] => Array
                        (
                            [server.cfg] => Array
                                (
                                    [parser] => file
                                    [find] => Array
                                        (
                                            [endpoint_add_tcp] => endpoint_add_tcp "0.0.0.0:{{server.build.default.port}}"
                                            [endpoint_add_udp] => endpoint_add_udp "0.0.0.0:{{server.build.default.port}}"
                                            [sv_hostname] => sv_hostname "{{server.build.env.SERVER_HOSTNAME}}"
                                            [set sv_licenseKey] => set sv_licenseKey {{server.build.env.FIVEM_LICENSE}}
                                            [set steam_webApiKey] => set steam_webApiKey {{server.build.env.STEAM_WEBAPIKEY}}
                                            [sv_maxclients] => sv_maxclients {{server.build.env.MAX_PLAYERS}}
                                        )

                                )

                        )

                    [startup] => Array
                        (
                            [done] => succeeded. Welcome!
                        )

                    [stop] => quit
                    [logs] => Array
                        (
                        )

                    [file_denylist] => Array
                        (
                        )

                    [extends] => 
                )

            [startup] => $(pwd)/alpine/opt/cfx-server/ld-musl-x86_64.so.1 --library-path "$(pwd)/alpine/usr/lib/v8/:$(pwd)/alpine/lib/:$(pwd)/alpine/usr/lib/" -- $(pwd)/alpine/opt/cfx-server/FXServer +set citizen_dir $(pwd)/alpine/opt/cfx-server/citizen/ +set sv_licenseKey {{FIVEM_LICENSE}} +set steam_webApiKey {{STEAM_WEBAPIKEY}} +set sv_maxplayers {{MAX_PLAYERS}} +set serverProfile default +set txAdminPort {{TXADMIN_PORT}} $( [ "$TXADMIN_ENABLE" == "1" ] || printf %s '+exec server.cfg' )
            [script] => Array
                (
                    [privileged] => 1
                    [install] => #!/bin/bash
# FiveM Installation Script
#
# Server Files: /mnt/server
apt update -y
apt install -y tar xz-utils file jq
mkdir -p /mnt/server/resources
cd /mnt/server
echo "updating citizenfx resource files"
git clone https://github.com/citizenfx/cfx-server-data.git /tmp
cp -Rf /tmp/resources/* resources/
RELEASE_PAGE=$(curl -sSL https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/)
CHANGELOGS_PAGE=$(curl -sSL https://changelogs-live.fivem.net/api/changelog/versions/linux/server)
if [[ "${FIVEM_VERSION}" == "recommended" ]] || [[ -z ${FIVEM_VERSION} ]]; then
  DOWNLOAD_LINK=$(echo $CHANGELOGS_PAGE | jq -r '.recommended_download')
elif [[ "${FIVEM_VERSION}" == "latest" ]]; then
  DOWNLOAD_LINK=$(echo $CHANGELOGS_PAGE | jq -r '.latest_download')
else
  VERSION_LINK=$(echo -e "${RELEASE_PAGE}" | grep -Eo '".*/*.tar.xz"' | grep -Eo '".*/*.tar.xz"' | sed 's/\"//g'  | sed 's/\.\///1' | grep -i "${FIVEM_VERSION}" | grep -o =.* |  tr -d '=')
  if [[ "${VERSION_LINK}" == "" ]]; then
    echo -e "defaulting to recommedned as the version requested was invalid."
    DOWNLOAD_LINK=$(echo $CHANGELOGS_PAGE | jq -r '.recommended_download')
  else
    DOWNLOAD_LINK=$(echo https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/${VERSION_LINK})
  fi
fi
if [ ! -z "${DOWNLOAD_URL}" ]; then
  if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then
    echo -e "link is valid. setting download link to ${DOWNLOAD_URL}"
    DOWNLOAD_LINK=${DOWNLOAD_URL}
  else
    echo -e "link is invalid closing out"
    exit 2
  fi
fi
echo -e "Running curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}"
curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*/}
echo "Extracting fivem files"
FILETYPE=$(file -F ',' ${DOWNLOAD_LINK##*/} | cut -d',' -f2 | cut -d' ' -f2)
if [ "$FILETYPE" == "gzip" ]; then
  tar xzvf ${DOWNLOAD_LINK##*/}
elif [ "$FILETYPE" == "Zip" ]; then
  unzip ${DOWNLOAD_LINK##*/}
elif [ "$FILETYPE" == "XZ" ]; then
  tar xvf ${DOWNLOAD_LINK##*/}
else
  echo -e "unknown filetype. Exiting"
  exit 2
fi
rm -rf ${DOWNLOAD_LINK##*/} run.sh
if [ -e server.cfg ]; then
  echo "Skipping downloading default server config file as one already exists"
else
  echo "Downloading default fivem config"
  curl https://raw.githubusercontent.com/ItzzSkull/eggs/main/game_eggs/gta/fivem/server.cfg >>server.cfg
fi
mkdir -p logs/
echo "install complete"
                    [entry] => bash
                    [container] => ghcr.io/parkervcp/installers:debian
                    [extends] => 
                )

            [created_at] => 2023-12-17T03:04:18+00:00
            [updated_at] => 2023-12-19T18:54:22+00:00
            [relationships] => Array
                (
                    [variables] => Array
                        (
                            [object] => list
                            [data] => Array
                                (
                                    [0] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 71
                                                    [egg_id] => 15
                                                    [name] => FiveM License Key
                                                    [description] => Required to start the service. Get your keys at https://keymaster.fivem.net/
                                                    [env_variable] => FIVEM_LICENSE
                                                    [default_value] => 
                                                    [user_viewable] => 1
                                                    [user_editable] => 1
                                                    [rules] => required|string|max:33
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-19T20:17:40.000000Z
                                                )

                                        )

                                    [1] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 72
                                                    [egg_id] => 15
                                                    [name] => Max Players
                                                    [description] => Set the fivem max play count
                                                    [env_variable] => MAX_PLAYERS
                                                    [default_value] => 48
                                                    [user_viewable] => 1
                                                    [user_editable] => 1
                                                    [rules] => required|integer|between:1,48
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-19T19:03:22.000000Z
                                                )

                                        )

                                    [2] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 73
                                                    [egg_id] => 15
                                                    [name] => Server Hostname
                                                    [description] => The name that shows up in the server browser
                                                    [env_variable] => SERVER_HOSTNAME
                                                    [default_value] => CloudStrike Hosting Server Name
                                                    [user_viewable] => 1
                                                    [user_editable] => 1
                                                    [rules] => required|string
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-19T19:01:45.000000Z
                                                )

                                        )

                                    [3] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 74
                                                    [egg_id] => 15
                                                    [name] => FiveM Version
                                                    [description] => The fivem version that is to be installed. Invalid versions will default to recommended.

An example is `7257-030778a167242f79e0f59cd8d9c04b970e3b75c2`

You can get the latest version from here - https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/
                                                    [env_variable] => FIVEM_VERSION
                                                    [default_value] => recommended
                                                    [user_viewable] => 1
                                                    [user_editable] => 1
                                                    [rules] => required|string|max:50
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-19T19:44:01.000000Z
                                                )

                                        )

                                    [4] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 75
                                                    [egg_id] => 15
                                                    [name] => Download Link
                                                    [description] => This is the link to download fivem from. This is only used in the install script.

The file you link to needs to be an fx.tar.zx file.

Example:
https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/6013-d8ae399d15680da569022f57ab7f2474d307c821/fx.tar.xz
                                                    [env_variable] => DOWNLOAD_URL
                                                    [default_value] => 
                                                    [user_viewable] => 
                                                    [user_editable] => 
                                                    [rules] => string|nullable
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-19T19:49:03.000000Z
                                                )

                                        )

                                    [5] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 76
                                                    [egg_id] => 15
                                                    [name] => Steam Web Api Key
                                                    [description] => Use your Steam WebApiKey or set to 'none'. Get your key at https://steamcommunity.com/dev/apikey/
                                                    [env_variable] => STEAM_WEBAPIKEY
                                                    [default_value] => none
                                                    [user_viewable] => 1
                                                    [user_editable] => 1
                                                    [rules] => required|string
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-18T14:26:57.000000Z
                                                )

                                        )

                                    [6] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 77
                                                    [egg_id] => 15
                                                    [name] => txAdmin Port
                                                    [description] => The port for the txAdmin panel, To enable open a general support ticket
                                                    [env_variable] => TXADMIN_PORT
                                                    [default_value] => 40120
                                                    [user_viewable] => 1
                                                    [user_editable] => 
                                                    [rules] => required|string|max:20
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-19T19:03:16.000000Z
                                                )

                                        )

                                    [7] => Array
                                        (
                                            [object] => egg_variable
                                            [attributes] => Array
                                                (
                                                    [id] => 78
                                                    [egg_id] => 15
                                                    [name] => Enable txadmin
                                                    [description] => Enables txadmin.

set to 1 to enable. (default is 0 for false)
                                                    [env_variable] => TXADMIN_ENABLE
                                                    [default_value] => 0
                                                    [user_viewable] => 1
                                                    [user_editable] => 
                                                    [rules] => required|boolean
                                                    [created_at] => 2023-12-17T03:04:18.000000Z
                                                    [updated_at] => 2023-12-19T19:02:13.000000Z
                                                )

                                        )

                                )

                        )

                )

        )

    [status_code] => 200
)
