Hook in OnSV_RequestFile (Rust)Suggestion

Patch Data

{
  "Type": "Simple",
  "Hook": {
    "InjectionIndex": 13,
    "ReturnBehavior": 1,
    "ArgumentBehavior": 4,
    "ArgumentString": "l0, a0",
    "HookTypeName": "Simple",
    "Name": "SV_RequestFile",
    "HookName": "OnSV_RequestFile",
    "AssemblyName": "Assembly-CSharp.dll",
    "TypeName": "BaseEntity",
    "Flagged": false,
    "Signature": {
      "Exposure": 2,
      "Name": "SV_RequestFile",
      "ReturnType": "System.Void",
      "Parameters": [
        "BaseEntity/RPCMessage"
      ]
    },
    "MSILHash": "Yaj7/moFBveLP+8RoxGaiNZdwrcLmFHMr3t/a7vCrAQ=",
    "BaseHookName": null,
    "HookCategory": null
  }
}


Merged post

Wulf, you can add this hook as "Return if valid type"
Could you explain why this is needed and what you would use it for?
I have many plugins which using ImageLibrary.
Of course, using other plugin for store image it is good, but direct interaction will better.
Example, i have custom map what contain > 15 images, and after wipe i will need wipe fu**** ImageLibrary.data, storage and other? Why? if i can put in plugin
void OnImageRequest(RPCMessage message) {
    var imgID = message.read();
    SendImage(message.connection, imgID);
}​


Merged post

It solve problem with storing images in server!