[STANDALONE] Pick It Back

Kc-PickItBack GIF

Pick It Back - Never lose your hat or glasses again!

Tired of losing your hat or glasses during the action? This script allows players to pick up their hat and/or glasses when they fall off. Inspired by the mechanic in RDR2, your character will never lose their style!

Pick It Back is a standalone script that offers a smooth experience for players, keeping them in character and ensuring their accessories are never left behind. Optimized and customizable, this script ensures minimal performance impact on your game while providing an invaluable feature :wink:

Features

  • Pick up your dropped hat and glasses when they fall off your character
  • Hat and glasses are networked, so you can also steal other players’ hats, but watch out, they can steal yours too :eyes:
  • Update checker with changelog if a new update is found directly in the console on resource start, except if fivem-checker is installed and running on your server
  • Optimized script: 0.00ms (0.00%) on idle and 0.02ms at max
  • Debug mode for troubleshooting any issues with the resource
  • Customizable localization and even more options that you can see in the config file below
Config file

The script is slightly configurable; check out the full config file:

-- Base
Config.PickUpDistance               = 1.8                   -- Distance for the player to be able to pick up an object (The default value is 1.8)
Config.AutoDelete                   = 600                   -- Time in seconds before a dropped prop is automatically deleted (The default value is 600 aka 10 minutes)
Config.PreventIfAlreadyEquipped     = true                  -- Prevent players from picking up hats/glasses if they already have one on (The default value is true)
Config.PreventItemPickupByGender    = true                  -- Prevent players from picking up items if their character's gender does not match the item's designated gender (This is a short-term solution to avoid mismatch when picking up hats/glasses due to the game having different IDs per gender) (The default value is true)
Config.CompatibilityLayer           = false                 -- Enable this if you're having any issues regarding hat/glasses in your other scripts (The default value is false)
-- Config.SendToAllPlayers          = false                 -- [DEPRECATED] Should the event be sent to all players or only 'active' physical players known to the client? (I recommend setting this to false if you have a 30+ player server, but it may result in worse sync for far away players)

-- Interaction
Config.InteractionType              = 'Default'             -- 'Default' for DrawText3D method, 'Target' for Target scripts or 'Custom' to use 'custom_export.lua'
---- Default
Config.CommandTitle                 = 'Pick up prop'        -- Key title in GTA 5 control settings
Config.CommandInputMapper           = 'KEYBOARD'            -- Input Mapper (https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/)
Config.CommandInputParameter        = 'E'                   -- Input Parameter (https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/)
Config.InteractionDistance          = 1.8                   -- Maximum distance to show interaction text
Config.InteractionAngle             = 10.0                  -- Separation angle (in degrees) between props
Config.MaxInteractionAngle          = 15.0                  -- Maximum angle (in degrees) between camera direction and entity direction
---- Target
Config.TargetType                   = 'ox_target'           -- The type of the target script you're using. Work with ox_target/qb-target/qtarget, even tho ox_target is recommended
Config.TargetName                   = 'ox_target'           -- The name of the target script you're using. It should be the same as above if you haven't modified anything special about your target script
Config.TargetText                   = "Pick Up"             -- The text
Config.Icon                         = 'fa-solid fa-hand'    -- The target icon from font awesome (https://fontawesome.com/icons)

-- Misc
Config.Language						= 'en'		            -- Currently Available: fr, en
Config.Debug        				= false   	            -- If you think something is not working properly, you can set 'Config.Debug' to true. It will then print a lot of debug information in your console or above radar
Config.DebugDistance        		= 12.0   	            -- Maximum distance to show debug infos
Config.UpdateChecker                = false                 -- Set to false if you don't want to check for resource update on start (No need to change this if you're using fivem-checker)
Config.ChangeLog					= false		            -- Set to false if you don't want to display the changelog if new version is find (No need to change this if you're using fivem-checker)```

Showcase

Youtube video (if the above won’t load)

Purchase on Tebex

Get Pick It Back at 6.00 USD + tax on Tebex.

Requirements:

None, but there is compatibility with ox_target (recommended), qb-target, ContextMenu and qtarget


My other scripts

[STANDALONE] Sit Anywhere
[STANDALONE] Parkour Abilities
[STANDALONE] Better Tricks & Wheelies

Feel free to share your suggestions, and enjoy keeping your style intact in the heat of the moment :sunglasses:

Code is accessible No, only Config file
Subscription-based No
Lines (approximately) 890
Requirements None
Support Yes
6 Likes

resmon?

Misread by accident

Nice release, this is pretty sick.

1 Like

Anyone know how this plays with dpClothes? Do they conflict or have any other defects?

I forgot to add resmon, 0.00ms (0.00%) on idle and 0.02ms at max

This shouldn’t have any issues with dpClothes, but I will take a look when I’m back from work this evening! :ok_hand:

you check it ?

This is so cool

1 Like

Error loading script client/client.lua in resource kc-pickitback: No such export addGlobalObject in resource qb-target

This will be fixed in a couple of hours :sweat_smile:

Can someone please remake the script, code a few lines and ask for money for it :sweat_smile: :rofl: :joy:

Minor Update

Changelog:

  • Fixed qb-target not working as intended
  • Added qtarget as requested
1 Like

Works like a charm, support responded fast and was helpful, thank you!

1 Like

wow…that so cool

1 Like

:cowboy_hat_face: Update Alert :cowboy_hat_face:

Changelog:

  • New Config option called PreventIfAlreadyEquipped: “Prevent players from picking up hats/glasses if they already have one on”
  • Dropped items should now appear at the exact same coordinates for every client
  • Fixed rare occurrences where hats/glasses would drop for no reason, which could result in duplicated items
  • Check added to prevent two players from picking up the same item simultaneously
3 Likes

:man_curly_haired: Update Alert :woman:

Changelog:

  • New Config option called PreventItemPickupByGender:
    “Prevent players from picking up items if their character’s gender does not match the item’s designated gender (This is a short-term solution to avoid mismatch when picking up hats/glasses due to the game having different IDs per gender)”
  • New Config option called SendToAllPlayers:
    “Should the event be sent to all players or only ‘active’ physical players known to the client? (I recommend setting this to false if you have a 30+ player server, but it may result in worse sync for far away players)”
  • Target icon can now be edited with Config.Icon
  • Improved performance when there are a large number of dropped items
  • Updated all debug prints for easier reading/understanding
  • Helmets now also work as intended
  • Fixed some inconsistencies
1 Like

Can u send a similar script pls

:man_artist: Update Alert :woman_artist:

Changelog:

  • New Config option called CompatibilityLayer:
    “Enable this if you’re having any issues regarding hat/glasses in your other scripts”
  • Added ContextMenu as requested
  • Target text can now be edited in config.lua instead of the locale files
  • Fixed issue where peds/players would become invisible in some occasions
  • Fixed the Auto-Delete feature
  • Fixed an error that could appear in the console if only a hat or glasses was equipped at a time
  • All debug strings can now be correctly translated in the locale files (10+ strings)
  • A new debug tool has been added to help diagnose issues

image

:eyeglasses: Small Update Alert :womans_hat:

Changelog:

  • Fixed issue with the native ‘GetEntityArchetypeName’
  • Added a new file called custom_export.lua with examples and explanations if you ever want to use a system other than target
1 Like

thank you for revisiting this, there is an issue when using this along with wasabi nfc transfer release