getGraffitiById
exports["RiP-Graffiti"]:getGraffitiById(id)
This function returns graffiti data by its ID
Arguments
Name | Type | Optional | Explanation |
---|---|---|---|
id | Number | No | The graffiti ID |
Returned Table
Name | Type | Explanation |
---|---|---|
graffiti | Table | Graffiti data containing coordinates, text, and style |
Example
local graffitiData = exports["RiP-Graffiti"]:getGraffitiById(1)
print("Graffiti text:", json.encode(graffitiData))