Skip to content
Documentation
Props3Foldable Phones

r_props_foldphone Installation

Install R_Props Foldable Phones: add the resource, paste the items, copy the inventory images and add the emotes.

Prerequisites

R_Props Foldable Phones has no dependencies.

  • Optional: ox_inventory, qbx_core, qb-core or es_extended for the items
  • Optional: rpemotes for the emotes

Installation Steps

Download & Extract

  1. Buy R_Props Foldable Phones on r-scripts.net
  2. Download it from your Cfx.re Portal
  3. Extract the folder into your server's resources directory
  4. Keep the folder name r_props_foldphone
  • r_props_foldphone
    • assets
      • images9 inventory images
        • esx_items.sqlESX items
        • ox_inventory_items.luaox_inventory items
        • qb_items.luaQBCore items
        • rpemotes.luaemote lines
      • bridge
        • sv_items.luausable items
      • client
        • server
          • shared
            • config.luaevery setting
          • streamthe models, no need to touch
            • fxmanifest.lua

          Add to server.cfg

          Start it after your framework and inventory:

          ensure r_props_foldphone

          Items

          Paste the file for your inventory:

          Paste assets/ox_inventory_items.lua into ox_inventory/data/items.lua. Using an item takes the phone out, using it again puts it away.

          Then copy assets/images/*.png into your inventory's image folder.

          Emotes (optional)

          Paste assets/rpemotes.lua into the PropEmotes table of rpemotes (client/AnimationList.lua). Every colour has a closed and an open emote, for example /e ifruitfoldblack and /e ifruitfoldblackopen. The emotes hold a still model and don't fold.

          Restart

          Restart your server, or run this in the server console:

          Server console
          refresh
          ensure r_props_foldphone
          Started resource r_props_foldphone

          Try it

          • /foldphone takes out the default phone. Run it again to put it away.
          • /foldphone duo white or /foldphone flip mint picks a phone and colour.
          • Y folds and unfolds it. Players can change the key in their key settings.

          Use the models in your own scripts

          Every colour has a still closed and open model. Spawn it by name:

          PhoneClosedOpen
          iFruit Foldr_foldphone_<colour>_closedr_foldphone_<colour>_open
          iFruit Duor_foldduo_<colour>_closedr_foldduo_<colour>_open
          iFruit Flipr_foldflip_<colour>_closedr_foldflip_<colour>_open

          Colours: Fold black, silver, cream, green. Duo night, white. Flip graphite, lilac, mint. Hand props attach to bone 28422. The offsets are in assets/rpemotes.lua.

          Updates

          Download the new version from the Cfx.re Portal and replace the folder. Keep your shared/config.lua and bridge/ if you changed them. The console tells you at server start when a new version is out.

          Next Steps