LuaNetworking Net:IsMultiplayer Checks if the game is in a multiplayer state, and has an active multiplayer session.Guest 15 15th Apr, Markup 2 1 minute ago.
![blt payday 2 hoxhud blt payday 2 hoxhud](https://i.ytimg.com/vi/C3_1pSAOBU8/maxresdefault.jpg)
#Blt payday 2 hoxhud mod#
Lua Networking A collection of helper Lua functions to allow mods to send networked data to other players who have the mod installed. It should be in string format so that it will be transmitted to other players properly.
![blt payday 2 hoxhud blt payday 2 hoxhud](https://i.playground.ru/p/ILVHABa6JwRhLR8vmUikNw.png)
This value shoud be unique to the data type you are sending, or to the remote function you wish to call on another players game. Sends networked data data with a message id of id to all connected players. Utility function for quickly and easily getting the number of players in the multiplayer session. Returns No Name if a name could not be found the specified ID. Returns the name of the player associated with the specified peer ID id. Checks if the local player is a client of the multiplayer game session. Checks if the local player is the host of the multiplayer game session.Īlso returns false if not multiplayer session is running. You may access all functions in short by creating an alias variable which can help cut down on lengthy lines of code.Ĭhecks if the game is in a multiplayer state, and has an active multiplayer session. All data is sent as string data between clients, so any non-string data, such as numbers or Vector3's, must be converted into a string before transmission.Īll networking functions are contained in the LuaNetworking global table. Read the Docs.A collection of helper Lua functions to allow mods to send networked data to other players who have the mod installed.
![blt payday 2 hoxhud blt payday 2 hoxhud](https://fromfearrises.files.wordpress.com/2014/04/ghostreconphantoms-2014-04-14-14-45-28-07.jpg)
NetworkReceivedData sender, id, data The name of the hook that is called everytime any data is received via LuaNetworking from another player. For more information on listening to hooks, see the main Hooks page. Lua Networking Hooks Certain hooks are called when a Lua-network event is received from another player. If the data we receive is not relevant, then we should not process or call anything, as another mod is likely handling it instead. As we can see in our example above, once subscribed to our hook we need to check the ID of the data we receive to make sure that the data is relevant to our mod. It may have to be converted to another data type in order for us to make use of it. The name of the hook that is called everytime any data is received via LuaNetworking from another player. In order to make use of the data received from other players, your mod should make use of the hooks in order to process the data received and call the appropriate functions required. Previous Next.Certain hooks are called when a Lua-network event is received from another player. Example: Priority is higher than Script The path to your Lua script to run. This should only be used for mods which act as dependencies for other mods. Priority An integer, from 0 tothat determines the order in which mods load. Version A friendly version number that will displayed in the in-game mod manager. Contact Some form of contact details for your users to contact you from.
![blt payday 2 hoxhud blt payday 2 hoxhud](https://modworkshop.net/mydownloads/previews/preview_3_1436009070_562be37193699061e8edd8b65d10e261.png)
Author You, your collaborators, or anybody who worked on the mod. Description A description of your mod, and what it does.
#Blt payday 2 hoxhud manual#
If it does not work use the Manual Copy button.Ĭopy the text below and paste the contents into a file named mod. This section contains the keybinds you are creating. This section contains the Persist Scripts you are creating. This section contains the Pre-Hooks you are creating. This section contains the Hooks you are creating. Base Definition Documentation This will display in the Lua Mods section to give information and identify the mod. This section contains the basic information for the mod.