daZepelin / fivemanage_lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 71.7%Language:Lua 28.3%