Advertisement
Guest User

Untitled

a guest
Jan 6th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.19 KB | None | 0 0
  1. local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end
  2.  
  3. houses = {
  4. {
  5. id = 1,
  6. price = 100,
  7. lock = true,
  8. spawnable = 0,
  9. owner = 0,
  10. spawn = {-170925.921875, -33268.609375, 1229.1983642578, 0},
  11. text = {-171000.421875, -33466.25, 1227.6971435547},
  12. doors = {
  13. {
  14. entity = -1,
  15. model = 20,
  16. x = -171043,
  17. y = -33401,
  18. z = 1131,
  19. r = 90
  20. },
  21. {
  22. entity = -1,
  23. model = 23,
  24. x = -171090,
  25. y = -33189,
  26. z = 1130,
  27. r = 0
  28. },
  29. {
  30. entity = -1,
  31. model = 41,
  32. x = -172818,
  33. y = -33414,
  34. z = 1025,
  35. r = 0
  36. }
  37. }
  38. },
  39. {
  40. id = 2,
  41. price = 100,
  42. lock = true,
  43. spawnable = 0,
  44. owner = 0,
  45. spawn = {-174669.234375, -36615.8203125, 1227.7788085938, 0},
  46. text = {-174832.296875, -36621.96484375, 1227.1726074219},
  47. doors = {
  48. {
  49. entity = -1,
  50. model = 20,
  51. x = -174799,
  52. y = -36578,
  53. z = 1129,
  54. r = 0
  55. },
  56. {
  57. entity = -1,
  58. model = 23,
  59. x = -174097,
  60. y = -37446,
  61. z = 1129,
  62. r = 0
  63. },
  64. {
  65. entity = -1,
  66. model = 23,
  67. x = -174380,
  68. y = -36595,
  69. z = 1468,
  70. r = 0
  71. },
  72. {
  73. entity = -1,
  74. model = 23,
  75. x = -174139,
  76. y = -37072,
  77. z = 1467,
  78. r = 90
  79. },
  80. {
  81. entity = -1,
  82. model = 41,
  83. x = -174589,
  84. y = -38487,
  85. z = 1025,
  86. r = -90
  87. }
  88. }
  89. },
  90. {
  91. id = 3,
  92. price = 100,
  93. lock = true,
  94. spawnable = 0,
  95. owner = 0,
  96. spawn = {-177951.015625, -36964.82421875, 1236.9774169922, 0},
  97. text = {-177775.0625, -36968.03515625, 1232.1761474609},
  98. doors = {
  99. {
  100. entity = -1,
  101. model = 20,
  102. x = -177823,
  103. y = -37014,
  104. z = 1139,
  105. r = 180
  106. },
  107. {
  108. entity = -1,
  109. model = 23,
  110. x = -178293,
  111. y = -36769,
  112. z = 1139,
  113. r = 90
  114. },
  115. {
  116. entity = -1,
  117. model = 41,
  118. x = -177836,
  119. y = -38578,
  120. z = 1025,
  121. r = 90
  122. }
  123. }
  124. },
  125. {
  126. id = 4,
  127. price = 100,
  128. lock = true,
  129. spawnable = 0,
  130. owner = 0,
  131. spawn = {-177982.640625, -41709.20703125, 1235.4838867188, 0},
  132. text = {-177808.453125, -41703.95703125, 1227.4689941406},
  133. doors = {
  134. {
  135. entity = -1,
  136. model = 20,
  137. x = -177842,
  138. y = -41749,
  139. z = 1137,
  140. r = 180
  141. },
  142. {
  143. entity = -1,
  144. model = 23,
  145. x = -178502,
  146. y = -41690,
  147. z = 1137,
  148. r = 90
  149. }
  150. }
  151. },
  152. {
  153. id = 5,
  154. price = 100,
  155. lock = true,
  156. spawnable = 0,
  157. owner = 0,
  158. spawn = {-174131.640625, -41843.55859375, 1227.8481445313, 0},
  159. text = {-174132.265625, -42024.71484375, 1227.0222167969},
  160. doors = {
  161. {
  162. entity = -1,
  163. model = 21,
  164. x = -174179,
  165. y = -41970,
  166. z = 1129,
  167. r = 90
  168. },
  169. {
  170. entity = -1,
  171. model = 41,
  172. x = -172828,
  173. y = -41752,
  174. z = 1025,
  175. r = 0
  176. }
  177. }
  178. },
  179. {
  180. id = 6,
  181. price = 100,
  182. lock = true,
  183. spawnable = 0,
  184. owner = 0,
  185. spawn = {-169924.265625, -45905.42578125, 1240.1983642578, 0},
  186. text = {-169766.84375, -45728.04296875, 1237.1525878906},
  187. doors = {
  188. {
  189. entity = -1,
  190. model = 20,
  191. x = -169720,
  192. y = -45762,
  193. z = 1141,
  194. r = 270
  195. },
  196. {
  197. entity = -1,
  198. model = 22,
  199. x = -170169,
  200. y = -46594,
  201. z = 1141,
  202. r = 90
  203. },
  204. {
  205. entity = -1,
  206. model = 24,
  207. x = -169674,
  208. y = -45973,
  209. z = 1142,
  210. r = 180
  211. }
  212. }
  213. },
  214. {
  215. id = 7,
  216. price = 100,
  217. lock = true,
  218. spawnable = 0,
  219. owner = 0,
  220. spawn = {-174477.25, -46827.19921875, 1247.6391601563, 0},
  221. text = {-174619.734375, -46827.60546875, 1237.1765136719},
  222. doors = {
  223. {
  224. entity = -1,
  225. model = 20,
  226. x = -174585,
  227. y = -46782,
  228. z = 1150,
  229. r = 0
  230. },
  231. {
  232. entity = -1,
  233. model = 41,
  234. x = -174588,
  235. y = -45277,
  236. z = 1025,
  237. r = -90
  238. }
  239. }
  240. },
  241. {
  242. id = 8,
  243. price = 100,
  244. lock = true,
  245. spawnable = 0,
  246. owner = 0,
  247. spawn = {-177772.359375, -45908.84765625, 1239.1857910156, 0},
  248. text = {-177765.703125, -45769.59375, 1232.1630859375},
  249. doors = {
  250. {
  251. entity = -1,
  252. model = 20,
  253. x = -177721,
  254. y = -45803,
  255. z = 1140,
  256. r = -90
  257. },
  258. {
  259. entity = -1,
  260. model = 23,
  261. x = -177673,
  262. y = -46192,
  263. z = 1140,
  264. r = 180
  265. }
  266. }
  267. },
  268. {
  269. id = 9,
  270. price = 100,
  271. lock = true,
  272. spawnable = 0,
  273. owner = 0,
  274. spawn = {-177647.359375, -49682.26953125, 1244.6986083984, 0},
  275. text = {-177499.15625, -49685.515625, 1237.4119873047},
  276. doors = {
  277. {
  278. entity = -1,
  279. model = 21,
  280. x = -177532,
  281. y = -49729,
  282. z = 1145,
  283. r = 180
  284. },
  285. {
  286. entity = -1,
  287. model = 23,
  288. x = -178660,
  289. y = -49881,
  290. z = 1146,
  291. r = 0
  292. },
  293. {
  294. entity = -1,
  295. model = 22,
  296. x = -179061,
  297. y = -49841,
  298. z = 1146,
  299. r = 0
  300. }
  301. }
  302. },
  303. {
  304. id = 10,
  305. price = 100,
  306. lock = true,
  307. spawnable = 0,
  308. owner = 0,
  309. spawn = {-162374.625, -36704.3828125, 1179.8830566406, 0},
  310. text = {-162252.421875, -36704.33984375, 1182.3640136719},
  311. doors = {
  312. {
  313. entity = -1,
  314. model = 40,
  315. x = -162288,
  316. y = -36656,
  317. z = 1085,
  318. r = 0
  319. }
  320. }
  321. },
  322. {
  323. id = 11,
  324. price = 100,
  325. lock = true,
  326. spawnable = 0,
  327. owner = 0,
  328. spawn = {-161461.625, -39828.9140625, 1182.1553955078, 0},
  329. text = {-161348.671875, -39832.46484375, 1182.1553955078},
  330. doors = {
  331. {
  332. entity = -1,
  333. model = 40,
  334. x = -161386,
  335. y = -39784,
  336. z = 1085,
  337. r = 0
  338. }
  339. }
  340. },
  341. {
  342. id = 12,
  343. price = 100,
  344. lock = true,
  345. spawnable = 0,
  346. owner = 0,
  347. spawn = {-158540.296875, -39682.5078125, 1183.2471923828, 0},
  348. text = {-158432.078125, -39682.453125, 1183.7580566406},
  349. doors = {
  350. {
  351. entity = -1,
  352. model = 40,
  353. x = -158468,
  354. y = -39638.199219,
  355. z = 1085,
  356. r = 0
  357. }
  358. }
  359. },
  360. {
  361. id = 13,
  362. price = 100,
  363. lock = true,
  364. spawnable = 0,
  365. owner = 0,
  366. spawn = {-158366.25, -36742.921875, 1179.8830566406, 0},
  367. text = {-158361.1875, -36869.93359375, 1182.3640136719},
  368. doors = {
  369. {
  370. entity = -1,
  371. model = 40,
  372. x = -158320,
  373. y = -36831.199219,
  374. z = 1085,
  375. r = -90
  376. }
  377. }
  378. },
  379. {
  380. id = 14,
  381. price = 100,
  382. lock = true,
  383. spawnable = 0,
  384. owner = 0,
  385. spawn = {-155138.546875, -37943.53515625, 1179.8830566406, 0},
  386. text = {-155139.625, -38035.80078125, 1182.3640136719},
  387. doors = {
  388. {
  389. entity = -1,
  390. model = 40,
  391. x = -155095,
  392. y = -38000.199219,
  393. z = 1085,
  394. r = -90
  395. }
  396. }
  397. },
  398. {
  399. id = 15,
  400. price = 100,
  401. lock = true,
  402. spawnable = 0,
  403. owner = 0,
  404. spawn = {-155251.765625, -35692.234375, 1182.1553955078, 0},
  405. text = {-155360.65625, -35692.38671875, 1182.1553955078},
  406. doors = {
  407. {
  408. entity = -1,
  409. model = 40,
  410. x = -155325,
  411. y = -35741,
  412. z = 1085,
  413. r = -180
  414. }
  415. }
  416. },
  417. {
  418. id = 16,
  419. price = 100,
  420. lock = true,
  421. spawnable = 0,
  422. owner = 0,
  423. spawn = {-178881.03125, -55652.6015625, 1234.1956787109, 0},
  424. text = {-178885.734375, -55772.125, 1227.7380371094},
  425. doors = {
  426. {
  427. entity = -1,
  428. model = 20,
  429. x = -178929,
  430. y = -55734,
  431. z = 1136,
  432. r = 90
  433. },
  434. {
  435. entity = -1,
  436. model = 21,
  437. x = -178481,
  438. y = -54904,
  439. z = 1136,
  440. r = -90
  441. },
  442. {
  443. entity = -1,
  444. model = 41,
  445. x = -180508,
  446. y = -55740,
  447. z = 1025,
  448. r = 0
  449. }
  450. }
  451. },
  452. {
  453. id = 17,
  454. price = 100,
  455. lock = true,
  456. spawnable = 0,
  457. owner = 0,
  458. spawn = {-180347.609375, -58988.8359375, 1260.90234375, 0},
  459. text = {-180344.265625, -58874.5390625, 1247.1533203125},
  460. doors = {
  461. {
  462. entity = -1,
  463. model = 20,
  464. x = -180300,
  465. y = -58908,
  466. z = 1162,
  467. r = -90
  468. },
  469. {
  470. entity = -1,
  471. model = 21,
  472. x = -180607,
  473. y = -59875,
  474. z = 1163,
  475. r = 90
  476. }
  477. }
  478. },
  479. {
  480. id = 18,
  481. price = 100,
  482. lock = true,
  483. spawnable = 0,
  484. owner = 0,
  485. spawn = {-183801.109375, -55658.9453125, 1234.1982421875, 0},
  486. text = {-183806.1875, -55767.91015625, 1227.4790039063},
  487. doors = {
  488. {
  489. entity = -1,
  490. model = 20,
  491. x = -183854,
  492. y = -55734,
  493. z = 1136,
  494. r = 90
  495. },
  496. {
  497. entity = -1,
  498. model = 22,
  499. x = -183406,
  500. y = -54904,
  501. z = 1136,
  502. r = -90
  503. },
  504. {
  505. entity = -1,
  506. model = 41,
  507. x = -185429,
  508. y = -55740,
  509. z = 1025,
  510. r = 0
  511. }
  512. }
  513. },
  514. {
  515. id = 19,
  516. price = 100,
  517. lock = true,
  518. spawnable = 0,
  519. owner = 0,
  520. spawn = {-184816.359375, -59492.55859375, 1240.2672119141, 0},
  521. text = {-184703.578125, -59495.83203125, 1227.6677246094},
  522. doors = {
  523. {
  524. entity = -1,
  525. model = 20,
  526. x = -184737,
  527. y = -59543,
  528. z = 1142,
  529. r = -180
  530. }
  531. }
  532. },
  533. {
  534. id = 20,
  535. price = 100,
  536. lock = true,
  537. spawnable = 0,
  538. owner = 0,
  539. spawn = {-187944.484375, -55663.140625, 1234.1983642578, 0},
  540. text = {-187943.40625, -55767.58984375, 1227.6694335938},
  541. doors = {
  542. {
  543. entity = -1,
  544. model = 20,
  545. x = -187989,
  546. y = -55734,
  547. z = 1136,
  548. r = 90
  549. },
  550. {
  551. entity = -1,
  552. model = 22,
  553. x = -187541,
  554. y = -54904,
  555. z = 1136,
  556. r = -90
  557. },
  558. {
  559. entity = -1,
  560. model = 41,
  561. x = -189619,
  562. y = -55740,
  563. z = 1025,
  564. r = 0
  565. }
  566. }
  567. },
  568. {
  569. id = 21,
  570. price = 100,
  571. lock = true,
  572. spawnable = 0,
  573. owner = 0,
  574. spawn = {-187447.578125, -59081.828125, 1234.1983642578, 0},
  575. text = {-187442.9375, -58979.546875, 1227.6531982422},
  576. doors = {
  577. {
  578. entity = -1,
  579. model = 20,
  580. x = -187398,
  581. y = -59013,
  582. z = 1136,
  583. r = -90
  584. },
  585. {
  586. entity = -1,
  587. model = 41,
  588. x = -189483,
  589. y = -59061,
  590. z = 1025,
  591. r = -180
  592. }
  593. }
  594. },
  595. {
  596. id = 22,
  597. price = 100,
  598. lock = true,
  599. spawnable = 0,
  600. owner = 0,
  601. spawn = {-193419.578125, -53819.87890625, 1240.1038818359, 0},
  602. text = {-193317.703125, -53825.0625, 1232.0913085938},
  603. doors = {
  604. {
  605. entity = -1,
  606. model = 20,
  607. x = -193351,
  608. y = -53869,
  609. z = 1142,
  610. r = 180
  611. },
  612. {
  613. entity = -1,
  614. model = 21,
  615. x = -194321,
  616. y = -53563,
  617. z = 1142,
  618. r = 0
  619. },
  620. {
  621. entity = -1,
  622. model = 41,
  623. x = -193301,
  624. y = -55363,
  625. z = 1025,
  626. r = 90
  627. }
  628. }
  629. },
  630. {
  631. id = 23,
  632. price = 100,
  633. lock = true,
  634. spawnable = 0,
  635. owner = 0,
  636. spawn = {-187995.96875, -62689.67578125, 1234.1983642578, 0},
  637. text = {-187992.78125, -62791.9609375, 1227.4311523438},
  638. doors = {
  639. {
  640. entity = -1,
  641. model = 20,
  642. x = -188044,
  643. y = -62758,
  644. z = 1136,
  645. r = 90
  646. },
  647. {
  648. entity = -1,
  649. model = 21,
  650. x = -187596,
  651. y = -61929,
  652. z = 1136,
  653. r = -9
  654. },
  655. {
  656. entity = -1,
  657. model = 41,
  658. x = -189647,
  659. y = -62736,
  660. z = 1025,
  661. r = 0
  662. }
  663. }
  664. },
  665. {
  666. id = 24,
  667. price = 100,
  668. lock = true,
  669. spawnable = 0,
  670. owner = 0,
  671. spawn = {-184625.703125, -62431.58984375, 1225.2888183594, 0},
  672. text = {-184515.765625, -62431.81640625, 1227.7380371094},
  673. doors = {
  674. {
  675. entity = -1,
  676. model = 20,
  677. x = -184564,
  678. y = -62479,
  679. z = 1127,
  680. r = 180
  681. }
  682. }
  683. },
  684. {
  685. id = 25,
  686. price = 100,
  687. lock = true,
  688. spawnable = 0,
  689. owner = 0,
  690. spawn = {-181522.953125, -62986.84765625, 1229.1857910156, 0},
  691. text = {-181525.671875, -63100.46484375, 1228.0900878906},
  692. doors = {
  693. {
  694. entity = -1,
  695. model = 20,
  696. x = -181573,
  697. y = -63059,
  698. z = 1131,
  699. r = 90
  700. },
  701. {
  702. entity = -1,
  703. model = 41,
  704. x = -179389,
  705. y = -62734,
  706. z = 1025,
  707. r = 0
  708. }
  709. }
  710. },
  711. {
  712. id = 26,
  713. price = 100,
  714. lock = true,
  715. spawnable = 0,
  716. owner = 0,
  717. spawn = {-172571.3125, -88361.0390625, 1600.3059082031, 0},
  718. text = {-172675.140625, -88305.8671875, 1598.4008789063},
  719. doors = {
  720. {
  721. entity = -1,
  722. model = 20,
  723. x = -172624.25,
  724. y = -88277.867188,
  725. z = 1502,
  726. r = -26
  727. },
  728. {
  729. entity = -1,
  730. model = 22,
  731. x = -172194.53125,
  732. y = -89294.8125,
  733. z = 1502,
  734. r = 154
  735. },
  736. {
  737. entity = -1,
  738. model = 42,
  739. x = -172121.671875,
  740. y = -87257.554688,
  741. z = 1421,
  742. r = -116
  743. }
  744. }
  745. },
  746. {
  747. id = 27,
  748. price = 100,
  749. lock = true,
  750. spawnable = 0,
  751. owner = 0,
  752. spawn = {-180066.546875, -83100.4375, 1743.3872070313, 0},
  753. text = {-180063.203125, -83200.5546875, 1737.4022216797},
  754. doors = {
  755. {
  756. entity = -1,
  757. model = 20,
  758. x = -180113.28125,
  759. y = -83168.921875,
  760. z = 1645,
  761. r = 92
  762. },
  763. {
  764. entity = -1,
  765. model = 41,
  766. x = -176790.890625,
  767. y = -83896.84375,
  768. z = 1589,
  769. r = -88
  770. },
  771. {
  772. entity = -1,
  773. model = 41,
  774. x = -176838.281250,
  775. y = -82539.664063,
  776. z = 1589,
  777. r = -88
  778. }
  779. }
  780. },
  781. { -- TO CHECK
  782. id = 28,
  783. price = 100,
  784. lock = true,
  785. spawnable = 0,
  786. owner = 0,
  787. spawn = {-173915.4375, -50723.91796875, 1244.5828857422, 0},
  788. text = {-173912.359375, -50595.3359375, 1227.9490966797},
  789. doors = {}
  790. },
  791. {
  792. id = 29,
  793. price = 100,
  794. lock = true,
  795. spawnable = 0,
  796. owner = 0,
  797. spawn = { 192134, -45438, 1534, 0},
  798. text = { 192072, -45240, 1536 },
  799. doors = {
  800. {
  801. entity = -1,
  802. model = 20,
  803. x = 192122,
  804. y = -45262.136719,
  805. z = 1436,
  806. r = 290
  807. },
  808. {
  809. entity = -1,
  810. model = 24,
  811. x = 192512.546875,
  812. y = -45539.789063,
  813. z = 1436,
  814. r = 200
  815. }
  816. }
  817. },
  818. {
  819. id = 30,
  820. price = 100,
  821. lock = true,
  822. spawnable = 0,
  823. owner = 0,
  824. spawn = { 186505, -41455, 1515, 0},
  825. text = { 186680, -41605, 1517 },
  826. doors = {
  827. {
  828. entity = -1,
  829. model = 20,
  830. x = 186641.968750,
  831. y = -41649.476563,
  832. z = 1417,
  833. r = 175
  834. },
  835. {
  836. entity = -1,
  837. model = 24,
  838. x = 186425.968750,
  839. y = -41678.332031,
  840. z = 1417,
  841. r = 85
  842. },
  843. {
  844. entity = -1,
  845. model = 21,
  846. x = 185851.750000,
  847. y = -41129.601563,
  848. z = 1417,
  849. r = -5
  850. }
  851. }
  852. },
  853. {
  854. id = 31,
  855. price = 100,
  856. lock = true,
  857. spawnable = 0,
  858. owner = 0,
  859. spawn = { 48492, 138461, 1572, 0},
  860. text = { 48478, 138293, 1574 },
  861. doors = {
  862. {
  863. entity = -1,
  864. model = 55,
  865. x = 48556,
  866. y = 138325,
  867. z = 1474,
  868. r = 180
  869. }
  870. }
  871. },
  872. {
  873. id = 32,
  874. price = 100,
  875. lock = true,
  876. spawnable = 0,
  877. owner = 0,
  878. spawn = { 47678, 138418, 1572, 0},
  879. text = { 47684, 138294, 1574 },
  880. doors = {
  881. {
  882. entity = -1,
  883. model = 55,
  884. x = 47757,
  885. y = 138325,
  886. z = 1474,
  887. r = 180
  888. }
  889. }
  890. },
  891. {
  892. id = 33,
  893. price = 100,
  894. lock = true,
  895. spawnable = 0,
  896. owner = 0,
  897. spawn = { 46877, 138410, 1572, 0},
  898. text = { 46881, 138294, 1574 },
  899. doors = {
  900. {
  901. entity = -1,
  902. model = 55,
  903. x = 46957,
  904. y = 138325,
  905. z = 1474,
  906. r = 180
  907. }
  908. }
  909. },
  910. {
  911. id = 34,
  912. price = 100,
  913. lock = true,
  914. spawnable = 0,
  915. owner = 0,
  916. spawn = { 46081, 138454, 1572, 0},
  917. text = { 46076, 138294, 1574 },
  918. doors = {
  919. {
  920. entity = -1,
  921. model = 55,
  922. x = 46155,
  923. y = 138325,
  924. z = 1474,
  925. r = 180
  926. }
  927. }
  928. },
  929. {
  930. id = 35,
  931. price = 100,
  932. lock = true,
  933. spawnable = 0,
  934. owner = 0,
  935. spawn = { -24115, -5507, 2343, 0},
  936. text = { -23994, -5466, 2345 },
  937. doors = {
  938. {
  939. entity = -1,
  940. model = 50,
  941. x = -24040.953125,
  942. y = -5436.2216796875,
  943. z = 2245.0,
  944. r = 20
  945. }
  946. }
  947. },
  948. {
  949. id = 36,
  950. price = 100,
  951. lock = true,
  952. spawnable = 0,
  953. owner = 0,
  954. spawn = { -23819, -6269, 2343, 0},
  955. text = { -23717, -6229, 2345 },
  956. doors = {
  957. {
  958. entity = -1,
  959. model = 50,
  960. x = -23760.482421875,
  961. y = -6206.7641601563,
  962. z = 2245.0,
  963. r = 20
  964. }
  965. }
  966. },
  967. {
  968. id = 37,
  969. price = 100,
  970. lock = true,
  971. spawnable = 0,
  972. owner = 0,
  973. spawn = { -23755, -5407, 2343, 0},
  974. text = { -23652, -6407, 2345 },
  975. doors = {
  976. {
  977. entity = -1,
  978. model = 50,
  979. x = -23698.90234375,
  980. y = -6375.904296875,
  981. z = 2245.0,
  982. r = 20
  983. }
  984. }
  985. },
  986. {
  987. id = 38,
  988. price = 100,
  989. lock = true,
  990. spawnable = 0,
  991. owner = 0,
  992. spawn = { -23488, -7210, 2343, 0},
  993. text = { -23374, -7169, 2345 },
  994. doors = {
  995. {
  996. entity = -1,
  997. model = 50,
  998. x = -23418.43359375,
  999. y = -7146.447265625,
  1000. z = 2245.0,
  1001. r = 20
  1002. }
  1003. }
  1004. },
  1005. {
  1006. id = 39,
  1007. price = 100,
  1008. lock = true,
  1009. spawnable = 0,
  1010. owner = 0,
  1011. spawn = { -23424, -7380, 2343, 0},
  1012. text = { -23311, -7344, 2345 },
  1013. doors = {
  1014. {
  1015. entity = -1,
  1016. model = 50,
  1017. x = -23356.876953125,
  1018. y = -7315.5932617188,
  1019. z = 2245.0,
  1020. r = 20
  1021. }
  1022. }
  1023. },
  1024. {
  1025. id = 40,
  1026. price = 100,
  1027. lock = true,
  1028. spawnable = 0,
  1029. owner = 0,
  1030. spawn = { -23174, -8155, 2343, 0},
  1031. text = { -23029, -8118, 2345 },
  1032. doors = {
  1033. {
  1034. entity = -1,
  1035. model = 50,
  1036. x = -23076.404296875,
  1037. y = -8086.1352539063,
  1038. z = 2245.0,
  1039. r = 20
  1040. }
  1041. }
  1042. },
  1043. {
  1044. id = 41,
  1045. price = 100,
  1046. lock = true,
  1047. spawnable = 0,
  1048. owner = 0,
  1049. spawn = { -23121, -8332, 2343, 0},
  1050. text = { -22968, -8285, 2345 },
  1051. doors = {
  1052. {
  1053. entity = -1,
  1054. model = 50,
  1055. x = -23014.845703125,
  1056. y = -8255.2822265625,
  1057. z = 2245.0,
  1058. r = 20
  1059. }
  1060. }
  1061. },
  1062. {
  1063. id = 42,
  1064. price = 100,
  1065. lock = true,
  1066. spawnable = 0,
  1067. owner = 0,
  1068. spawn = { -22801, -9090, 2343, 0},
  1069. text = { -22687, -9058, 2345 },
  1070. doors = {
  1071. {
  1072. entity = -1,
  1073. model = 50,
  1074. x = -22734.3671875,
  1075. y = -9025.8203125,
  1076. z = 2245.0,
  1077. r = 20
  1078. }
  1079. }
  1080. },
  1081. {
  1082. id = 43,
  1083. price = 100,
  1084. lock = true,
  1085. spawnable = 0,
  1086. owner = 0,
  1087. spawn = { -22801, -9090, 2343, 0},
  1088. text = { -22687, -9058, 2345 },
  1089. doors = {
  1090. {
  1091. entity = -1,
  1092. model = 50,
  1093. x = -22734.3671875,
  1094. y = -9025.8203125,
  1095. z = 2245.0,
  1096. r = 20
  1097. }
  1098. }
  1099. },
  1100. {
  1101. id = 44,
  1102. price = 100,
  1103. lock = true,
  1104. spawnable = 0,
  1105. owner = 0,
  1106. spawn = { -24115, -5507, 2073, 0},
  1107. text = { -23994, -5466, 2075 },
  1108. doors = {
  1109. {
  1110. entity = -1,
  1111. model = 50,
  1112. x = -24040.953125,
  1113. y = -5436.2216796875,
  1114. z = 1975.0,
  1115. r = 20
  1116. }
  1117. }
  1118. },
  1119. {
  1120. id = 45,
  1121. price = 100,
  1122. lock = true,
  1123. spawnable = 0,
  1124. owner = 0,
  1125. spawn = { -23819, -6269, 2073, 0},
  1126. text = { -23717, -6229, 2075 },
  1127. doors = {
  1128. {
  1129. entity = -1,
  1130. model = 50,
  1131. x = -23760.482421875,
  1132. y = -6206.7641601563,
  1133. z = 1975.0,
  1134. r = 20
  1135. }
  1136. }
  1137. },
  1138. {
  1139. id = 46,
  1140. price = 100,
  1141. lock = true,
  1142. spawnable = 0,
  1143. owner = 0,
  1144. spawn = { -23755, -5407, 2073, 0},
  1145. text = { -23652, -6407, 2075 },
  1146. doors = {
  1147. {
  1148. entity = -1,
  1149. model = 50,
  1150. x = -23698.90234375,
  1151. y = -6375.904296875,
  1152. z = 1975.0,
  1153. r = 20
  1154. }
  1155. }
  1156. },
  1157. {
  1158. id = 47,
  1159. price = 100,
  1160. lock = true,
  1161. spawnable = 0,
  1162. owner = 0,
  1163. spawn = { -23488, -7210, 2073, 0},
  1164. text = { -23374, -7169, 2075 },
  1165. doors = {
  1166. {
  1167. entity = -1,
  1168. model = 50,
  1169. x = -23418.43359375,
  1170. y = -7146.447265625,
  1171. z = 1975.0,
  1172. r = 20
  1173. }
  1174. }
  1175. },
  1176. {
  1177. id = 48,
  1178. price = 100,
  1179. lock = true,
  1180. spawnable = 0,
  1181. owner = 0,
  1182. spawn = { -23424, -7380, 2073, 0},
  1183. text = { -23311, -7344, 2075 },
  1184. doors = {
  1185. {
  1186. entity = -1,
  1187. model = 50,
  1188. x = -23356.876953125,
  1189. y = -7315.5932617188,
  1190. z = 1975.0,
  1191. r = 20
  1192. }
  1193. }
  1194. },
  1195. {
  1196. id = 49,
  1197. price = 100,
  1198. lock = true,
  1199. spawnable = 0,
  1200. owner = 0,
  1201. spawn = { -23174, -8155, 2073, 0},
  1202. text = { -23029, -8118, 2075 },
  1203. doors = {
  1204. {
  1205. entity = -1,
  1206. model = 50,
  1207. x = -23076.404296875,
  1208. y = -8086.1352539063,
  1209. z = 1975.0,
  1210. r = 20
  1211. }
  1212. }
  1213. },
  1214. {
  1215. id = 50,
  1216. price = 100,
  1217. lock = true,
  1218. spawnable = 0,
  1219. owner = 0,
  1220. spawn = { -23121, -8332, 2073, 0},
  1221. text = { -22968, -8285, 2075 },
  1222. doors = {
  1223. {
  1224. entity = -1,
  1225. model = 50,
  1226. x = -23014.845703125,
  1227. y = -8255.2822265625,
  1228. z = 1975.0,
  1229. r = 20
  1230. }
  1231. }
  1232. },
  1233. {
  1234. id = 51,
  1235. price = 100,
  1236. lock = true,
  1237. spawnable = 0,
  1238. owner = 0,
  1239. spawn = { -22801, -9090, 2073, 0},
  1240. text = { -22687, -9058, 2075 },
  1241. doors = {
  1242. {
  1243. entity = -1,
  1244. model = 50,
  1245. x = -22734.3671875,
  1246. y = -9025.8203125,
  1247. z = 1975.0,
  1248. r = 20
  1249. }
  1250. }
  1251. },
  1252. {
  1253. id = 52,
  1254. price = 100,
  1255. lock = true,
  1256. spawnable = 0,
  1257. owner = 0,
  1258. spawn = { -22801, -9090, 2073, 0},
  1259. text = { -22687, -9058, 2075 },
  1260. doors = {
  1261. {
  1262. entity = -1,
  1263. model = 50,
  1264. x = -22734.3671875,
  1265. y = -9025.8203125,
  1266. z = 1975.0,
  1267. r = 20
  1268. }
  1269. }
  1270. },
  1271. {
  1272. id = 53,
  1273. price = 100,
  1274. lock = true,
  1275. spawnable = 0,
  1276. owner = 0,
  1277. spawn = { -25211, -5899, 2343, 0},
  1278. text = { -25357, -5952, 2345 },
  1279. doors = {
  1280. {
  1281. entity = -1,
  1282. model = 50,
  1283. x = -25311.31640625,
  1284. y = -5982.5869140625,
  1285. z = 2245.0,
  1286. r = 200
  1287. }
  1288. }
  1289. },
  1290. {
  1291. id = 54,
  1292. price = 100,
  1293. lock = true,
  1294. spawnable = 0,
  1295. owner = 0,
  1296. spawn = { -24987, -6691, 2343, 0},
  1297. text = { -25076, -6723, 2345 },
  1298. doors = {
  1299. {
  1300. entity = -1,
  1301. model = 50,
  1302. x = -25030.845703125,
  1303. y = -6753.1303710938,
  1304. z = 2245.0,
  1305. r = 200
  1306. }
  1307. }
  1308. },
  1309. {
  1310. id = 55,
  1311. price = 100,
  1312. lock = true,
  1313. spawnable = 0,
  1314. owner = 0,
  1315. spawn = { -24888, -6845, 2343, 0},
  1316. text = { -25012, -6899, 2345 },
  1317. doors = {
  1318. {
  1319. entity = -1,
  1320. model = 50,
  1321. x = -24969.28125,
  1322. y = -6922.2744140625,
  1323. z = 2245.0,
  1324. r = 200
  1325. }
  1326. }
  1327. },
  1328. {
  1329. id = 56,
  1330. price = 100,
  1331. lock = true,
  1332. spawnable = 0,
  1333. owner = 0,
  1334. spawn = { -24629, -7623, 2343, 0},
  1335. text = { -24735, -7659, 2345 },
  1336. doors = {
  1337. {
  1338. entity = -1,
  1339. model = 50,
  1340. x = -24688.818359375,
  1341. y = -7692.8208007813,
  1342. z = 2245.0,
  1343. r = 200
  1344. }
  1345. }
  1346. },
  1347. {
  1348. id = 57,
  1349. price = 100,
  1350. lock = true,
  1351. spawnable = 0,
  1352. owner = 0,
  1353. spawn = { -24552, -7810, 2343, 0},
  1354. text = { -24677, -7837, 2345 },
  1355. doors = {
  1356. {
  1357. entity = -1,
  1358. model = 50,
  1359. x = -24627.255859,
  1360. y = -7861.965820,
  1361. z = 2245.0,
  1362. r = 200
  1363. }
  1364. }
  1365. },
  1366. {
  1367. id = 58,
  1368. price = 100,
  1369. lock = true,
  1370. spawnable = 0,
  1371. owner = 0,
  1372. spawn = { -24291, -8577, 2343, 0},
  1373. text = { -24393, -8601, 2345 },
  1374. doors = {
  1375. {
  1376. entity = -1,
  1377. model = 50,
  1378. x = -24346.783203125,
  1379. y = -8632.505859375,
  1380. z = 2245.0,
  1381. r = 200
  1382. }
  1383. }
  1384. },
  1385. {
  1386. id = 59,
  1387. price = 100,
  1388. lock = true,
  1389. spawnable = 0,
  1390. owner = 0,
  1391. spawn = { -24218, -8735, 2343, 0},
  1392. text = { -24330, -8774, 2345 },
  1393. doors = {
  1394. {
  1395. entity = -1,
  1396. model = 50,
  1397. x = -24285.216796875,
  1398. y = -8801.6494140625,
  1399. z = 2245.0,
  1400. r = 200
  1401. }
  1402. }
  1403. },
  1404. {
  1405. id = 60,
  1406. price = 100,
  1407. lock = true,
  1408. spawnable = 0,
  1409. owner = 0,
  1410. spawn = { -23970, -9512, 2343, 0},
  1411. text = { -24051, -9540, 2345 },
  1412. doors = {
  1413. {
  1414. entity = -1,
  1415. model = 50,
  1416. x = -24004.7578125,
  1417. y = -9572.19140625,
  1418. z = 2245.0,
  1419. r = 200
  1420. }
  1421. }
  1422. },
  1423. {
  1424. id = 61,
  1425. price = 100,
  1426. lock = true,
  1427. spawnable = 0,
  1428. owner = 0,
  1429. spawn = { -25211, -5899, 2043, 0},
  1430. text = { -25357, -5952, 2045 },
  1431. doors = {
  1432. {
  1433. entity = -1,
  1434. model = 50,
  1435. x = -25311.31640625,
  1436. y = -5982.5869140625,
  1437. z = 1975.0,
  1438. r = 200
  1439. }
  1440. }
  1441. },
  1442. {
  1443. id = 62,
  1444. price = 100,
  1445. lock = true,
  1446. spawnable = 0,
  1447. owner = 0,
  1448. spawn = { -24987, -6691, 2043, 0},
  1449. text = { -25076, -6723, 2045 },
  1450. doors = {
  1451. {
  1452. entity = -1,
  1453. model = 50,
  1454. x = -25030.845703125,
  1455. y = -6753.1303710938,
  1456. z = 1975.0,
  1457. r = 200
  1458. }
  1459. }
  1460. },
  1461. {
  1462. id = 63,
  1463. price = 100,
  1464. lock = true,
  1465. spawnable = 0,
  1466. owner = 0,
  1467. spawn = { -24888, -6845, 2043, 0},
  1468. text = { -25012, -6899, 2045 },
  1469. doors = {
  1470. {
  1471. entity = -1,
  1472. model = 50,
  1473. x = -24969.28125,
  1474. y = -6922.2744140625,
  1475. z = 1975.0,
  1476. r = 200
  1477. }
  1478. }
  1479. },
  1480. {
  1481. id = 64,
  1482. price = 100,
  1483. lock = true,
  1484. spawnable = 0,
  1485. owner = 0,
  1486. spawn = { -24629, -7623, 2043, 0},
  1487. text = { -24735, -7659, 2045 },
  1488. doors = {
  1489. {
  1490. entity = -1,
  1491. model = 50,
  1492. x = -24688.818359375,
  1493. y = -7692.8208007813,
  1494. z = 1975.0,
  1495. r = 200
  1496. }
  1497. }
  1498. },
  1499. {
  1500. id = 65,
  1501. price = 100,
  1502. lock = true,
  1503. spawnable = 0,
  1504. owner = 0,
  1505. spawn = { -24552, -7810, 2043, 0},
  1506. text = { -24677, -7837, 2045 },
  1507. doors = {
  1508. {
  1509. entity = -1,
  1510. model = 50,
  1511. x = -24627.255859,
  1512. y = -7861.965820,
  1513. z = 1975.0,
  1514. r = 200
  1515. }
  1516. }
  1517. },
  1518. {
  1519. id = 66,
  1520. price = 100,
  1521. lock = true,
  1522. spawnable = 0,
  1523. owner = 0,
  1524. spawn = { -24291, -8577, 2043, 0},
  1525. text = { -24393, -8601, 2045 },
  1526. doors = {
  1527. {
  1528. entity = -1,
  1529. model = 50,
  1530. x = -24346.783203125,
  1531. y = -8632.505859375,
  1532. z = 1975.0,
  1533. r = 200
  1534. }
  1535. }
  1536. },
  1537. {
  1538. id = 67,
  1539. price = 100,
  1540. lock = true,
  1541. spawnable = 0,
  1542. owner = 0,
  1543. spawn = { -24218, -8735, 2043, 0},
  1544. text = { -24330, -8774, 2045 },
  1545. doors = {
  1546. {
  1547. entity = -1,
  1548. model = 50,
  1549. x = -24285.216796875,
  1550. y = -8801.6494140625,
  1551. z = 1975.0,
  1552. r = 200
  1553. }
  1554. }
  1555. },
  1556. {
  1557. id = 68,
  1558. price = 100,
  1559. lock = true,
  1560. spawnable = 0,
  1561. owner = 0,
  1562. spawn = { -23970, -9512, 2043, 0},
  1563. text = { -24051, -9540, 2045 },
  1564. doors = {
  1565. {
  1566. entity = -1,
  1567. model = 50,
  1568. x = -24004.7578125,
  1569. y = -9572.19140625,
  1570. z = 1975.0,
  1571. r = 200
  1572. }
  1573. }
  1574. },
  1575. {
  1576. id = 69,
  1577. price = 100,
  1578. lock = true,
  1579. spawnable = 0,
  1580. owner = 0,
  1581. spawn = { 216331, 166735, 1389, 0},
  1582. text = { 216335, 166735, 1397 },
  1583. doors = {
  1584. {
  1585. entity = -1,
  1586. model = 23,
  1587. x = 216289.0,
  1588. y = 166768.0,
  1589. z = 1297.0,
  1590. r = 90
  1591. },
  1592. {
  1593. entity = -1,
  1594. model = 24,
  1595. x = 216138.0,
  1596. y = 167899.0,
  1597. z = 1297.0,
  1598. r = -90
  1599. },
  1600. {
  1601. entity = -1,
  1602. model = 21,
  1603. x = 216178.0,
  1604. y = 168302.0,
  1605. z = 1297.0,
  1606. r = -90
  1607. },
  1608. {
  1609. entity = -1,
  1610. model = 41,
  1611. x = 214824.0,
  1612. y = 166962.0,
  1613. z = 1215.0,
  1614. r = 0
  1615. }
  1616. }
  1617. },
  1618. {
  1619. id = 70,
  1620. price = 100,
  1621. lock = true,
  1622. spawnable = 0,
  1623. owner = 0,
  1624. spawn = { 212924, 167134, 1399, 0},
  1625. text = { 212782, 166947, 1400 },
  1626. doors = {
  1627. {
  1628. entity = -1,
  1629. model = 23,
  1630. x = 212728.0,
  1631. y = 166980.0,
  1632. z = 1300.0,
  1633. r = 90
  1634. },
  1635. {
  1636. entity = -1,
  1637. model = 24,
  1638. x = 212683.0,
  1639. y = 167192.0,
  1640. z = 1301.0,
  1641. r = 0
  1642. },
  1643. {
  1644. entity = -1,
  1645. model = 22,
  1646. x = 213177.0,
  1647. y = 167813.0,
  1648. z = 1301.0,
  1649. r = -90
  1650. },
  1651. {
  1652. entity = -1,
  1653. model = 41,
  1654. x = 211319.0,
  1655. y = 166962.0,
  1656. z = 1215.0,
  1657. r = 0
  1658. }
  1659. }
  1660. },
  1661. {
  1662. id = 71,
  1663. price = 100,
  1664. lock = true,
  1665. spawnable = 0,
  1666. owner = 0,
  1667. spawn = { 215599, 171999, 1392, 0},
  1668. text = { 215594, 172208, 1395 },
  1669. doors = {
  1670. {
  1671. entity = -1,
  1672. model = 23,
  1673. x = 215638.0,
  1674. y = 172176.0,
  1675. z = 1295.0,
  1676. r = -90
  1677. },
  1678. {
  1679. entity = -1,
  1680. model = 24,
  1681. x = 214773.0,
  1682. y = 171476.0,
  1683. z = 1295.0,
  1684. r = -90
  1685. },
  1686. {
  1687. entity = -1,
  1688. model = 41,
  1689. x = 217059.0,
  1690. y = 171935.0,
  1691. z = 1215.0,
  1692. r = 180
  1693. }
  1694. }
  1695. },
  1696. {
  1697. id = 72,
  1698. price = 100,
  1699. lock = true,
  1700. spawnable = 0,
  1701. owner = 0,
  1702. spawn = { 211890, 171806, 1401, 0},
  1703. text = { 212052, 171976, 1402 },
  1704. doors = {
  1705. {
  1706. entity = -1,
  1707. model = 23,
  1708. x = 212094.0,
  1709. y = 171944.0,
  1710. z = 1302.0,
  1711. r = -90
  1712. },
  1713. {
  1714. entity = -1,
  1715. model = 24,
  1716. x = 212141.0,
  1717. y = 171732.0,
  1718. z = 1303.0,
  1719. r = 180
  1720. },
  1721. {
  1722. entity = -1,
  1723. model = 22,
  1724. x = 211646.0,
  1725. y = 171114.0,
  1726. z = 1303.0,
  1727. r = 90
  1728. },
  1729. {
  1730. entity = -1,
  1731. model = 41,
  1732. x = 213558.0,
  1733. y = 171935.0,
  1734. z = 1215.0,
  1735. r = 180
  1736. }
  1737. }
  1738. },
  1739. {
  1740. id = 73,
  1741. price = 100,
  1742. lock = true,
  1743. spawnable = 0,
  1744. owner = 0,
  1745. spawn = { 162822, 211600, 1403 },
  1746. text = { 162822, 211679, 1402 },
  1747. doors = {
  1748. {
  1749. entity = -1,
  1750. model = 23,
  1751. x = 162870.0,
  1752. y = 211647.0,
  1753. z = 1313.0,
  1754. r = -90
  1755. },
  1756. {
  1757. entity = -1,
  1758. model = 24,
  1759. x = 163233.0,
  1760. y = 211441.0,
  1761. z = 1313.0,
  1762. r = 180
  1763. }
  1764. }
  1765. },
  1766. -- Ajouté par Soljian
  1767. -- CITY
  1768. {
  1769. id = 74,
  1770. price = 100,
  1771. lock = true,
  1772. spawnable = 0,
  1773. owner = 0,
  1774. spawn = { 158949, 211510, 1493 },
  1775. text = { 159132, 211694, 1390 },
  1776. doors = {
  1777. {
  1778. entity = -1,
  1779. model = 23,
  1780. x = 159179,
  1781. y = 211638,
  1782. z = 1295,
  1783. r = -90
  1784. },
  1785. {
  1786. entity = -1,
  1787. model = 24,
  1788. x = 159122,
  1789. y = 210974,
  1790. z = 1295,
  1791. r = -180
  1792. },
  1793. {
  1794. entity = -1,
  1795. model = 41,
  1796. x = 160607,
  1797. y = 211848,
  1798. z = 1245,
  1799. r = 180
  1800. }
  1801. }
  1802. },
  1803. {
  1804. id = 75,
  1805. price = 100,
  1806. lock = true,
  1807. spawnable = 0,
  1808. owner = 0,
  1809. spawn = { 163614, 215403, 1509 },
  1810. text = { 163461, 215177, 1402 },
  1811. doors = {
  1812. {
  1813. entity = -1,
  1814. model = 21,
  1815. x = 163420,
  1816. y = 215213,
  1817. z = 1311,
  1818. r = 90
  1819. },
  1820. {
  1821. entity = -1,
  1822. model = 24,
  1823. x = 163477,
  1824. y = 215877,
  1825. z = 1312,
  1826. r = 0
  1827. },
  1828. {
  1829. entity = -1,
  1830. model = 41,
  1831. x = 161978,
  1832. y = 215099,
  1833. z = 1245,
  1834. r = 0
  1835. }
  1836. }
  1837. },
  1838. {
  1839. id = 76,
  1840. price = 100,
  1841. lock = true,
  1842. spawnable = 0,
  1843. owner = 0,
  1844. spawn = { 159322, 215371, 1407 },
  1845. text = { 159164, 215195, 1396 },
  1846. doors = {
  1847. {
  1848. entity = -1,
  1849. model = 23,
  1850. x = 159112,
  1851. y = 215228,
  1852. z = 1309,
  1853. r = 90
  1854. },
  1855. {
  1856. entity = -1,
  1857. model = 24,
  1858. x = 159354,
  1859. y = 215701,
  1860. z = 1309,
  1861. r = 0
  1862. }
  1863. }
  1864. },
  1865. {
  1866. id = 77,
  1867. price = 100,
  1868. lock = true,
  1869. spawnable = 0,
  1870. owner = 0,
  1871. spawn = { 155287, 215647, 1510 },
  1872. text = { 155465, 215522, 1398 },
  1873. doors = {
  1874. {
  1875. entity = -1,
  1876. model = 23,
  1877. x = 155434,
  1878. y = 215472,
  1879. z = 1314,
  1880. r = -180
  1881. },
  1882. {
  1883. entity = -1,
  1884. model = 24,
  1885. x = 155152,
  1886. y = 215273,
  1887. z = 1313,
  1888. r = -180
  1889. },
  1890. {
  1891. entity = -1,
  1892. model = 22,
  1893. x = 154456,
  1894. y = 215781,
  1895. z = 1314,
  1896. r = 0
  1897. },
  1898. {
  1899. entity = -1,
  1900. model = 25,
  1901. x = 154919,
  1902. y = 215779,
  1903. z = 1036,
  1904. r = 0
  1905. },
  1906. {
  1907. entity = -1,
  1908. model = 41,
  1909. x = 155309,
  1910. y = 217108,
  1911. z = 1245,
  1912. r = 90
  1913. },
  1914. }
  1915. },
  1916. {
  1917. id = 78,
  1918. price = 100,
  1919. lock = true,
  1920. spawnable = 0,
  1921. owner = 0,
  1922. spawn = { 158982, 218650, 1509 },
  1923. text = { 159120, 218784, 1398 },
  1924. doors = {
  1925. {
  1926. entity = -1,
  1927. model = 23,
  1928. x = 159174,
  1929. y = 218746,
  1930. z = 1312,
  1931. r = -90
  1932. },
  1933. {
  1934. entity = -1,
  1935. model = 24,
  1936. x = 159116,
  1937. y = 217933,
  1938. z = 1312,
  1939. r = 180
  1940. },
  1941. {
  1942. entity = -1,
  1943. model = 41,
  1944. x = 160614,
  1945. y = 218698,
  1946. z = 1245,
  1947. r = 180
  1948. },
  1949. }
  1950. },
  1951. {
  1952. id = 79,
  1953. price = 100,
  1954. lock = true,
  1955. spawnable = 0,
  1956. owner = 0,
  1957. spawn = { 158980, 222779, 1507 },
  1958. text = { 158759, 222933, 1396 },
  1959. doors = {
  1960. {
  1961. entity = -1,
  1962. model = 21,
  1963. x = 158792,
  1964. y = 222885,
  1965. z = 1309,
  1966. r = 180
  1967. },
  1968. {
  1969. entity = -1,
  1970. model = 24,
  1971. x = 159921,
  1972. y = 222735,
  1973. z = 1309,
  1974. r = 0
  1975. },
  1976. {
  1977. entity = -1,
  1978. model = 22,
  1979. x = 160322,
  1980. y = 222774,
  1981. z = 1309,
  1982. r = 0
  1983. },
  1984. }
  1985. },
  1986. {
  1987. id = 80,
  1988. price = 100,
  1989. lock = true,
  1990. spawnable = 0,
  1991. owner = 0,
  1992. spawn = { 162361, 222520, 1507 },
  1993. text = { 162203, 222328, 1400 },
  1994. doors = {
  1995. {
  1996. entity = -1,
  1997. model = 23,
  1998. x = 162157,
  1999. y = 222370,
  2000. z = 1309,
  2001. r = 90
  2002. },
  2003. {
  2004. entity = -1,
  2005. model = 24,
  2006. x = 162465,
  2007. y = 223340,
  2008. z = 1309,
  2009. r = -90
  2010. },
  2011. }
  2012. },
  2013. {
  2014. id = 81,
  2015. price = 100,
  2016. lock = true,
  2017. spawnable = 0,
  2018. owner = 0,
  2019. spawn = { 164995, 222224, 1506 },
  2020. text = { 164860, 222092, 1396 },
  2021. doors = {
  2022. {
  2023. entity = -1,
  2024. model = 23,
  2025. x = 164809,
  2026. y = 222136,
  2027. z = 1308,
  2028. r = 90
  2029. },
  2030. {
  2031. entity = -1,
  2032. model = 24,
  2033. x = 164758,
  2034. y = 222527,
  2035. z = 1308,
  2036. r = 0
  2037. },
  2038. }
  2039. },
  2040. {
  2041. id = 82,
  2042. price = 100,
  2043. lock = true,
  2044. spawnable = 0,
  2045. owner = 0,
  2046. spawn = { 165153, 218605, 1514 },
  2047. text = { 165285, 218826, 1397 },
  2048. doors = {
  2049. {
  2050. entity = -1,
  2051. model = 23,
  2052. x = 165337,
  2053. y = 218768,
  2054. z = 1316,
  2055. r = -90
  2056. },
  2057. {
  2058. entity = -1,
  2059. model = 41,
  2060. x = 166781,
  2061. y = 218698,
  2062. z = 1245,
  2063. r = 180
  2064. },
  2065. }
  2066. },
  2067. {
  2068. id = 83,
  2069. price = 100,
  2070. lock = true,
  2071. spawnable = 0,
  2072. owner = 0,
  2073. spawn = { 168877, 222381, 1497 },
  2074. text = { 168728, 222226, 1396 },
  2075. doors = {
  2076. {
  2077. entity = -1,
  2078. model = 23,
  2079. x = 168685,
  2080. y = 222265,
  2081. z = 1300,
  2082. r = 90
  2083. },
  2084. {
  2085. entity = -1,
  2086. model = 24,
  2087. x = 169552,
  2088. y = 222965,
  2089. z = 1300,
  2090. r = 90
  2091. },
  2092. {
  2093. entity = -1,
  2094. model = 24,
  2095. x = 169180,
  2096. y = 222923,
  2097. z = 1637,
  2098. r = 180
  2099. },
  2100. {
  2101. entity = -1,
  2102. model = 24,
  2103. x = 168702,
  2104. y = 222685,
  2105. z = 1637,
  2106. r = 90
  2107. },
  2108. {
  2109. entity = -1,
  2110. model = 41,
  2111. x = 167559,
  2112. y = 221959,
  2113. z = 1245,
  2114. r = 0
  2115. },
  2116. }
  2117. },
  2118. -- WAREHOUSES (Desert town)
  2119. {
  2120. id = 84,
  2121. price = 100,
  2122. lock = true,
  2123. spawnable = 0,
  2124. owner = 0,
  2125. spawn = { -27575, 4224, 2266 },
  2126. text = { -27343, 4078, 2160 },
  2127. doors = {
  2128. {
  2129. entity = -1,
  2130. model = 20,
  2131. x = -27359,
  2132. y = 4023,
  2133. z = 2068,
  2134. r = 200
  2135. },
  2136. {
  2137. entity = -1,
  2138. model = 24,
  2139. x = -27539,
  2140. y = 3908,
  2141. z = 2067,
  2142. r = 110
  2143. },
  2144. {
  2145. entity = -1,
  2146. model = 41,
  2147. x = -25864,
  2148. y = 4765,
  2149. z = 1958,
  2150. r = 20
  2151. },
  2152. {
  2153. entity = -1,
  2154. model = 54,
  2155. x = -26797,
  2156. y = 3300,
  2157. z = 2014,
  2158. r = 20
  2159. },
  2160. }
  2161. },
  2162. {
  2163. id = 85,
  2164. price = 100,
  2165. lock = true,
  2166. spawnable = 0,
  2167. owner = 0,
  2168. spawn = { -25541, -789, 2262 },
  2169. text = { -25736, -667, 2160 },
  2170. doors = {
  2171. {
  2172. entity = -1,
  2173. model = 20,
  2174. x = -25719,
  2175. y = -615,
  2176. z = 2065,
  2177. r = 20
  2178. },
  2179. {
  2180. entity = -1,
  2181. model = 24,
  2182. x = -25538,
  2183. y = -500,
  2184. z = 2065,
  2185. r = -70
  2186. },
  2187. {
  2188. entity = -1,
  2189. model = 21,
  2190. x = -24787,
  2191. y = -753,
  2192. z = 2065,
  2193. r = -160
  2194. },
  2195. {
  2196. entity = -1,
  2197. model = 41,
  2198. x = -26143,
  2199. y = 709,
  2200. z = 1978,
  2201. r = -70
  2202. },
  2203. {
  2204. entity = -1,
  2205. model = 54,
  2206. x = -26633,
  2207. y = -1060,
  2208. z = 2014,
  2209. r = 110
  2210. },
  2211. }
  2212. },
  2213. {
  2214. id = 86,
  2215. price = 100,
  2216. lock = true,
  2217. spawnable = 0,
  2218. owner = 0,
  2219. spawn = { -30213, -1958, 2260 },
  2220. text = { -30109, -1759, 2160 },
  2221. doors = {
  2222. {
  2223. entity = -1,
  2224. model = 20,
  2225. x = -30048,
  2226. y = -1784,
  2227. z = 2064,
  2228. r = -70
  2229. },
  2230. {
  2231. entity = -1,
  2232. model = 21,
  2233. x = -29420,
  2234. y = -3184,
  2235. z = 2065,
  2236. r = 110
  2237. },
  2238. {
  2239. entity = -1,
  2240. model = 24,
  2241. x = -29520,
  2242. y = -2795,
  2243. z = 2064,
  2244. r = 110
  2245. },
  2246. {
  2247. entity = -1,
  2248. model = 41,
  2249. x = -31693,
  2250. y = -2401,
  2251. z = 1965,
  2252. r = -160
  2253. },
  2254. }
  2255. },
  2256. {
  2257. id = 87,
  2258. price = 100,
  2259. lock = true,
  2260. spawnable = 0,
  2261. owner = 0,
  2262. spawn = { -29215, -7850, 2263 },
  2263. text = { -29407, -7778, 2160 },
  2264. doors = {
  2265. {
  2266. entity = -1,
  2267. model = 21,
  2268. x = -29388,
  2269. y = -7724,
  2270. z = 2064,
  2271. r = 20
  2272. },
  2273. {
  2274. entity = -1,
  2275. model = 24,
  2276. x = -29203,
  2277. y = -7612,
  2278. z = 2064,
  2279. r = -70
  2280. },
  2281. }
  2282. },
  2283. }
  2284.  
  2285. function OnPackageStart()
  2286. -- Save all player data automatically
  2287. CreateTimer(function()
  2288. for k,v in pairs(houses) do
  2289. SaveHouseData(k)
  2290.  
  2291. end
  2292. print("All houses have been saved !")
  2293. end, 30000)
  2294.  
  2295. -- for k,v in pairs(houses) do -- Pour voir les maisons déjà faites de loin, ne pas tenir compte
  2296. -- CreateObject(2, v.spawn[1],v.spawn[2],v.spawn[3]+1000, 0, 0, 0, 5, 5, 5)
  2297. -- end
  2298.  
  2299. end
  2300. AddEvent("OnPackageStart", OnPackageStart)
  2301.  
  2302. function getHouseDoor(door)
  2303. for k,v in pairs(houses) do
  2304. for i,j in pairs(v.doors) do
  2305. if j.entity == door then
  2306. return k
  2307. end
  2308. end
  2309. end
  2310. return 0
  2311. end
  2312.  
  2313. function getHouseID(id)
  2314. for k,v in pairs(houses) do
  2315. if v.id == id then
  2316. return k
  2317. end
  2318. end
  2319. return 0
  2320. end
  2321.  
  2322. function getHouseOwner(player)
  2323. for k,v in pairs(houses) do
  2324. if v.owner == tonumber(PlayerData[player].accountid) then
  2325. return k
  2326. end
  2327. end
  2328. return 0
  2329. end
  2330.  
  2331. AddEvent("database:connected", function()
  2332. mariadb_query(sql, "SELECT * FROM player_house;", function()
  2333. for i=1,mariadb_get_row_count() do
  2334. local result = mariadb_get_assoc(i)
  2335. local id = getHouseID(tonumber(result['id']))
  2336.  
  2337.  
  2338. houses[id].owner = tonumber(result['ownerid'])
  2339. houses[id].spawnable = tonumber(result['spawn'])
  2340.  
  2341. if houses[id].owner == 0 then
  2342. houses[id].txtentities = {
  2343. CreateText3D( _("house_id").." "..houses[id].id, 10, houses[id].text[1] , houses[id].text[2], houses[id].text[3]+20, 0, 0, 0 ),
  2344. CreateText3D( _("price").." "..houses[id].price.._("currency"), 10, houses[id].text[1] , houses[id].text[2], houses[id].text[3], 0, 0, 0 )
  2345. }
  2346. else
  2347. mariadb_query(sql, "SELECT name FROM accounts WHERE id='"..houses[id].owner.."';", function()
  2348. houses[id].txtentities = {
  2349. CreateText3D( _("house_id").." "..houses[id].id, 10, houses[id].text[1] , houses[id].text[2], houses[id].text[3]+20, 0, 0, 0 ),
  2350. CreateText3D( _("owner").." "..mariadb_get_value_name(1, "name"), 10, houses[id].text[1] , houses[id].text[2], houses[id].text[3], 0, 0, 0 )
  2351. }
  2352. end)
  2353. end
  2354. end
  2355. end)
  2356.  
  2357. end)
  2358.  
  2359. AddRemoteEvent("interactHouse", function(player, door)
  2360. local house = getHouseDoor(door)
  2361.  
  2362. if houses == 0 then
  2363. return
  2364. end
  2365.  
  2366. if houses[house].owner == 0 then
  2367. CallRemoteEvent(player, "OpenHouseBuy", house, houses[house].price)
  2368. else
  2369. if houses[house].owner == tonumber(PlayerData[player].accountid) then
  2370. CallRemoteEvent(player, "OpenHouseMenu", house, houses[house].price)
  2371. end
  2372. end
  2373. end)
  2374.  
  2375.  
  2376. AddEvent("OnPackageStart", function()
  2377. for k,v in pairs(houses) do
  2378. for k,v in pairs(v.doors) do
  2379. v.entity = CreateDoor( v.model, v.x, v.y, v.z, v.r, true )
  2380. end
  2381. end
  2382. end)
  2383.  
  2384. AddEvent("OnPlayerInteractDoor", function( player, door, bWantsOpen )
  2385. local house = getHouseDoor(door)
  2386. if house == 0 then
  2387. SetDoorOpen(door, not IsDoorOpen(door))
  2388. else
  2389. if not houses[house].lock then
  2390. SetDoorOpen(door, not IsDoorOpen(door))
  2391. end
  2392. end
  2393. end)
  2394.  
  2395. AddRemoteEvent("BuyHouse", function(player, house)
  2396. if GetPlayerCash(player) < houses[house].price then
  2397. return CallRemoteEvent(player, "MakeNotification", _("not_enought_cash"), "linear-gradient(to right, #ff5f6d, #ffc371)")
  2398. end
  2399.  
  2400. if getHouseOwner(player) ~= 0 then
  2401. CallRemoteEvent(player, "MakeNotification", _("already_house_owner"), "linear-gradient(to right, #ff5f6d, #ffc371)")
  2402. else
  2403. RemovePlayerCash(player, houses[house].price)
  2404. houses[house].owner = tonumber(PlayerData[player].accountid)
  2405. DestroyText3D(houses[house].txtentities[2])
  2406. houses[house].txtentities[2] = CreateText3D( _("owner").." "..GetPlayerName(player), 10, houses[house].text[1] , houses[house].text[2], houses[house].text[3], 0, 0, 0 )
  2407. end
  2408. end)
  2409.  
  2410. AddRemoteEvent("UnlockHouse", function(player, house)
  2411. if houses[house].owner == tonumber(PlayerData[player].accountid) then
  2412. if houses[house].lock then
  2413. houses[house].lock = false
  2414. CallRemoteEvent(player, "MakeNotification", _("unlock_house"), "linear-gradient(to right, #00b09b, #96c93d)")
  2415. else
  2416. houses[house].lock = true
  2417. CallRemoteEvent(player, "MakeNotification", _("lock_house"), "linear-gradient(to right, #00b09b, #96c93d)")
  2418. end
  2419. end
  2420. end)
  2421.  
  2422. AddRemoteEvent("SellHouse", function(player, house)
  2423. if houses[house].owner == tonumber(PlayerData[player].accountid) then
  2424. price = math.ceil(houses[house].price * 0.25)
  2425. AddPlayerCash(player, price)
  2426. houses[house].owner = 0
  2427. CallRemoteEvent(player, "MakeNotification", _("house_sell", price, _("currency")), "linear-gradient(to right, #00b09b, #96c93d)")
  2428. DestroyText3D(houses[house].txtentities[2])
  2429. houses[house].txtentities[2] = CreateText3D( _("price").." "..houses[house].price.._("currency"), 10, houses[house].text[1] , houses[house].text[2], houses[house].text[3], 0, 0, 0 )
  2430. end
  2431. end)
  2432.  
  2433. AddRemoteEvent("SetHouseSpawn", function(player, house)
  2434. if houses[house].owner == tonumber(PlayerData[player].accountid) then
  2435. if houses[house].spawnable == 1 then
  2436. CallRemoteEvent(player, "MakeNotification", _("default_spawn"), "linear-gradient(to right, #00b09b, #96c93d)")
  2437. houses[house].spawnable = 0
  2438. else
  2439. CallRemoteEvent(player, "MakeNotification", _("house_spawn"), "linear-gradient(to right, #00b09b, #96c93d)")
  2440. houses[house].spawnable = 1
  2441. end
  2442. end
  2443. end)
  2444.  
  2445. function SaveHouseData(house)
  2446. local query = mariadb_prepare(sql, "UPDATE player_house SET ownerid = '?', spawn = '?' WHERE id = '?' LIMIT 1;",
  2447. houses[house].owner,
  2448. houses[house].spawnable,
  2449. houses[house].id
  2450. )
  2451.  
  2452. mariadb_query(sql, query)
  2453. end
  2454.  
  2455. function GetNearestHouseDoor(player)
  2456. local x, y, z = GetPlayerLocation(player)
  2457.  
  2458. for k,v in pairs(houses) do
  2459. for i,j in pairs(v.doors) do
  2460. local x2, y2, z2 = GetDoorLocation( j.entity )
  2461. local dist = GetDistance3D(x, y, z, x2, y2, z2)
  2462. if dist < 150.0 then
  2463. return j.entity
  2464. end
  2465. end
  2466. end
  2467. return 0
  2468. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement