2018-07-12 04:41:33 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
"version" : "PTDL_v1"
} ,
2019-10-05 04:32:16 +08:00
"exported_at" : "2019-10-04T16:30:46-04:00" ,
2018-07-12 04:41:33 +08:00
"name" : "FiveM" ,
"author" : "parker@parkervcp.com" ,
"description" : "A new FiveM egg for the latest builds due to recent changes in FiveM" ,
2019-10-01 09:43:41 +08:00
"image" : "quay.io\/parkervcp\/pterodactyl-images:base_alpine" ,
2018-07-12 04:41:33 +08:00
"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 sv_maxplayers {{MAX_PLAYERS}} +exec server.cfg" ,
"config" : {
"files" : "{\r\n \"server.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"endpoint_add_tcp\": \"endpoint_add_tcp \\\"0.0.0.0:{{server.build.default.port}}\\\"\",\r\n \"endpoint_add_udp\": \"endpoint_add_udp \\\"0.0.0.0:{{server.build.default.port}}\\\"\",\r\n \"sv_hostname\": \"sv_hostname \\\"{{server.build.env.SERVER_HOSTNAME}}\\\"\",\r\n \"sv_maxclients\": \"sv_maxclients {{server.build.env.MAX_PLAYERS}}\"\r\n }\r\n }\r\n}" ,
2019-02-21 05:47:11 +08:00
"startup" : "{\r\n \"done\": \"succeeded. Welcome!\"\r\n}" ,
2018-07-12 04:41:33 +08:00
"logs" : "{\r\n \"custom\": true,\r\n \"location\": \"logs\/latest.log\"\r\n}" ,
"stop" : "^C"
} ,
"scripts" : {
"installation" : {
2019-10-01 09:43:41 +08:00
"script" : "#!\/bin\/ash \r\n\r\napk add openssl tar xz curl wget git --no-cache\r\n\r\ncd \/mnt\/server\r\n\r\nmkdir resources\r\n\r\necho \"updating citizenfx resource files\"\r\ngit clone https:\/\/github.com\/citizenfx\/cfx-server-data.git \/tmp\r\ncp -Rf \/tmp\/resources\/* resources\/ \r\n\r\ncd \/mnt\/server\r\n\r\necho \"Downloading the latest fivem server files\"\r\nlatest_fivem_url=`curl https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/ | grep -Eo 'href=\".*\/\"' | grep -Eo '\".*\"' | grep -Eo 'href=\".*\/\"' | grep -Eo '\".*\"' | sed 's\/\\\"\/\/g'`\r\n\r\necho -e \"pulling files from https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/${latest_fivem_url}fx.tar.xz\"\r\nwget https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/${latest_fivem_url}fx.tar.xz\r\n\r\necho \"Extracting fivem files\"\r\n\r\ntar xf fx.tar.xz\r\n\r\nrm -rf fx.tar.xz run.sh\r\n\r\nif [ -e server.cfg ]; then\r\n echo \"server config file exists\"\r\nelse\r\n echo \"Downloading default fivem config\"\r\n curl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/gta\/fivem\/server.cfg >> server.cfg\r\nfi\r\n\r\nmkdir logs\/\r\n\r\necho \"install complete\"" ,
2019-09-11 22:37:25 +08:00
"container" : "alpine:3.10" ,
2018-07-12 04:41:33 +08:00
"entrypoint" : "ash"
}
} ,
"variables" : [
{
"name" : "fivem license" ,
"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:32"
} ,
{
"name" : "Max Players" ,
"description" : "Set the fivem max play count" ,
"env_variable" : "MAX_PLAYERS" ,
2019-09-11 22:37:25 +08:00
"default_value" : "32" ,
2018-07-12 04:41:33 +08:00
"user_viewable" : 1 ,
"user_editable" : 0 ,
2019-09-11 22:37:25 +08:00
"rules" : "required|integer|between:1,32"
2018-07-12 04:41:33 +08:00
} ,
{
"name" : "Server Hostname" ,
"description" : "The name that shows up in the server browser" ,
"env_variable" : "SERVER_HOSTNAME" ,
"default_value" : "My new FXServer!" ,
"user_viewable" : 1 ,
"user_editable" : 1 ,
2018-07-21 01:21:25 +08:00
"rules" : "required|string"
2019-07-13 04:34:03 +08:00
} ,
{
"name" : "fivem version" ,
"description" : "The fivem version that is to be installed.\r\n\r\nan example is `1383-e5ea040353ce1b8bc86e37982bf5d888938e3096`\r\n\r\nYou can the latest version from here - https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/" ,
"env_variable" : "FIVEM_VERSION" ,
2019-10-01 09:43:41 +08:00
"default_value" : "latest" ,
2019-07-13 04:34:03 +08:00
"user_viewable" : 1 ,
2019-10-01 09:43:41 +08:00
"user_editable" : 1 ,
2019-07-13 04:34:03 +08:00
"rules" : "required|string|max:50"
2019-09-11 22:37:25 +08:00
} ,
{
"name" : "Download Link" ,
2019-10-01 09:43:41 +08:00
"description" : "This is the link to download fivem from. This is only used in the install script.\r\n\r\nThe file you link to needs to be an fx.tar.zx file.\r\n\r\nExample:\r\nhttps:\/\/runtime.fivem.net\/artifacts\/fivem\/build_proot_linux\/master\/1626-8c06e8bc3ed7e6690c6c2d9e0b90e29df65b3ea6\/fx.tar.xz" ,
2019-09-11 22:37:25 +08:00
"env_variable" : "DOWNLOAD_URL" ,
"default_value" : "" ,
"user_viewable" : 0 ,
"user_editable" : 0 ,
2019-10-05 04:32:16 +08:00
"rules" : "string|nullable"
2018-07-12 04:41:33 +08:00
}
]
2019-02-21 05:47:11 +08:00
}