[ad_1]
introduction
Dieses Tutorial richtet sich an Personen, die ihren eigenen Server hosten und Fahrzeuge oder Modelle an ihre Spieler streamen möchten. Bitte beachten Sie, dass dieses Tutorial unter der Annahme geschrieben wurde, dass Sie bereits eine grundlegende Servereinrichtung haben und funktionieren. Wenn nicht, verwenden Sie die Support-Foren für die Unterstützung dazu.
Basics
- Open your main server folder. In this example the path is is C: Servers
- Navigate to C: Server resources
- There you should see the following files;
Creating the stream folders
Once you have sorted the above, you have confirmed that you have an empty server. Now we need to add the stream path.
- Create another folder in resources.
You can give it any name you want, but for this example I'll name it financial assets
- In this folder you should add another folder called stream.
- You also need to add one __resource.lua File.
To create this file, simply create a Wordpad file and rename it to __resource.lua it doesn't have to contain anything.
It should look like this:
Set up streams
In the stream folder you can place the models you want to stream.
- Within C: Server Resources Assets Stream Create a folder that has the same name as the model you want to stream.
In this example we stream the ambulance Model. - So now this path should be: C: Server Resources Assets Stream Ambulance
- Put that .yft and .yearly course Files here.
- You need to create a new folder Electricity for any vehicle or model you want to replace.
Add the stream files to your server.cfg
Place start assets
after another begin
Entries
# 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 ■■■■■■ ■ start scoreboard start playernames sv_scriptHookAllowed 1 # change this #rcon_password yay # a comma-separated list of tags for your server # for example: sets tags "drifting, cars, racing" or sets tags "roleplay, military, tanks" sets tags "default " 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 announcement? 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 changeme``` ##### Restart your server and enjoy!
[ad_2]
Original source