[Release] FiveM Notepad

FiveM Notepad

Jot your ideas down with this lil cutie
image
haven’t released anything in a while and I wanted to make this because I saw something similar to this somewhere.

do /notepad to toggle it (open or close)
or you can do /notepad open to open it only and /notepad close to close it.

Make sure you call the resource notepad or else it won’t work.


All notes save for the session, but get erased when: Server restart, Resource restart, Player Rejoin

27 Likes

Awesome resource! Can’t wait to test it out!

This is a great idea. Might add to my ticket script. Good job!

Pretty cool. Would be nice to see the ped go into the note or clipboard animation, as well as being able to delete certain notes.

2 Likes

Nice Job

Can you drop notes for someone else?

3 Likes

Wow Nice relase, but it is possible to drop the notepad ?

Nice release, would be amazing if you could edit existing notes or delete a single one instead of clearing everything.

I love this, however could you do it so we could drop the note and other players could pick it up?

3 Likes

i think a better feature as opposed to dropping a note (although would still be useful) is giving a note to a person, and it stacks in there inventory as an item that they can use, to open the notepad and look at

Activate Windows got dammit

Can you make default from server start an item stored called “Recipe:#1”, So my citizens can “get” recipes from bins/shops/rewards from jobs/orwathever ?

Like for example:

checks garbage bin (with eco-bottles plugin for example)
+1 “Recipe: Barrel”

and then the player will have an item called “Recipe: Barrel” and it contains default info from cfg with the ingredients for “Barrel” item on the “salty_crafting” resource for example.

Thank you!

Thank you for this, well done!

however like previous said, a actual item of a notepad and so you can drop/give would be awesome! Looking forward for this to get even more developed! (if so)

1 Like


I added a little animation to it. Just change the client.lua at line 4-50 (roughly)

RegisterCommand("notepad", function(source, args)
    PlaySound(source, "CANCEL", "HUD_MINI_GAME_SOUNDSET", 0, 0, 1)
	local IsInVehicle = IsPedInAnyVehicle(PlayerPedId(), false)
	if not IsInVehicle then
		TaskStartScenarioInPlace(PlayerPedId(), "WORLD_HUMAN_CLIPBOARD", 0, true)
	end
    if args[1] == "open" then -- these args are pretty useless ngl
        SetGui(true)
    elseif args[1] == "close" then 
        SetGui(false)
    else 
        SetGui(not display)
    end
end)
TriggerEvent('chat:addSuggestion', '/notepad', 'Write anything down.', {
    {name="toggle", help="Either 'open' or 'close', or just toggle with no args."}
})

RegisterNUICallback('exit', function(data)
    updateNotes(t)
    SetGui(false)
	ClearPedTasks(PlayerPedId())
end)

RegisterNUICallback('error', function(data)
    updateNotes(t)
    SetGui(false)
    notify("~r~Error:~s~\n"..data.error)
	ClearPedTasks(PlayerPedId())
end)

RegisterNUICallback('save', function(data)
    SetGui(false)
    table.insert(t, data.main)
    notify("Saved Note ~h~#"..table.length(t))
    updateNotes(t)
	ClearPedTasks(PlayerPedId())
end)
RegisterNUICallback('clear', function(data)
    SetGui(false)
    notify("Cleared ~h~"..table.length(t).."~s~ notes")
    t = {}
    updateNotes(t)
	ClearPedTasks(PlayerPedId())
end)

or just replace the file with my edit client.lua (2.8 KB)

Hello, I have problem when I type /notepad , notepad normally open but when i click on save and exit my screen is freezed i can move only with mouse. It’s not 1st script where I have this problem.

Anyway to change the font?

tbm estou com mesmo problema

Anyone know if anybody has this and you are actually able to give the note to other people?

Awesome script but when I hit clear it broke my game and the mouse was stuck on my screen I had to alt f4