[Release] [ESX] Collectables

Edit config.lua and set Config.Debug to true.

How to translate the item names?

You need to add your own translation file. I assume you’ll be using Dutch so do this:

  • Create a file called nl.lua and put it in the locales directory.
  • Copy the contents of en.lua and paste into nl.lua
  • In nl.lua change Locales['en'] to Locales['nl']
  • Translate the values making sure to keep any instance of %s otherwise there’ll be errors
  • Edit config.lua and change Config.Locale = 'en' to Config.Locale = 'nl'

Uh yeah thank you, but i am talking about the item names, like: Spaceship Parts, Nuclear Waste, Letter Scraps etc

Apologies, you can edit config.lua and add your own custom string:

Config.Collectables = {
    LetterScraps = {
        Enabled = true,
        Title = "My Custom String", -- this one
        ID = 'letter_scraps',
        Prop = 'prop_ld_scrap',      
        ...
    }
    ...
}

Make sure you have v1.1.0 installed.

1 Like

Release v1.1.1

Fixes

  • Fixed reset progress not working correctly
  • Fixed some collectable positions to make them attainable again.
  • Added collision request to make 100% sure the collectable doesn’t fall through the floor if spawn distance is large

Changes

  • Menu is now sorted alphabetically by collectable title
  • Added visual feedback when resetting
  • Removed useless debug text and added debug markers and IDs to aid locating / positioning custom collectables

GitHub
Download

Hey, nice script but i am not able to open the menu, do you know why?

Some players cant see the placed objects. Does anyone know why? When i restart the script the objects apears again for some players.

How because i tried to copy and paste the code you have on github and keep getting parsing errors in the config

This has been completely rewritten with major optimization, fixes, new additions and the ESX dependency removed:

Having this issue.

This problem still happens.

Some players cant see the placed objects. Does anyone know why? When i restart the script the objects apears again for some players.

Hello,
Is there a way to replace the cash reward with an item?