fivem_win32 FiveM run.cmd +exec server.cfg CitizenFX.log 32 None sv_hostname.* sv_hostname server.cfg sq rcon_password.* rcon_password server.cfg sq sv_maxclients.* sv_maxclients server.cfg s endpoint_add_tcp.* endpoint_add_tcp server.cfg sq endpoint_add_udp.* endpoint_add_udp server.cfg sq sv_licenseKey.* sv_licenseKey server.cfg s Sets the license key. A license can be generated at: <a href="https://keymaster.fivem.net/">https://keymaster.fivem.net/</a> BASE="https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/" wget $BASE -Otmp # Assuming the version schema isn't changed or the url above isn't moved, this will always work. LATEST_VERSION=$(grep -Po '(?<=href=")[^"]*' tmp | tail -1) wget "${BASE}${LATEST_VERSION}/server.zip" wget https://github.com/citizenfx/cfx-server-data/archive/master.zip -Ocfx-server-data.zip unzip server.zip unzip cfx-server-data.zip -d $PWD/server-data mv $PWD/server-data/cfx-server-data-master/resources $PWD/resources cat > $PWD/server.cfg <<END # you probably don't want to change these! # only change them if you're using a server with multiple network interfaces endpoint_add_tcp "0.0.0.0:30120" endpoint_add_udp "0.0.0.0:30120" start mapmanager start chat start spawnmanager start sessionmanager start fivem start hardcap start rconlog start scoreboard start playernames sv_scriptHookAllowed 1 # change this rcon_password ogpPassword sv_hostname "My new FXServer!" # nested configs! # exec server_internal.cfg # loading a server icon (96x96 PNG file) #load_server_icon myLogo.png # convars for use from script # set temp_convar "hey world!" # disable announcing? clear out the master by uncommenting this #sv_master1 "" # want to only allow players authenticated with a third-party provider like Steam? #sv_authMaxVariance 1 #sv_authMinTrust 5 # add system admins # add_ace group.admin command allow # allow all commands # add_ace group.admin command.quit deny # but don't allow quit # add_principal identifier.steam:110000112345678 group.admin # add the admin to the group # remove the # to hide player endpoints in external log output #sv_endpointprivacy true # server slots limit (must be between 1 and 31) sv_maxclients 30 # license key for server (https://keymaster.fivem.net) sv_licenseKey superduperkey END rm tmp server.zip cfx-server-data.zip rm -rf $PWD/server-data server.cfg