Skip to content

daZepelin/fivemanage_lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fivemanage API SDK for FiveM

This is the official Fivemanage API SDK for FiveM. It is written in Javascript and Lua.

Requirements

  • Screenshot Basic

Installation

Download the latest release from the releases. Make sure it is the fivemanage_lib.zip file.

Usage

Add the following to your server.cfg:

set FIVEMANAGE_IMAGE_TOKEN your_token

This is the token for image uploading

You can now call events or exports.

Client Exports

local imageData = exports.fivemanage_lib:takeImage()

-- With metadata

local imageData =  exports.fivemanage_lib:takeImage({
    name = "My image",
    description = "This is my image",
    -- or any other field you want
})

print(image.url)

Server Exports

local imageData = exports.fivemanage_lib:takeServerImage(src)

-- With metadata

local imageData = exports.fivemanage_lib:takeServerImage(src, {
    name = "My image",
    description = "This is my image",
    -- or any other field you want
})

print(image.url)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.7%
  • Lua 28.3%