Advertisement
RISKSCRIPTS

Farmingsystem FarmConfig

Nov 4th, 2024
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. RS.FarmingConfig = {
  2. farmingPoints = {
  3. -- **Regular Farming Point**
  4. {
  5. name = 'Kiesel',
  6. type = 'regular', -- 'regular' or 'prop'
  7. showblip = true, -- Blip anzeigen
  8. blip = {
  9. sprite = 1,
  10. color = 42,
  11. scale = 0.8,
  12. display = 4,
  13. name = 'Kies Farm', -- Blip name
  14. },
  15. marker = {
  16. enabled = true,
  17. type = 1,
  18. size = { x = 17.5, y = 17.5, z = 10.0 },
  19. color = { r = 0, g = 255, b = 0, a = 150 },
  20. drawDistance = 50.0,
  21. bobUpAndDown = false,
  22. faceCamera = false,
  23. rotate = false,
  24. },
  25. location = vector3(1140.9744, 1978.5764, 60.7245),
  26. radius = 9,
  27. helptext = 'Press E to Farm | Press X to Stop (t20)',
  28. actionKey = 38, -- E key
  29. cycleTime = 10, -- Seconds per farming cycle
  30.  
  31. -- **AFK Farming Settings**
  32. afkFarmingEnabled = true, -- Enable or disable AFK farming
  33. afkCycleTime = 10, -- Seconds between AFK farming cycles
  34.  
  35. -- **Items to Farm**
  36. itemsToFarm = {
  37. { name = 'kiesel', label = 'Kiesel', amount = 1, rarity = 1.0 },
  38. { name = 'wasser', label = 'Wasser', amount = 1, rarity = 1.0 }, -- Common item (100% chance)
  39. { name = 'sand', label = 'Sand', amount = 1, rarity = 0.05 }, -- Rare item (5% chance)
  40. },
  41.  
  42. -- **Vehicle Requirements**
  43. requireVehicle = true, -- Require a vehicle to farm
  44. allowedVehicle = 't20', -- Allowed vehicle model
  45.  
  46. -- **Tool Requirements**
  47. enableToolRequirement = false, -- Enable or disable tool requirement
  48. requiredTool = {
  49. name = 'farm_tool', -- Required tool name
  50. label = 'Farming Tool', -- Tool display name
  51. },
  52.  
  53. -- **NPC and Animations**
  54. enableNPC = true,
  55. npc = {
  56. model = 'a_f_m_beach_01',
  57. heading = 90,
  58. },
  59. enableAnimation = true,
  60. animation = {
  61. dict = "amb@world_human_gardener_plant@male@base",
  62. anim = "base",
  63. flag = 1,
  64. },
  65.  
  66. -- **Progress Bar Color**
  67. progressBarColor = { r = 254, g = 1, b = 154, a = 200 },
  68. },
  69.  
  70. -- **Prop-based Farming Point**
  71. {
  72. name = 'Tree Farm',
  73. type = 'prop', -- 'regular' or 'prop'
  74. showblip = false, -- Blip nicht anzeigen
  75. blip = {
  76. sprite = 496,
  77. color = 10,
  78. scale = 0.8,
  79. display = 4,
  80. name = 'Tree Farm', -- Blip name
  81. },
  82. marker = {
  83. enabled = true,
  84. type = 1,
  85. size = { x = 37.5, y = 37.5, z = 10.0 },
  86. color = { r = 83, g = 200, b = 189, a = 150 },
  87. drawDistance = 50.0,
  88. bobUpAndDown = false,
  89. faceCamera = false,
  90. rotate = false,
  91. },
  92. location = vector3(1171.3937, 1985.1241, 62.3060),
  93. radius = 20,
  94. helptext = 'Press E to Farm the Tree',
  95. actionKey = 38, -- E key
  96. cycleTime = 5, -- Seconds per farming cycle
  97.  
  98. -- **Props Settings**
  99. props = {
  100. enabled = true,
  101. propModels = { 'prop_tree_pine_02', 'prop_tree_fallen_pine_01' }, -- List of prop models
  102. numberOfProps = 6, -- Number of props to spawn simultaneously
  103. respawnTime = 60, -- Seconds until a prop respawns
  104. },
  105.  
  106. -- **Tool Requirements**
  107. enableToolRequirement = false, -- Disable tool requirement
  108. requiredTool = {
  109. name = 'none',
  110. label = 'None',
  111. },
  112.  
  113. -- **NPC and Animations**
  114. enableNPC = false, -- No NPC
  115. npc = {
  116. model = 'none',
  117. heading = 0,
  118. },
  119. enableAnimation = true,
  120. animation = {
  121. dict = "amb@world_human_gardener_plant@male@base",
  122. anim = "base",
  123. flag = 1,
  124. },
  125.  
  126. -- **Progress Bar Color**
  127. progressBarColor = { r = 83, g = 195, b = 189, a = 200 },
  128.  
  129. -- **Items to Farm for Props**
  130. itemsToFarm = {
  131. { name = 'wasser', label = 'Wasser', amount = 2, rarity = 1.0 },
  132. { name = 'harz', label = 'Harz', amount = 1, rarity = 0.3 },
  133. },
  134. },
  135.  
  136. -- Fügen Sie weitere Farming-Punkte nach Bedarf hinzu...
  137. },
  138.  
  139. -- **Global Settings**
  140. enableToolRequirement = true, -- Enable tool requirement globally (can be overridden per point)
  141. requiredTool = {
  142. name = 'farm_tool',
  143. label = 'Farming Tool',
  144. },
  145. -- Add more global configurations as needed...
  146. }
  147.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement