Skip to main content

Config

Some configuration options are explained here. However this does not represent the original config file.

RiP.DebugMode

[BOOLEAN] Enable debug prints

RiP.DebugMode = false

RiP.Locale

[STRING] Default locale (RiP-Graffiti/locales/*.lua)

RiP.Locale = 'en'

RiP.Framework

[STRING] Framework configuration for supported frameworks:

RiP.Framework = "auto"

RiP.SQLFrameWork

[STRING] SQL framework configuration for supported frameworks:

RiP.SQLFrameWork = "mysql-async"

RiP.FivemanageAPICode

[STRING] FiveManage API configuration This is used to upload images to the FiveManage API You can get your API key from https://fivemanage.com This is optional, if you don't want to use your own api code, leave it empty

RiP.FivemanageAPICode = ""

RiP.MaxGraffitis

[INTEGER] Maximum number of graffiti at the same time (max: 25)

RiP.MaxGraffitis = 25

RiP.GraffitiDistance

[FLOAT] Distance to render graffiti

RiP.GraffitiDistance = 100

RiP.DisappearTime

[INTEGER] Graffiti disappear time in seconds (default: 4 days, false to disable)

RiP.DisappearTime = 86400 * 4

RiP.Times

[INTEGER] Various time configurations in seconds

RiP.ShakeTime = 5.5    -- Spray can shake time
RiP.SprayTime = 5 -- Spray time
RiP.CleanTime = 5 -- Clean time

RiP.Items

[STRING] Item configurations

RiP.Item = "spraycan"      -- Item to draw graffiti
RiP.CleanItem = "acetone" -- Item to clean graffiti

RiP.Canvas

[TABLE] Canvas size configuration

RiP.Canvas = {
Width = 400, -- Canvas width
Height = 400, -- Canvas height
}

RiP.OpacityClamp

[TABLE] Opacity configuration

RiP.OpacityClamp = {
Min = 0.25, -- Minimum opacity
Max = 1.0, -- Maximum opacity
Step = 0.01 -- Opacity step
}

RiP.ScaleClamp

[TABLE] Scale configuration

RiP.ScaleClamp = {
Min = 0.25, -- Minimum scale
Max = 2.5, -- Maximum scale
Step = 0.025 -- Scale step
}

RiP.OffsetClamp

[TABLE] Offset configuration

RiP.OffsetClamp = {
Min = -0.15, -- Minimum offset
Max = 0.15, -- Maximum offset
Step = 0.001 -- Offset step
}