If you want it to save then best thing to do is to add a bit of extra code to have it be able to save to the database and have the note as an item or something
I’m having the same issue.
What name you give to that script? It has to be named “lkrp_notepad”.
The same! But when I close and open another, it freezes the screen.
Hello
Its it possible to use it like all items ? when we click on it on the inventory we have use function ? without using the command .
You would have to write the function to use it. And if using inventoryhud would need to configure it to close on use
Does this require ESX?, or is it a standalone script besides adding it to the tables in the db
Then it’s problem with NuiFocus try to find NuiFocus in your scripts and turn them off one by one.
How do i add ‘‘notepad’’ to my database? That’s a very bad instruction lmao
If your using inventoryhud then u need to go to the config of that and add notepad to the close ui part when using
If someone wants to use it with the inventoryhud with “use” just open:
lkrp_notepad/server/main.lua and remove the comments from this part:
ESX.RegisterUsableItem(‘notepad’, function(source)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
TriggerClientEvent(‘lkrp_notepad:note’, _source)
TriggerClientEvent(‘lkrp_notepad:OpenNotepadGui’, _source)
end)
Would be nice if you could edit the note
Everything works flawlessly if installed corrected.
Quick question, can you remove the need for ‘notes’ in database/inventory for it to work?
if remove it script not gonna work ! cause all servers have /e notes anim
I’ve noticed your chat box is good, can yo share the chat box please?
I added notepad to the config for invenetoryhud, but it’s still freezing, any ideas?
Which file should i insert in database?
Is there away to make this work without a notepad entry in the database or in players inventory?
Took a little playing with to get working fully but 100% worth it, awesome job