Documentation
TebexDiscordYouTubeGitHub
  • Introduction
  • FIVEM FREE RESOURCES
    • BDSC
      • Guides
        • Core Setup
          • Installing BDSC
          • Configuring BDSC
        • Plugin Development
          • What is a Plugin?
          • Plugin Structure
          • Extending Player Objects
      • API
        • Functions
          • Player
          • Server
          • Client
          • Shared
        • Modules
          • Player Manager
          • Buckets
          • Plugins
        • UI Components
    • boii_utils
      • Installation
      • Configuration
      • Modules
      • API
        • Callbacks
        • Characters
        • Commands
        • Cooldowns
        • Debugging
        • Entities
        • Environment
        • Framework Bridge
        • Geometry
        • Items
        • Keys
        • Licences
        • Maths
        • Methods
        • Player
        • Requests
        • Strings
        • Tables
        • Timestamps
        • UI Bridges
        • Vehicles
        • Version
        • XP
        • UI Elements
  • FIVEM PAID RESOURCES
    • Page 2
Powered by GitBook
On this page
  • Accessing the Module
  • Server
  • check_version(opts)
  1. FIVEM FREE RESOURCES
  2. boii_utils
  3. API

Version

Provides utilities for inspecting, modifying, and spawning vehicles with customization support.


Accessing the Module

local VEHICLES <const> = exports.boii_utils:get("modules.vehicles")

Server

check_version(opts)

Checks the version of a resource against the latest version on GitHub.

Parameters

Name
Type
Description

opts

table

Configuration table containing:

└ resource_name

string

The resource name (optional, defaults to current resource)

└ url_path

string

Path to the versions JSON file on GitHub

└ callback

function

Callback function receiving (success, current_version, latest_version, notes)

Example

local options = {
    resource_name = 'my_resource',
    url_path = 'myuser/myrepo/refs/heads/main/versions.json',
    callback = function(success, current, latest, notes)
        if success then
            print('Up to date!')
        else
            print('Outdated:', notes)
        end
    end
}

VERSION.check(options)
PreviousVehiclesNextXP

Last updated 2 months ago