Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

feat: Add TxRecipe #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions txAdminRecipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
$engine: 2
name: ZombieOutbreak
version: v1.0.0
author: Dislaik
description: Zombie Survival RPG for FiveM!

tasks:
# Download default CFX resources
- action: download_github
src: https://github.com/citizenfx/cfx-server-data
ref: 88f4f974b855e0bf2ca5f51b9916648bd5b7d44b
subpath: resources
dest: ./resources

# Download and prepare server.cfg / loadingscreen / database
- action: download_github
src: https://github.com/Dislaik/zombieoutbreak
ref: main
dest: ./resources/zombieoutbreak

- action: move_path
src: ./resources/zombieoutbreak/txAdminRecipe/server.cfg
dest: ./server.cfg

- action: connect_database
- action: query_database
file: ./resources/zombieoutbreak/zombieoutbreak.sql

# Download dependencies

- action: download_github
src: https://github.com/brouznouf/fivem-mysql-async
ref: c5fa317a65acfe2eef453257e19e3b4fde137089
dest: ./resources/mysql-async
27 changes: 27 additions & 0 deletions txAdminRecipe/server.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## You CAN edit the following:
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_maxclients 48
set steam_webApiKey "none"
sets tags "default, deployer, plume esx"

## You MAY edit the following:
sv_hostname "{{serverName}} built with {{recipeName}} by {{recipeAuthor}}!"
sv_licenseKey "{{svLicense}}"
sets locale "root-AQ"
set mysql_connection_string "{{dbConnectionString}}"

## These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure rconlog
ensure baseevents
ensure mysql-async
ensure zombieoutbreak

## Add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
{{addPrincipalsMaster}}
3 changes: 0 additions & 3 deletions zombieoutbreak.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
CREATE DATABASE IF NOT EXISTS `zombieoutbreak`;
USE `zombieoutbreak`;

CREATE TABLE `users` (
`ID` INT NOT NULL AUTO_INCREMENT,
`Identifier` VARCHAR(50) NOT NULL,
Expand Down