Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jodsderechte committed May 31, 2023
2 parents 0c315d1 + ae8e1f2 commit 673b620
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ LibCustomNames.RegisterCallback(self, "eventName"[, method, [arg]])
LibCustomNames.UnregisterCallback(self, "eventname")
LibCustomNames.UnregisterAllCallbacks(self)
```

# Example:

```lua
lib:RegisterCallback("Name_Added", function(event, name, customName)
print("Added: " .. name .. " is now Renamed to " .. customName) -- this will print whenever a new Name is added
end)
```
Check CustomNames.lua for more code examples.

0 comments on commit 673b620

Please sign in to comment.