Nucleus handler tools › Docs › ProtoInput › AddHandleToRename

ProtoInput.AddHandleToRename

Open in the workbench (search, and try it in a handler)

ProtoInput.AddHandleToRename(
  instanceHandle: number,
  name: string | number | boolean
): void

Needs the RenameHandlesHookID hook. Any mutex, event or semaphore the game creates or opens whose name contains this text gets a random number appended, so instances don't see each other's. Parameters: the instance handle and the text (up to 998 characters).

✎ AI-written, based on Nucleus ProtoInput.cs (AddHandleToRename, summary: requires RenameHandlesHookID), ProtoInputLoader Inject.cpp (AddHandleToRenameImpl), ProtoInputHooks RenameHandlesHook.cpp (updateName). Not from the official docs. Is it wrong? Tell us

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop