xNote FiveM Death Note Script
Features
Discord ID allowlist
Ability to kill anyone from anywhere (onesync) after you looked at them
UI with folding page
How it Works
To use, use the command /xnote:toggle
to active the book for yourself (must have perms). Next use the command /xnote:display
to open the UI. Once the UI is open you can click on the right side (the lined paper) to start typing a PlayerName, if the name is valid, and you have seen that players ped before, then it will kill that player in 5 seconds.
Download Link (GitHub)
Dev Note
This script will work as is standalone but it is strongly recommended to edit the script to add notifications or link it to a framework so character names can be used instead of PlayerName. In addition, you can change the name of the commands and or add a keybind to them. ex. RegisterKeyMapping('xnote:display', 'Open Death Note', 'keyboard', "K")
. As for performance, there is no active performance draw for anyone without a death note, and a very little 0.01ms for those idle with a death note. Please fill out the GetPlayerCharName function with how you want names to register, they are defaulted for the PlayerName.
local function GetPlayerCharName(svid)
--todo !!!! IMPORTANT !!!!
-- ADD YOUR FRAMEWORK OR NAME LOGIC HERE
return GetPlayerName(svid)
end
Conclusion
I made this a while back and have updated past the version I have released here, so I felt it would be a nice addition for those that are looking for something like this. I have a bunch of additional features that I made for this script after like Shinigami eyes and other things from the show. However, given the complexity of those features they relied heavily on my custom framework and would take too long to convert. Maybe one day I’ll get around to it. I don’t remember where I got the UI template for the folding page but will add credits if I do remember. Also note I don’t claim to own any IP from Death Note .
Code is accessible | Yes |
Subscription-based | N/A |
Lines (approximately) | 400+ |
Requirements | None |
Support | No |