Skip to main content

getGraffitiById

exports["RiP-Graffiti"]:getGraffitiById(id)

This function returns graffiti data by its ID

Arguments

NameTypeOptionalExplanation
idNumberNoThe graffiti ID

Returned Table

NameTypeExplanation
graffitiTableGraffiti data containing coordinates, text, and style

Example

local graffitiData = exports["RiP-Graffiti"]:getGraffitiById(1)
print("Graffiti text:", json.encode(graffitiData))