configCommunityService.lua
config.communityService = {
active = true,
commands = {
add = "cs", -- Command to assign community service to a player
remove = "csc", -- Command to remove a player's community service
},
teleportCoords = vector3(-834.99, -1312.56, 5.0), -- Community service area teleport coordinates
teleportBack = {
active = true,
distance = 50, -- Player is teleported back if they go further than this distance
extensionOnEscape = {
active = true, -- Extra tasks are added to penalty on escape attempt
amount = 5, -- Number of tasks added on escape attempt
},
},
location = {
coords = {
{ type = "cleaning", coords = vector3(-830.86, -1327.14, 5.0) },
{ type = "cleaning", coords = vector3(-824.01, -1322.75, 5.0) },
{ type = "cleaning", coords = vector3(-828.63, -1314.52, 5.0) },
{ type = "cleaning", coords = vector3(-825.71, -1305.49, 5.0) },
{ type = "cleaning", coords = vector3(-842.79, -1318.84, 5.0) },
{ type = "cleaning", coords = vector3(-841.16, -1329.11, 5.0) },
{ type = "cleaning", coords = vector3(-834.57, -1330.99, 5.15) },
{ type = "gardening", coords = vector3(-836.54, -1326.93, 5.1) },
{ type = "gardening", coords = vector3(-836.7, -1321.99, 5.1) },
{ type = "gardening", coords = vector3(-839.44, -1318.68, 5.1) },
{ type = "gardening", coords = vector3(-839.98, -1312.12, 5.1) },
{ type = "gardening", coords = vector3(-843.46, -1305.87, 5.1) },
{ type = "gardening", coords = vector3(-822.49, -1309.86, 5.1) },
{ type = "gardening", coords = vector3(-818.15, -1297.37, 5.1) },
{ type = "gardening", coords = vector3(-821.4, -1289.39, 5.1) },
}
},
progressBar = {
cleaning = {
anim = {
animDict = "amb@world_human_janitor@male@idle_a",
anim = "idle_a",
flags = 0,
},
prop = { -- prop1
model = "prop_tool_broom",
bone = 28422,
coords = { x = -0.005, y = 0.0, z = 0.0 },
rotation = { x = 360.0, y = 360.0, z = 0.0 },
},
time = 10000,
},
gardening = {
anim = {
animDict = "amb@world_human_gardener_plant@male@base",
anim = "base",
flags = 0,
},
prop = { -- prop1
model = "bkr_prop_coke_spatula_04",
bone = 28422,
coords = { x = -0.005, y = 0.0, z = 0.0 },
rotation = { x = 190.0, y = 190.0, z = -50.0 },
},
time = 14000
}
}
}
Last updated