Skip to main content

getAllGraffitisByOwner

exports["RiP-Graffiti"]:getAllGraffitisByOwner(owner)

This function returns all graffiti data owned by a specific player

Arguments

NameTypeOptionalExplanation
ownerStringNoThe owner identifier

Returned Table

NameTypeExplanation
graffitisTableArray of graffiti data containing coordinates, text, and style

Example

local ownerGraffitis = exports["RiP-Graffiti"]:getAllGraffitisByOwner("license:1234567890")
for _, graffiti in pairs(ownerGraffitis) do
print("Graffiti text:", json.encode(graffiti))
end