Payday 2 unlock all weapon mods

broken image
broken image

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.

broken image

It may have to be converted to another data type in order for us to make use of it.

broken image

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. Certain hooks are called when a Lua-network event is received from another player.