Advertisement
Guest User

PD Apartment Cleaning Config

a guest
Sep 8th, 2022
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.92 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.framework = 'esx' -- Options: 'esx' or 'qbcore'
  4.  
  5. -- supported types: 'mysql', 'oxmysql' and 'ghmattimysql'
  6. Config.sqlDriver = 'oxmysql'
  7.  
  8. Config.minCountPoliceNeeded = 2 -- Amount of police officers needed for the valuable to spawn
  9.  
  10. Config.shouldCopsGetNotified = true -- Should police get notified when player gets caught stealing
  11.  
  12. Config.subtitleShowLength = 10 -- in seconds, how long tutorial subtitles will show on player's screen
  13.  
  14. Config.bannedTime = 20 -- in minutes
  15.  
  16. Config.target = {
  17. enabled = true,
  18. system = 'qtarget' -- 'qtarget' or 'qb-target' (Other systems might work as well)
  19. }
  20.  
  21. Config.cleanerJob = {
  22. jobOnly = true,
  23. jobNames = {
  24. 'cleaner'
  25. }
  26. }
  27.  
  28. Config.enableBlipRoute = true -- If player should get a route to the apartment
  29.  
  30. Config.bucketModel = 'prop_tool_mopbucket'
  31.  
  32. Config.useSellLocations = true -- if sell locations should be accessible to players
  33.  
  34. Config.payout_account = "bank"
  35.  
  36. Config.policeJobNames = {
  37. 'police'
  38. }
  39.  
  40. -- If player's experience should reset if they get caught stealing
  41. Config.playerExpReset = true
  42.  
  43. -- Enable if you're using an older version of oxmysql
  44. Config.oldOxmysql = false
  45.  
  46. Config.chanceOfValuableSpawning = 15 -- %
  47.  
  48. Config.chanceOfCaughtStealing = 20 -- %
  49.  
  50. -- If player should be able to leave an apartment without cleaning anything (player will receive no payout and no experience)
  51. Config.exitApartmentWithoutCleaning = true
  52.  
  53. -- Time it takes for the player to receive a new order
  54. Config.timeToFindNewOrder = {
  55. min = 15, -- in seconds
  56. max = 45-- in seconds
  57. }
  58.  
  59. Config.keybinds = {
  60. collect = 'G',
  61. interactMop = 'E',
  62. interactTrashBag = 'E',
  63. enterAndExitApartment = 'E',
  64. startAndEndWork = 'E',
  65. sellItems = 'E',
  66. mopFloor = 'G',
  67. checkExperience = 'H'
  68. }
  69.  
  70. Config.startJobLocation = {
  71. x = 707.7,
  72. y = -960.4,
  73. z = 30.3,
  74. }
  75. -- Chance of mop successfully cleaning a floor stain (per click)
  76. Config.chanceOfCleaning = 100 -- %
  77.  
  78. Config.experience = {
  79. {
  80. minExp = 0,
  81. maxExp = 100,
  82. payBonus = 5, -- %
  83. name = 'Beginner cleaner',
  84. },
  85. {
  86. minExp = 101,
  87. maxExp = 200,
  88. payBonus = 7, -- %
  89. name = 'Amateur cleaner',
  90. },
  91. {
  92. minExp = 201,
  93. maxExp = 300,
  94. payBonus = 12, -- %
  95. name = 'Advanced cleaner',
  96. },
  97. {
  98. minExp = 301,
  99. maxExp = 99999,
  100. payBonus = 15, -- %
  101. name = 'Expert cleaner',
  102. },
  103. minExpGain = 500,
  104. maxExpGain = 1000
  105. }
  106.  
  107. Config.interiors = {
  108. ['smallApartment'] = {
  109. minExpLvl = 1,
  110. ipl = 'small_apart',
  111. trashCount = 5,
  112. decalCount = 2,
  113. payoutMin = 500,
  114. payoutMax = 6000,
  115. valuableSpawnLocation = {
  116. {
  117. x = -283.7,
  118. y = 1212.4,
  119. z = 275.8,
  120. },
  121. {
  122. x = -271.2,
  123. y = 1217.6,
  124. z = 276.3,
  125. }
  126. },
  127. playerSpawnLocation = {
  128. x = -277.1,
  129. y = 1204.2,
  130. z = 275.8,
  131. },
  132. mopSpawnLocation = {
  133. x = -273.1,
  134. y = 1208.8,
  135. z = 275.8,
  136. },
  137. bucketSpawnLocation = {
  138. x = -273.5,
  139. y = 1209.6,
  140. z = 275.8,
  141. },
  142. trashBagSpawnLocation = {
  143. x = -278.1,
  144. y = 1211.9,
  145. z = 275.5,
  146. },
  147. mainLocation = {
  148. x = -283.1,
  149. y = 1217.8,
  150. z = 275.8,
  151. },
  152. decalLocations = {
  153. {
  154. x = -279.1,
  155. y = 1220.5,
  156. z = 275.8,
  157. },
  158. {
  159. x = -276.2,
  160. y = 1222.5,
  161. z = 275.8,
  162. }
  163. },
  164. presetLocations = {
  165. {
  166. x = -273.95,
  167. y = 1220.1,
  168. z = 277.06,
  169. },
  170. {
  171. x = -273.9,
  172. y = 1208.9,
  173. z = 275.8,
  174. },
  175. {
  176. x = -281.8,
  177. y = 1222.2,
  178. z = 276.2,
  179. },
  180. {
  181. x = -276.4,
  182. y = 1221.1,
  183. z = 275.8,
  184. }
  185. }
  186. },
  187. ['lowEndApartment'] = {
  188. ipl = 'low_apartment',
  189. minExpLvl = 1,
  190. trashCount = 5,
  191. decalCount = 2,
  192. payoutMin = 500,
  193. payoutMax = 4500,
  194. valuableSpawnLocation = {
  195. {
  196. x = 261.2,
  197. y = -1022.8,
  198. z = -98.4,
  199. },
  200. {
  201. x = 257.1,
  202. y = -1017.2,
  203. z = -98.5
  204. }
  205. },
  206. playerSpawnLocation = {
  207. x = 266.1,
  208. y = -1025.5,
  209. z = -101.0,
  210. },
  211. mopSpawnLocation = {
  212. x = 264.6,
  213. y = -1020.3,
  214. z = -99.0,
  215. },
  216. bucketSpawnLocation = {
  217. x = 264.8,
  218. y = -1021.5,
  219. z = -99.0,
  220. },
  221. trashBagSpawnLocation = {
  222. x = 265.5,
  223. y = -1017.7,
  224. z = -99.0,
  225. },
  226. mainLocation = {
  227. x = 259.2,
  228. y = -1016.2,
  229. z = -99.0,
  230. },
  231. decalLocations = {
  232. {
  233. x = 264.3,
  234. y = -1014.6,
  235. z = -99.0,
  236. },
  237. {
  238. x = 260.2,
  239. y = -1021.1,
  240. z = -99.0,
  241. }
  242. },
  243. presetLocations = {
  244. {
  245. x = 262.5,
  246. y = -1021.1,
  247. z = -99.0,
  248. },
  249. {
  250. x = 262.1,
  251. y = -1014.8,
  252. z = -99.0,
  253. },
  254. {
  255. x = 255.4,
  256. y = -1019.1,
  257. z = -99.0,
  258. },
  259. {
  260. x = 257.1,
  261. y = -1014.2,
  262. z = -99.0,
  263. }
  264. }
  265. },
  266. ['executive_office'] = {
  267. ipl = 'executive_dlc',
  268. minExpLvl = 3,
  269. trashCount = 5,
  270. decalCount = 5,
  271. payoutMin = 500,
  272. payoutMax = 15000,
  273. valuableSpawnLocation = {
  274. {
  275. x = -1561.0,
  276. y = -572.6,
  277. z = 55.4,
  278. },
  279. {
  280. x = -1556.3,
  281. y = -576.7,
  282. z = 55.2,
  283. }
  284. },
  285. playerSpawnLocation = {
  286. x = -1580.9,
  287. y = -561.6,
  288. z = 54.4,
  289. },
  290. mopSpawnLocation = {
  291. x = -1579.5,
  292. y = -568.4,
  293. z = 54.4,
  294. },
  295. bucketSpawnLocation = {
  296. x = -1578.6,
  297. y = -569.8,
  298. z = 54.4,
  299. },
  300. trashBagSpawnLocation = {
  301. x = -1574.0,
  302. y = -565.4,
  303. z = 54.4,
  304. },
  305. mainLocation = {
  306. x = -1562.9,
  307. y = -579.6,
  308. z = 54.4,
  309. },
  310. decalLocations = {
  311. {
  312. x = -1575.8,
  313. y = -575.2,
  314. z = 54.4,
  315. },
  316. {
  317. x = -1573.9,
  318. y = -588.6,
  319. z = 54.4,
  320. },
  321. {
  322. x = -1569.6,
  323. y = -570.2,
  324. z = 54.4,
  325. },
  326. {
  327. x = -1565.0,
  328. y = -571.3,
  329. z = 54.4,
  330. },
  331. {
  332. x = -1562.1,
  333. y = -581.8,
  334. z = 54.4,
  335. },
  336. {
  337. x = -1567.0,
  338. y = -581.1,
  339. z = 54.4,
  340. },
  341. {
  342. x = -1567.1,
  343. y = -586.5,
  344. z = 54.4,
  345. },
  346. {
  347. x = -1571.5,
  348. y = -581.2,
  349. z = 54.4,
  350. },
  351. {
  352. x = -1576.0,
  353. y = -580.7,
  354. z = 54.4,
  355. },
  356. {
  357. x = -1575.4,
  358. y = -570.2,
  359. z = 54.4,
  360. },
  361. {
  362. x = -1571.3,
  363. y = -575.9,
  364. z = 54.4,
  365. },
  366. {
  367. x = -1582.6,
  368. y = -558.8,
  369. z = 54.4,
  370. },
  371. },
  372. presetLocations = {
  373. {
  374. x = -1581.7,
  375. y = -577.0,
  376. z = 54.4,
  377. },
  378. {
  379. x = -1561.1,
  380. y = -568.8,
  381. z = 54.4,
  382. },
  383. {
  384. x = -1564.0,
  385. y = -565.1,
  386. z = 54.4,
  387. },
  388. {
  389. x = -1570.2,
  390. y = -575.2,
  391. z = 54.4,
  392. }
  393. }
  394. },
  395. ['mediumGarage'] = {
  396. ipl = 'medium_garage',
  397. minExpLvl = 2,
  398. trashCount = 5,
  399. decalCount = 3,
  400. payoutMin = 1500,
  401. payoutMax = 7000,
  402. valuableSpawnLocation = {
  403. {
  404. x = 190.5,
  405. y = -920.9,
  406. z = -98.4,
  407. },
  408. {
  409. x = 206.9,
  410. y = -916.3,
  411. z = -97.9,
  412. }
  413. },
  414. playerSpawnLocation = {
  415. x = 198.3,
  416. y = -927.7,
  417. z = -98.9,
  418. },
  419. mopSpawnLocation = {
  420. x = 201.9,
  421. y = -927.6,
  422. z = -98.9,
  423. },
  424. bucketSpawnLocation = {
  425. x = 203.58,
  426. y = -927.8,
  427. z = -98.9,
  428. },
  429. trashBagSpawnLocation = {
  430. x = 195.2,
  431. y = -927.6,
  432. z = -98.9,
  433. },
  434. mainLocation = {
  435. x = 197.2,
  436. y = -919.3,
  437. z = -98.9,
  438. },
  439. decalLocations = {
  440. {
  441. x = 192.0,
  442. y = -916.2,
  443. z = -98.9,
  444. },
  445. {
  446. x = 192.1,
  447. y = -919.8,
  448. z = -98.9,
  449. },
  450. {
  451. x = 191.1,
  452. y = -927.0,
  453. z = -98.9,
  454. },
  455. {
  456. x = 198.2,
  457. y = -916.23,
  458. z = -98.9,
  459. },
  460. {
  461. x = 204.3,
  462. y = -916.3,
  463. z = -98.9,
  464. },
  465. {
  466. x = 201.7,
  467. y = -922.9,
  468. z = -98.9,
  469. },
  470. {
  471. x = 212.0,
  472. y = -919.5,
  473. z = -98.9,
  474. },
  475. },
  476. presetLocations = {
  477. {
  478. x = 205.7,
  479. y = -925.4,
  480. z = -98.9,
  481. },
  482. {
  483. x = 210.5,
  484. y = -919.3,
  485. z = -98.9,
  486. },
  487. {
  488. x = 205.6,
  489. y = -915.1,
  490. z = -98.9,
  491. }
  492. }
  493. },
  494. }
  495.  
  496. --All decal types: https://imgur.com/a/fxXTiCC
  497. Config.decal = {
  498. types = {
  499. 1020,
  500. 1010,
  501. 4100
  502. },
  503.  
  504. colorVariants = {
  505. {
  506. r = 0.427,
  507. g = 0.37,
  508. b = 0.29
  509. },
  510. {
  511. r = 0.4,
  512. g = 0.2,
  513. b = 0.0
  514. },
  515. {
  516. r = 0.2,
  517. g = 0.6,
  518. b = 0.2
  519. }
  520. },
  521. --The size of the decal (only integer numbers)
  522. minScale = 1,
  523. maxScale = 3
  524. }
  525.  
  526. Config.locations = {
  527. {
  528. interiorKey = 'smallApartment',
  529. coords = {
  530. x = -1566.5,
  531. y = -404.0,
  532. z = 42.3,
  533. }
  534. },
  535. {
  536. interiorKey = 'smallApartment',
  537. coords = {
  538. x = -201.7,
  539. y = 186.2,
  540. z = 80.3,
  541. }
  542. },
  543. {
  544. interiorKey = 'smallApartment',
  545. coords = {
  546. x = 3.7,
  547. y = -201.1,
  548. z = 52.7,
  549. }
  550. },
  551. {
  552. interiorKey = 'smallApartment',
  553. coords = {
  554. x = 254.3,
  555. y = 25.22,
  556. z = 88.1,
  557. }
  558. },
  559. {
  560. interiorKey = 'executive_office',
  561. coords = {
  562. x = -185.5,
  563. y = -760.1,
  564. z = 30.4,
  565. }
  566. },
  567. {
  568. interiorKey = 'executive_office',
  569. coords = {
  570. x = 5.3,
  571. y = -707.1,
  572. z = 45.9,
  573. }
  574. },
  575. {
  576. interiorKey = 'executive_office',
  577. coords = {
  578. x = -81.8,
  579. y = -836.6,
  580. z = 40.5,
  581. }
  582. },
  583. {
  584. interiorKey = 'executive_office',
  585. coords = {
  586. x = -914.5,
  587. y = -455.6,
  588. z = 39.5,
  589. }
  590. },
  591. {
  592. interiorKey = 'lowEndApartment',
  593. coords = {
  594. x = -216.5,
  595. y = -1649.3,
  596. z = 34.4,
  597. }
  598. },
  599. {
  600. interiorKey = 'lowEndApartment',
  601. coords = {
  602. x = 431.1,
  603. y = -1559.4,
  604. z = 32.7,
  605. }
  606. },
  607. {
  608. interiorKey = 'lowEndApartment',
  609. coords = {
  610. x = 331.2,
  611. y = -2071.8,
  612. z = 20.2,
  613. }
  614. },
  615. {
  616. interiorKey = 'lowEndApartment',
  617. coords = {
  618. x = -1102.2,
  619. y = -1493.0,
  620. z = 4.8,
  621. }
  622. },
  623. {
  624. interiorKey = 'lowEndApartment',
  625. coords = {
  626. x = -1114.7,
  627. y = -1068.5,
  628. z = 2.15,
  629. }
  630. },
  631. {
  632. interiorKey = 'smallApartment',
  633. coords = {
  634. x = 254.3,
  635. y = 25.22,
  636. z = 88.1,
  637. }
  638. },
  639. {
  640. interiorKey = 'mediumGarage',
  641. coords = {
  642. x = 468.4,
  643. y = -1594.0,
  644. z = 29.2,
  645. }
  646. },
  647. {
  648. interiorKey = 'mediumGarage',
  649. coords = {
  650. x = 1219.5,
  651. y = -3234.3,
  652. z = 5.5,
  653. }
  654. },
  655. {
  656. interiorKey = 'mediumGarage',
  657. coords = {
  658. x = 1063.6,
  659. y = -2410.4,
  660. z = 29.9,
  661. }
  662. },
  663. {
  664. interiorKey = 'mediumGarage',
  665. coords = {
  666. x = -521.2,
  667. y = -2900.5,
  668. z = 6.0,
  669. }
  670. },
  671. }
  672.  
  673. Config.sellLocations = {
  674. {
  675. locations = {
  676. {
  677. x = 189.6,
  678. y = -14.5,
  679. z = 73.2
  680. },
  681. {
  682. x = 189.6,
  683. y = -14.5,
  684. z = 73.2
  685. }
  686. },
  687. name = 'Valuable Buyer',
  688. showOnMap = true,
  689. useAccount = 'bank',
  690. blipIcon = 617,
  691. blipColor = 46,
  692. blipScale = 0.8,
  693. items = {
  694. {
  695. item = 'pd_watch',
  696. label = 'Exquisite watch',
  697. price = 5000,
  698. },
  699. {
  700. item = 'pd_ringset',
  701. label = 'Set of rings',
  702. price = 9000,
  703. },
  704. {
  705. item = 'pd_laptop',
  706. label = 'Laptop',
  707. price = 2400,
  708. },
  709. {
  710. item = 'pd_necklace',
  711. label = 'Pearl necklace',
  712. price = 6000,
  713. }
  714. },
  715. }
  716. }
  717.  
  718.  
  719.  
  720. --Item models that spawn in interiors.
  721. --To make interior specific models, create sub-table with interior key as the name
  722. --IMPORTANT! If you want to add your own models, select non-breakable models as otherwise the trash might break!!!
  723. Config.itemModels = {
  724. ['lowEndApartment'] = {
  725. 'v_ret_247_ketchup2',
  726. 'v_ret_fh_noodle',
  727. 'ng_proc_sodacan_02b',
  728. 'ng_proc_litter_plasbot2',
  729. 'ng_proc_coffee_02a',
  730. 'v_ret_247_noodle1',
  731. 'v_ret_247_soappowder2',
  732. 'prop_pizza_box_01',
  733. 'prop_old_boot',
  734. },
  735. ['mediumGarage'] = {
  736. 'prop_cardbordbox_01a',
  737. 'prop_wheel_rim_05',
  738. 'prop_oilcan_02a',
  739. 'prop_oilcan_01a',
  740. 'ng_proc_litter_plasbot2',
  741. 'p_cs_bottle_01',
  742. 'prop_ld_flow_bottle'
  743. },
  744. ['default'] = {
  745. 'v_ret_247_ketchup2',
  746. 'v_ret_fh_noodle',
  747. 'ng_proc_sodacan_02b',
  748. 'ng_proc_litter_plasbot2',
  749. 'ng_proc_coffee_02a',
  750. 'v_ret_247_noodle1',
  751. 'v_ret_247_soappowder2',
  752. 'prop_pizza_box_01',
  753. 'prop_old_boot',
  754. 'p_cs_bottle_01',
  755. 'prop_ld_flow_bottle'
  756. },
  757. }
  758.  
  759. Config.valuableItems = {
  760. {
  761. model = 'prop_jewel_pickup_new_01',
  762. item = 'pd_ringset',
  763. label = 'Set of rings'
  764. },
  765. {
  766. model = 'prop_jewel_02b',
  767. item = 'pd_watch',
  768. label = 'Exquisite watch'
  769. },
  770. {
  771. model = 'prop_jewel_04b',
  772. item = 'pd_ringset',
  773. label = 'Set of rings'
  774. },
  775. {
  776. model = 'prop_laptop_02_closed',
  777. item = 'pd_laptop',
  778. label = 'Laptop'
  779. },
  780. {
  781. model = 'p_jewel_necklace_02',
  782. item = 'pd_necklace',
  783. label = 'Pearl necklace'
  784. }
  785. }
  786.  
  787. Config.blips = {
  788. locationBlip = {
  789. blipIcon = 40,
  790. blipColor = 26,
  791. blipScale = 1.0
  792. },
  793. HQBlip = {
  794. blipIcon = 480,
  795. blipColor = 26,
  796. blipScale = 1.3,
  797. blipName = "Cleaning services"
  798. },
  799. policeBlip = {
  800. sprite = 161,
  801. color = 47,
  802. scale = 2.0,
  803. alpha = 150,
  804. shortRange = false,
  805. },
  806. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement