This is the official Fivemanage API SDK for FiveM. It is written in Javascript and Lua.
- Screenshot Basic
Download the latest release from the releases. Make sure it is the fivemanage_lib.zip
file.
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.
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)
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)