ph_papermask : Create Masks from Paper bags


ph_papermask

Create masks from paper bags and wear them

I made this script to learn scripting for FiveM. Using ox_inventory you can right click a paper bag and modify it to convert it into a mask by selecting a texture from the UI. The mask can be worn and removed from inventory.

Preview:
Video Preview

Download:
Github

Known issues:

  • Mask can be worn then dropped from inventory (fixed)
A B
Code is accessible Yes
Subscription-based N/A
Lines (approximately) 343
Requirements ox_inventory, inventory icons for the mask variations
Support Yes
13 Likes

Updated with following changes:

  • Made it so you can’t remove mask item from inventory while worn

  • modified code to use ox_inventory hooks to make it a bit cleaner

  • force close inventory while modifying to avoid a glitch, if you had just opened the paperbag storage you would still have access to that inventory after modifying

Insane work

1 Like

u images??

im no artist, as explained in the readme you will have to source your own, if I can find a good free pack I will link it there or you can use the clothes pack which has them but is paid (Clothes as item - 24k Drawn icons OF MP ped)

1 Like


I made this, you can use them if you want

1 Like

thanks, i’ll work on adding them as defaults tonight, i’ve got an update to release today so ill try and get them in for that.

Do you just want me to credit your name on here?

It looks really good ! It’s nice to see some “homemade” mask script lol

Good job!

1 Like

If you want Ill be honoured, if you dont Im happy with the script and its already in your PR waiting :kissing_heart:

1 Like

PR accepted, im going to use them to make the icons for each design tonight, might look a bit janky but it will give people something to work off

For the Paper bag masks it always bugged me that you had to buy them, just made sense that you’d be able to craft it, thanks for the kind words :smiley:

Why not doing also a mask shop at this point ? You’ve pretty much done the code for it with the bag script lol

If you need more gfx dm me and Ill happyli make, and do want a showcase video, I can support you aswell

Its something I plan on doing. Not sure when I’ll get around to it as I’m developing a server and will be creating most of the scripts myself.

no worries, ill keep it in mind, I’ve already started modifying the mask image you gave me to have the texture variations for each mask, as i say its a bit jank but will serve as a template for people to either make their own or replace with others they find.

1 Like

New update

  • Added inventory images for mask variations and marker pen
  • Added Marker pen requirement
  • Added config file
  • Added options to modify colours of UI within the config.lua (standard RGB also the ability to set alpha transparency)
1 Like

Bug Fix + small feature

  • Fixed error with code and how i was implementing ox_inventory
  • change to code to stop adding and removing a hook everytime a paperbag is modified
  • changes made to items to be added to ‘ox_inventory/data/items.lua’
  • Wearing the mask now has an animation

Taking a small break from this to focus on other scripts, I’ll add the notification implementation soontm. I will continue to offer support and take suggestions for this script, there just wont be a new update every day :wink:

1 Like

Great Work. <3

1 Like