Download the purchased resource from CFX Portal - the official site of FiveM with purchased resources.
2. Install Required Dependencies
This script needs a few extra resources to work properly. Below you will find a list of things to download - click the link, download and upload to your server just like other resources.
This is a very important step - without it, the script will not work properly. Depending on the framework you are using (ESX, QBCORE or QBOX), select the appropriate section below and paste the SQL code into your database.
SQL for Database
-- Create the baddie stats state tableCREATETABLEIFNOTEXISTS baddie_stats ( identifier varchar(50) NOT NULL,namevarchar(50) DEFAULTNULL, sales int(11) DEFAULT0,PRIMARY KEY (identifier));
4. Add Required Items
Add the items to your inventory system’s item file or database, then copy the images from orbit-onlypics/install/images into your inventory’s image folder.
ESX Installation
OX Inventory Installation
QBCORE Installation
QBOX Installation
5. Configuration
Configure config.lua to match your server framework and preferences, and customize the available content options for the female OnlyPics job.
To start a resource in your server.cfg, ensure that it begins after your framework has been initiated. For instance, if you are using a framework like es_extended, you should start resource after it, like so:
-- ============================================
-- ESX ONLYPICS COMPLETE INSTALLATION
-- ============================================
-- This file contains everything needed for ESX
--
-- STEP 1: Run the SQL below in your database
-- ============================================
-- [[[ STEP 1: SQL DATABASE SETUP ]]]
-- Run this SQL in your database (phpMyAdmin, HeidiSQL, etc.):
-- Add camera and photo items to ESX items table
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`, `description`)
VALUES
('baddie_cam', 'Baddie Camera', 1, 0, 1, 'Exclusive camera for taking photos'),
('baddie_pic', 'Developed Photo', 1, 0, 1, 'A developed photo ready for sale');
print("========================================")
print("ESX OnlyPics Installation Complete")
print("========================================")
print("1. Run the SQL in your database")
print("2. IMPORTANT: ESX uses built-in inventory system")
print("3. No image files needed for ESX")
print("4. Restart your server")
print("========================================")