Objectives for FiveM

Objectives for FiveM

A guide to install Objectives for FiveM


๐Ÿ“‹ Table of Contents

  1. ๐ŸŽฏ Overview
  2. ๐Ÿ›’ Purchase Information
  3. ๐Ÿ“บ Installation Tutorial
  4. โš ๏ธ Important Pre-Installation Notes
  5. ๐Ÿ”ง System Requirements & Compatibility
  6. ๐Ÿ“ฆ Installation Process
  7. โš™๏ธ Configuration Setup
  8. ๐ŸŽฎ How It Works
  9. ๐Ÿ”— Integration & Compatibility
  10. ๐Ÿ“Š Exports
  11. ๐Ÿ› ๏ธ Troubleshooting
  12. ๐Ÿ’ก Best Practices
  13. ๐Ÿ†˜ Support

๐ŸŽฏ Overview

Simply use client-side exports to invoke objectives on your game screen and give context to what your players can do in your FiveM server. Objectives provides a clean, customizable way to display mission information, hints, and guidance directly to players.

Key Features

  • โœ… Client-Side Exports - Easy integration with any script
  • โœ… Customizable Styling - Configure the appearance of objectives
  • โœ… Universal Compatibility - Works with any FiveM server
  • โœ… Duration Control - Set custom display duration
  • โœ… Clear Function - Remove objectives when needed
  • โœ… Escrow Protection - Secure resource protection
  • โœ… Lightweight - Minimal performance impact

๐Ÿ›’ Purchase Information

Get Objectives:

Purchase on Nights Software Store


๐Ÿ“บ Installation Tutorial

Watch the installation tutorial:

Video Showcase


โš ๏ธ Important Pre-Installation Notes

Critical Installation Order: Always follow this exact sequence to avoid parsing errors in the F8 console:

  1. Download ZIP Package from CFX Portal
  2. Unpack in a folder on your local machine
  3. Set File Transfer Protocol (FTP) type to binary
  4. Drag files from local machine to server resources folder
  5. Add to server.cfg (ensure script)
  6. Boot up the server

Support Policy: Follow this guide step by step. If youโ€™re stuck, ask for support in our Discord and provide the specific step name. Do not skip steps.


๐Ÿ”ง System Requirements & Compatibility

Framework Compatibility

  • โœ… Standalone: Works independently without any framework
  • โœ… Any FiveM Server: Universal compatibility

OneSync Compatibility

  • โœ… OneSync Legacy: Fully tested and compatible
  • โœ… OneSync Infinity: Fully tested and compatible

Note: Objectives is designed to work with any FiveM server configuration and doesnโ€™t require specific framework dependencies.


๐Ÿ“ฆ Installation Process

Step 1: Download & Install

  1. Download the resource from the CFX Portal after purchase
  2. Extract the ZIP package to your local machine
  3. Transfer files using binary FTP mode to your serverโ€™s resources folder
  4. Ensure the folder is named night_objectives (do not rename)

Step 2: Server Configuration

Add the resource to your server.cfg:

ensure night_objectives

Step 3: Verify Installation

  1. Start your server and check the console for any errors
  2. Test the resource by using the exports in a client script
  3. Verify functionality by displaying a test objective

โš™๏ธ Configuration Setup

Required Tools

Visual Studio Code: We recommend downloading VS Code for editing Lua files.

Configuration Files

File Purpose
night_objectives/config/config.lua Main configuration and styling settings
night_objectives/client/c_functions.lua Client-side functions
night_objectives/server/s_functions.lua Server-side functions

Configuration Process

  1. Open VS Code and navigate to the config files
  2. Read thoroughly - each line has explanatory comments
  3. Configure styling - customize the appearance of objectives
  4. Test frequently - use F8 console for error checking

Styling Options: The config file contains all styling options for customizing the appearance of objectives.


๐ŸŽฎ How It Works

Display Objectives

Use the client-side export to display objectives on the playerโ€™s screen:

exports.night_objectives:DisplayObjective(
    true,                    -- display (true/false)
    "Mission Title",         -- title
    "Mission Description",   -- description
    "Helpful Hint",          -- hint
    15                       -- duration in seconds
)

Clear Objectives

Remove objectives from the screen:

exports.night_objectives:ClearObjective()

Integration Examples

Mission System Integration:

-- Display mission objective
exports.night_objectives:DisplayObjective(true, "Deliver Package", "Take the package to the marked location", "Follow the GPS route", 30)

-- Clear when mission completes
exports.night_objectives:ClearObjective()

Job System Integration:

-- Display job instructions
exports.night_objectives:DisplayObjective(true, "Police Duty", "Patrol the city and respond to calls", "Use /911 to respond to emergencies", 60)

๐Ÿ”— Integration & Compatibility

Framework Support

  • Standalone - Works independently without framework dependencies

Script Integration

  • Mission Systems - Display mission objectives and progress
  • Job Systems - Show job-specific instructions and tasks
  • Tutorial Systems - Guide new players through features
  • Event Systems - Display event information and instructions

Universal Integration: Objectives can be integrated into any FiveM script using simple client-side exports.


๐Ÿ“Š Exports

Client-Side Exports

-- Display an objective
exports.night_objectives:DisplayObjective(
    display,        -- boolean: true to show, false to hide
    title,          -- string: objective title
    description,    -- string: objective description
    hint,           -- string: helpful hint text
    duration        -- number: display duration in seconds
)

-- Clear all objectives
exports.night_objectives:ClearObjective()

Parameter Details

Parameter Type Description
display boolean Set to true to show objective, false to hide
title string The main title of the objective
description string Detailed description of what the player should do
hint string Additional helpful hint or instruction
duration number How long to display the objective in seconds

๐Ÿ› ๏ธ Troubleshooting

Common Issues

Export Not Found

  • Ensure the resource is properly started in server.cfg
  • Check that the resource name is night_objectives
  • Verify the resource started without errors in console

Objectives Not Displaying

  • Check F8 console for any error messages
  • Verify the export parameters are correct
  • Ensure the display parameter is set to true

Styling Issues

  • Check the config.lua file for styling settings
  • Verify CSS/styling configurations are correct
  • Test with default settings first

Debugging Tips

  • Check F8 Console - Look for any error messages
  • Test with Simple Export - Start with basic parameters
  • Verify Resource Loading - Ensure resource starts without errors
  • Check File Permissions - Ensure all files are accessible

๐Ÿ’ก Best Practices

Objective Design

  • Clear Titles - Use concise, descriptive titles
  • Detailed Descriptions - Provide enough information for players to understand
  • Helpful Hints - Include additional guidance when needed
  • Appropriate Duration - Set duration based on objective complexity

Integration Tips

  • Consistent Styling - Use consistent objective formatting across your server
  • Clear Objectives - Always clear objectives when theyโ€™re no longer relevant
  • Error Handling - Implement proper error handling for export calls
  • Performance - Donโ€™t spam objectives; use appropriate timing

User Experience

  • Progressive Disclosure - Show objectives as players progress
  • Contextual Information - Display objectives relevant to current situation
  • Clear Instructions - Make objectives easy to understand and follow
  • Visual Hierarchy - Use titles and descriptions effectively

๐Ÿ†˜ Support

Read through the instructions again if you have not managed to install the resource. Canโ€™t get it to work still? Create a ticket through our dedicated support system in Discord:

Nights Software Discord


Back to top

Copyright © 2025 Nights Software

Page last modified: July 22, 2025 at 04:00 PM.