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
- Buy R_Props Foldable Phones on r-scripts.net
- Download it from your Cfx.re Portal
- Extract the folder into your server's
resourcesdirectory - 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_foldphoneItems
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:
Try it
/foldphonetakes out the default phone. Run it again to put it away./foldphone duo whiteor/foldphone flip mintpicks 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:
| Phone | Closed | Open |
|---|---|---|
| iFruit Fold | r_foldphone_<colour>_closed | r_foldphone_<colour>_open |
| iFruit Duo | r_foldduo_<colour>_closed | r_foldduo_<colour>_open |
| iFruit Flip | r_foldflip_<colour>_closed | r_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.