shaio Posted January 2, 2017 Share Posted January 2, 2017 (edited) I honestly cannot see what is wrong with this but the Character selection is :Oed up. They aren't suppose to work together, they are all suppose to work separate.. Like, if you were to have profile 1 and profile 3 registered, it would not affect profile 2, but for some reason :~ like that happens. Please help me out with this. Meta - <meta> <info author="Shaio" type="gamemode" name="GTA Online (SA)" version="0.0.1"/> <script src="characterSelectC.lua" type="client"/> <script src="characterSelectS.lua" type="server"/> <file src="/Images/Vehicles/Vehicle_400.jpg"/> <file src="/Images/Vehicles/Vehicle_401.jpg"/> <file src="/Images/Vehicles/Vehicle_402.jpg"/> <file src="/Images/Vehicles/Vehicle_403.jpg"/> <file src="/Images/Vehicles/Vehicle_404.jpg"/> <file src="/Images/Vehicles/Vehicle_405.jpg"/> <file src="/Images/Vehicles/Vehicle_406.jpg"/> <file src="/Images/Vehicles/Vehicle_407.jpg"/> <file src="/Images/Vehicles/Vehicle_408.jpg"/> <file src="/Images/Vehicles/Vehicle_409.jpg"/> <file src="/Images/Vehicles/Vehicle_410.jpg"/> <file src="/Images/Vehicles/Vehicle_411.jpg"/> <file src="/Images/Vehicles/Vehicle_412.jpg"/> <file src="/Images/Vehicles/Vehicle_413.jpg"/> <file src="/Images/Vehicles/Vehicle_414.jpg"/> <file src="/Images/Vehicles/Vehicle_415.jpg"/> <file src="/Images/Vehicles/Vehicle_416.jpg"/> <file src="/Images/Vehicles/Vehicle_417.jpg"/> <file src="/Images/Vehicles/Vehicle_418.jpg"/> <file src="/Images/Vehicles/Vehicle_419.jpg"/> <file src="/Images/Vehicles/Vehicle_420.jpg"/> <file src="/Images/Vehicles/Vehicle_421.jpg"/> <file src="/Images/Vehicles/Vehicle_422.jpg"/> <file src="/Images/Vehicles/Vehicle_423.jpg"/> <file src="/Images/Vehicles/Vehicle_424.jpg"/> <file src="/Images/Vehicles/Vehicle_425.jpg"/> <file src="/Images/Vehicles/Vehicle_426.jpg"/> <file src="/Images/Vehicles/Vehicle_427.jpg"/> <file src="/Images/Vehicles/Vehicle_428.jpg"/> <file src="/Images/Vehicles/Vehicle_429.jpg"/> <file src="/Images/Vehicles/Vehicle_430.jpg"/> <file src="/Images/Vehicles/Vehicle_431.jpg"/> <file src="/Images/Vehicles/Vehicle_432.jpg"/> <file src="/Images/Vehicles/Vehicle_433.jpg"/> <file src="/Images/Vehicles/Vehicle_434.jpg"/> <file src="/Images/Vehicles/Vehicle_435.jpg"/> <file src="/Images/Vehicles/Vehicle_436.jpg"/> <file src="/Images/Vehicles/Vehicle_437.jpg"/> <file src="/Images/Vehicles/Vehicle_438.jpg"/> <file src="/Images/Vehicles/Vehicle_439.jpg"/> <file src="/Images/Vehicles/Vehicle_440.jpg"/> <file src="/Images/Vehicles/Vehicle_441.jpg"/> <file src="/Images/Vehicles/Vehicle_442.jpg"/> <file src="/Images/Vehicles/Vehicle_443.jpg"/> <file src="/Images/Vehicles/Vehicle_444.jpg"/> <file src="/Images/Vehicles/Vehicle_445.jpg"/> <file src="/Images/Vehicles/Vehicle_446.jpg"/> <file src="/Images/Vehicles/Vehicle_447.jpg"/> <file src="/Images/Vehicles/Vehicle_448.jpg"/> <file src="/Images/Vehicles/Vehicle_449.jpg"/> <file src="/Images/Vehicles/Vehicle_450.jpg"/> <file src="/Images/Vehicles/Vehicle_451.jpg"/> <file src="/Images/Vehicles/Vehicle_452.jpg"/> <file src="/Images/Vehicles/Vehicle_453.jpg"/> <file src="/Images/Vehicles/Vehicle_454.jpg"/> <file src="/Images/Vehicles/Vehicle_455.jpg"/> <file src="/Images/Vehicles/Vehicle_456.jpg"/> <file src="/Images/Vehicles/Vehicle_457.jpg"/> <file src="/Images/Vehicles/Vehicle_458.jpg"/> <file src="/Images/Vehicles/Vehicle_459.jpg"/> <file src="/Images/Vehicles/Vehicle_460.jpg"/> <file src="/Images/Vehicles/Vehicle_461.jpg"/> <file src="/Images/Vehicles/Vehicle_462.jpg"/> <file src="/Images/Vehicles/Vehicle_463.jpg"/> <file src="/Images/Vehicles/Vehicle_464.jpg"/> <file src="/Images/Vehicles/Vehicle_465.jpg"/> <file src="/Images/Vehicles/Vehicle_466.jpg"/> <file src="/Images/Vehicles/Vehicle_467.jpg"/> <file src="/Images/Vehicles/Vehicle_468.jpg"/> <file src="/Images/Vehicles/Vehicle_469.jpg"/> <file src="/Images/Vehicles/Vehicle_470.jpg"/> <file src="/Images/Vehicles/Vehicle_471.jpg"/> <file src="/Images/Vehicles/Vehicle_472.jpg"/> <file src="/Images/Vehicles/Vehicle_473.jpg"/> <file src="/Images/Vehicles/Vehicle_474.jpg"/> <file src="/Images/Vehicles/Vehicle_475.jpg"/> <file src="/Images/Vehicles/Vehicle_476.jpg"/> <file src="/Images/Vehicles/Vehicle_477.jpg"/> <file src="/Images/Vehicles/Vehicle_478.jpg"/> <file src="/Images/Vehicles/Vehicle_479.jpg"/> <file src="/Images/Vehicles/Vehicle_480.jpg"/> <file src="/Images/Vehicles/Vehicle_481.jpg"/> <file src="/Images/Vehicles/Vehicle_482.jpg"/> <file src="/Images/Vehicles/Vehicle_483.jpg"/> <file src="/Images/Vehicles/Vehicle_484.jpg"/> <file src="/Images/Vehicles/Vehicle_485.jpg"/> <file src="/Images/Vehicles/Vehicle_486.jpg"/> <file src="/Images/Vehicles/Vehicle_487.jpg"/> <file src="/Images/Vehicles/Vehicle_488.jpg"/> <file src="/Images/Vehicles/Vehicle_489.jpg"/> <file src="/Images/Vehicles/Vehicle_490.jpg"/> <file src="/Images/Vehicles/Vehicle_491.jpg"/> <file src="/Images/Vehicles/Vehicle_492.jpg"/> <file src="/Images/Vehicles/Vehicle_493.jpg"/> <file src="/Images/Vehicles/Vehicle_494.jpg"/> <file src="/Images/Vehicles/Vehicle_495.jpg"/> <file src="/Images/Vehicles/Vehicle_496.jpg"/> <file src="/Images/Vehicles/Vehicle_497.jpg"/> <file src="/Images/Vehicles/Vehicle_498.jpg"/> <file src="/Images/Vehicles/Vehicle_499.jpg"/> <file src="/Images/Vehicles/Vehicle_500.jpg"/> <file src="/Images/Vehicles/Vehicle_501.jpg"/> <file src="/Images/Vehicles/Vehicle_502.jpg"/> <file src="/Images/Vehicles/Vehicle_503.jpg"/> <file src="/Images/Vehicles/Vehicle_504.jpg"/> <file src="/Images/Vehicles/Vehicle_505.jpg"/> <file src="/Images/Vehicles/Vehicle_506.jpg"/> <file src="/Images/Vehicles/Vehicle_507.jpg"/> <file src="/Images/Vehicles/Vehicle_508.jpg"/> <file src="/Images/Vehicles/Vehicle_509.jpg"/> <file src="/Images/Vehicles/Vehicle_510.jpg"/> <file src="/Images/Vehicles/Vehicle_511.jpg"/> <file src="/Images/Vehicles/Vehicle_512.jpg"/> <file src="/Images/Vehicles/Vehicle_513.jpg"/> <file src="/Images/Vehicles/Vehicle_514.jpg"/> <file src="/Images/Vehicles/Vehicle_515.jpg"/> <file src="/Images/Vehicles/Vehicle_516.jpg"/> <file src="/Images/Vehicles/Vehicle_517.jpg"/> <file src="/Images/Vehicles/Vehicle_518.jpg"/> <file src="/Images/Vehicles/Vehicle_519.jpg"/> <file src="/Images/Vehicles/Vehicle_520.jpg"/> <file src="/Images/Vehicles/Vehicle_521.jpg"/> <file src="/Images/Vehicles/Vehicle_522.jpg"/> <file src="/Images/Vehicles/Vehicle_523.jpg"/> <file src="/Images/Vehicles/Vehicle_524.jpg"/> <file src="/Images/Vehicles/Vehicle_525.jpg"/> <file src="/Images/Vehicles/Vehicle_526.jpg"/> <file src="/Images/Vehicles/Vehicle_527.jpg"/> <file src="/Images/Vehicles/Vehicle_528.jpg"/> <file src="/Images/Vehicles/Vehicle_529.jpg"/> <file src="/Images/Vehicles/Vehicle_530.jpg"/> <file src="/Images/Vehicles/Vehicle_531.jpg"/> <file src="/Images/Vehicles/Vehicle_532.jpg"/> <file src="/Images/Vehicles/Vehicle_533.jpg"/> <file src="/Images/Vehicles/Vehicle_534.jpg"/> <file src="/Images/Vehicles/Vehicle_535.jpg"/> <file src="/Images/Vehicles/Vehicle_536.jpg"/> <file src="/Images/Vehicles/Vehicle_537.jpg"/> <file src="/Images/Vehicles/Vehicle_538.jpg"/> <file src="/Images/Vehicles/Vehicle_539.jpg"/> <file src="/Images/Vehicles/Vehicle_540.jpg"/> <file src="/Images/Vehicles/Vehicle_541.jpg"/> <file src="/Images/Vehicles/Vehicle_542.jpg"/> <file src="/Images/Vehicles/Vehicle_543.jpg"/> <file src="/Images/Vehicles/Vehicle_544.jpg"/> <file src="/Images/Vehicles/Vehicle_545.jpg"/> <file src="/Images/Vehicles/Vehicle_546.jpg"/> <file src="/Images/Vehicles/Vehicle_547.jpg"/> <file src="/Images/Vehicles/Vehicle_548.jpg"/> <file src="/Images/Vehicles/Vehicle_549.jpg"/> <file src="/Images/Vehicles/Vehicle_550.jpg"/> <file src="/Images/Vehicles/Vehicle_551.jpg"/> <file src="/Images/Vehicles/Vehicle_552.jpg"/> <file src="/Images/Vehicles/Vehicle_553.jpg"/> <file src="/Images/Vehicles/Vehicle_554.jpg"/> <file src="/Images/Vehicles/Vehicle_555.jpg"/> <file src="/Images/Vehicles/Vehicle_556.jpg"/> <file src="/Images/Vehicles/Vehicle_557.jpg"/> <file src="/Images/Vehicles/Vehicle_558.jpg"/> <file src="/Images/Vehicles/Vehicle_559.jpg"/> <file src="/Images/Vehicles/Vehicle_560.jpg"/> <file src="/Images/Vehicles/Vehicle_561.jpg"/> <file src="/Images/Vehicles/Vehicle_562.jpg"/> <file src="/Images/Vehicles/Vehicle_563.jpg"/> <file src="/Images/Vehicles/Vehicle_564.jpg"/> <file src="/Images/Vehicles/Vehicle_565.jpg"/> <file src="/Images/Vehicles/Vehicle_566.jpg"/> <file src="/Images/Vehicles/Vehicle_567.jpg"/> <file src="/Images/Vehicles/Vehicle_568.jpg"/> <file src="/Images/Vehicles/Vehicle_569.jpg"/> <file src="/Images/Vehicles/Vehicle_570.jpg"/> <file src="/Images/Vehicles/Vehicle_571.jpg"/> <file src="/Images/Vehicles/Vehicle_572.jpg"/> <file src="/Images/Vehicles/Vehicle_573.jpg"/> <file src="/Images/Vehicles/Vehicle_574.jpg"/> <file src="/Images/Vehicles/Vehicle_575.jpg"/> <file src="/Images/Vehicles/Vehicle_576.jpg"/> <file src="/Images/Vehicles/Vehicle_577.jpg"/> <file src="/Images/Vehicles/Vehicle_578.jpg"/> <file src="/Images/Vehicles/Vehicle_579.jpg"/> <file src="/Images/Vehicles/Vehicle_580.jpg"/> <file src="/Images/Vehicles/Vehicle_581.jpg"/> <file src="/Images/Vehicles/Vehicle_582.jpg"/> <file src="/Images/Vehicles/Vehicle_583.jpg"/> <file src="/Images/Vehicles/Vehicle_584.jpg"/> <file src="/Images/Vehicles/Vehicle_585.jpg"/> <file src="/Images/Vehicles/Vehicle_586.jpg"/> <file src="/Images/Vehicles/Vehicle_587.jpg"/> <file src="/Images/Vehicles/Vehicle_588.jpg"/> <file src="/Images/Vehicles/Vehicle_589.jpg"/> <file src="/Images/Vehicles/Vehicle_590.jpg"/> <file src="/Images/Vehicles/Vehicle_591.jpg"/> <file src="/Images/Vehicles/Vehicle_592.jpg"/> <file src="/Images/Vehicles/Vehicle_593.jpg"/> <file src="/Images/Vehicles/Vehicle_594.jpg"/> <file src="/Images/Vehicles/Vehicle_595.jpg"/> <file src="/Images/Vehicles/Vehicle_596.jpg"/> <file src="/Images/Vehicles/Vehicle_597.jpg"/> <file src="/Images/Vehicles/Vehicle_598.jpg"/> <file src="/Images/Vehicles/Vehicle_599.jpg"/> <file src="/Images/Vehicles/Vehicle_600.jpg"/> <file src="/Images/Vehicles/Vehicle_601.jpg"/> <file src="/Images/Vehicles/Vehicle_602.jpg"/> <file src="/Images/Vehicles/Vehicle_603.jpg"/> <file src="/Images/Vehicles/Vehicle_604.jpg"/> <file src="/Images/Vehicles/Vehicle_605.jpg"/> <file src="/Images/Vehicles/Vehicle_606.jpg"/> <file src="/Images/Vehicles/Vehicle_607.jpg"/> <file src="/Images/Vehicles/Vehicle_608.jpg"/> <file src="/Images/Vehicles/Vehicle_609.jpg"/> <file src="/Images/Vehicles/Vehicle_610.jpg"/> <file src="/Images/Vehicles/Vehicle_611.jpg"/> <file src="/Images/Skins/Skin_0.png"/> <file src="/Images/Skins/Skin_1.png"/> <file src="/Images/Skins/Skin_2.png"/> <file src="/Images/Skins/Skin_3.png"/> <file src="/Images/Skins/Skin_4.png"/> <file src="/Images/Skins/Skin_5.png"/> <file src="/Images/Skins/Skin_6.png"/> <file src="/Images/Skins/Skin_7.png"/> <file src="/Images/Skins/Skin_8.png"/> <file src="/Images/Skins/Skin_9.png"/> <file src="/Images/Skins/Skin_10.png"/> <file src="/Images/Skins/Skin_11.png"/> <file src="/Images/Skins/Skin_12.png"/> <file src="/Images/Skins/Skin_13.png"/> <file src="/Images/Skins/Skin_14.png"/> <file src="/Images/Skins/Skin_15.png"/> <file src="/Images/Skins/Skin_16.png"/> <file src="/Images/Skins/Skin_17.png"/> <file src="/Images/Skins/Skin_18.png"/> <file src="/Images/Skins/Skin_19.png"/> <file src="/Images/Skins/Skin_20.png"/> <file src="/Images/Skins/Skin_21.png"/> <file src="/Images/Skins/Skin_22.png"/> <file src="/Images/Skins/Skin_23.png"/> <file src="/Images/Skins/Skin_24.png"/> <file src="/Images/Skins/Skin_25.png"/> <file src="/Images/Skins/Skin_26.png"/> <file src="/Images/Skins/Skin_27.png"/> <file src="/Images/Skins/Skin_28.png"/> <file src="/Images/Skins/Skin_29.png"/> <file src="/Images/Skins/Skin_30.png"/> <file src="/Images/Skins/Skin_31.png"/> <file src="/Images/Skins/Skin_32.png"/> <file src="/Images/Skins/Skin_33.png"/> <file src="/Images/Skins/Skin_34.png"/> <file src="/Images/Skins/Skin_35.png"/> <file src="/Images/Skins/Skin_36.png"/> <file src="/Images/Skins/Skin_37.png"/> <file src="/Images/Skins/Skin_38.png"/> <file src="/Images/Skins/Skin_39.png"/> <file src="/Images/Skins/Skin_40.png"/> <file src="/Images/Skins/Skin_41.png"/> <file src="/Images/Skins/Skin_42.png"/> <file src="/Images/Skins/Skin_43.png"/> <file src="/Images/Skins/Skin_44.png"/> <file src="/Images/Skins/Skin_45.png"/> <file src="/Images/Skins/Skin_46.png"/> <file src="/Images/Skins/Skin_47.png"/> <file src="/Images/Skins/Skin_49.png"/> <file src="/Images/Skins/Skin_50.png"/> <file src="/Images/Skins/Skin_51.png"/> <file src="/Images/Skins/Skin_52.png"/> <file src="/Images/Skins/Skin_53.png"/> <file src="/Images/Skins/Skin_54.png"/> <file src="/Images/Skins/Skin_55.png"/> <file src="/Images/Skins/Skin_56.png"/> <file src="/Images/Skins/Skin_57.png"/> <file src="/Images/Skins/Skin_58.png"/> <file src="/Images/Skins/Skin_59.png"/> <file src="/Images/Skins/Skin_60.png"/> <file src="/Images/Skins/Skin_61.png"/> <file src="/Images/Skins/Skin_62.png"/> <file src="/Images/Skins/Skin_63.png"/> <file src="/Images/Skins/Skin_64.png"/> <file src="/Images/Skins/Skin_65.png"/> <file src="/Images/Skins/Skin_66.png"/> <file src="/Images/Skins/Skin_67.png"/> <file src="/Images/Skins/Skin_68.png"/> <file src="/Images/Skins/Skin_69.png"/> <file src="/Images/Skins/Skin_70.png"/> <file src="/Images/Skins/Skin_71.png"/> <file src="/Images/Skins/Skin_72.png"/> <file src="/Images/Skins/Skin_73.png"/> <file src="/Images/Skins/Skin_75.png"/> <file src="/Images/Skins/Skin_76.png"/> <file src="/Images/Skins/Skin_77.png"/> <file src="/Images/Skins/Skin_78.png"/> <file src="/Images/Skins/Skin_79.png"/> <file src="/Images/Skins/Skin_80.png"/> <file src="/Images/Skins/Skin_81.png"/> <file src="/Images/Skins/Skin_82.png"/> <file src="/Images/Skins/Skin_83.png"/> <file src="/Images/Skins/Skin_84.png"/> <file src="/Images/Skins/Skin_85.png"/> <file src="/Images/Skins/Skin_86.png"/> <file src="/Images/Skins/Skin_87.png"/> <file src="/Images/Skins/Skin_88.png"/> <file src="/Images/Skins/Skin_89.png"/> <file src="/Images/Skins/Skin_90.png"/> <file src="/Images/Skins/Skin_91.png"/> <file src="/Images/Skins/Skin_92.png"/> <file src="/Images/Skins/Skin_93.png"/> <file src="/Images/Skins/Skin_94.png"/> <file src="/Images/Skins/Skin_95.png"/> <file src="/Images/Skins/Skin_96.png"/> <file src="/Images/Skins/Skin_97.png"/> <file src="/Images/Skins/Skin_98.png"/> <file src="/Images/Skins/Skin_99.png"/> <file src="/Images/Skins/Skin_100.png"/> <file src="/Images/Skins/Skin_101.png"/> <file src="/Images/Skins/Skin_102.png"/> <file src="/Images/Skins/Skin_103.png"/> <file src="/Images/Skins/Skin_104.png"/> <file src="/Images/Skins/Skin_105.png"/> <file src="/Images/Skins/Skin_106.png"/> <file src="/Images/Skins/Skin_107.png"/> <file src="/Images/Skins/Skin_108.png"/> <file src="/Images/Skins/Skin_109.png"/> <file src="/Images/Skins/Skin_110.png"/> <file src="/Images/Skins/Skin_111.png"/> <file src="/Images/Skins/Skin_112.png"/> <file src="/Images/Skins/Skin_113.png"/> <file src="/Images/Skins/Skin_114.png"/> <file src="/Images/Skins/Skin_115.png"/> <file src="/Images/Skins/Skin_116.png"/> <file src="/Images/Skins/Skin_117.png"/> <file src="/Images/Skins/Skin_118.png"/> <file src="/Images/Skins/Skin_119.png"/> <file src="/Images/Skins/Skin_120.png"/> <file src="/Images/Skins/Skin_121.png"/> <file src="/Images/Skins/Skin_122.png"/> <file src="/Images/Skins/Skin_123.png"/> <file src="/Images/Skins/Skin_124.png"/> <file src="/Images/Skins/Skin_125.png"/> <file src="/Images/Skins/Skin_126.png"/> <file src="/Images/Skins/Skin_127.png"/> <file src="/Images/Skins/Skin_128.png"/> <file src="/Images/Skins/Skin_129.png"/> <file src="/Images/Skins/Skin_130.png"/> <file src="/Images/Skins/Skin_131.png"/> <file src="/Images/Skins/Skin_132.png"/> <file src="/Images/Skins/Skin_133.png"/> <file src="/Images/Skins/Skin_134.png"/> <file src="/Images/Skins/Skin_135.png"/> <file src="/Images/Skins/Skin_136.png"/> <file src="/Images/Skins/Skin_137.png"/> <file src="/Images/Skins/Skin_138.png"/> <file src="/Images/Skins/Skin_139.png"/> <file src="/Images/Skins/Skin_140.png"/> <file src="/Images/Skins/Skin_141.png"/> <file src="/Images/Skins/Skin_142.png"/> <file src="/Images/Skins/Skin_143.png"/> <file src="/Images/Skins/Skin_144.png"/> <file src="/Images/Skins/Skin_145.png"/> <file src="/Images/Skins/Skin_146.png"/> <file src="/Images/Skins/Skin_147.png"/> <file src="/Images/Skins/Skin_148.png"/> <file src="/Images/Skins/Skin_149.png"/> <file src="/Images/Skins/Skin_150.png"/> <file src="/Images/Skins/Skin_151.png"/> <file src="/Images/Skins/Skin_152.png"/> <file src="/Images/Skins/Skin_153.png"/> <file src="/Images/Skins/Skin_154.png"/> <file src="/Images/Skins/Skin_155.png"/> <file src="/Images/Skins/Skin_156.png"/> <file src="/Images/Skins/Skin_157.png"/> <file src="/Images/Skins/Skin_158.png"/> <file src="/Images/Skins/Skin_159.png"/> <file src="/Images/Skins/Skin_160.png"/> <file src="/Images/Skins/Skin_161.png"/> <file src="/Images/Skins/Skin_162.png"/> <file src="/Images/Skins/Skin_163.png"/> <file src="/Images/Skins/Skin_164.png"/> <file src="/Images/Skins/Skin_165.png"/> <file src="/Images/Skins/Skin_167.png"/> <file src="/Images/Skins/Skin_168.png"/> <file src="/Images/Skins/Skin_169.png"/> <file src="/Images/Skins/Skin_170.png"/> <file src="/Images/Skins/Skin_171.png"/> <file src="/Images/Skins/Skin_172.png"/> <file src="/Images/Skins/Skin_173.png"/> <file src="/Images/Skins/Skin_174.png"/> <file src="/Images/Skins/Skin_175.png"/> <file src="/Images/Skins/Skin_176.png"/> <file src="/Images/Skins/Skin_177.png"/> <file src="/Images/Skins/Skin_178.png"/> <file src="/Images/Skins/Skin_179.png"/> <file src="/Images/Skins/Skin_180.png"/> <file src="/Images/Skins/Skin_181.png"/> <file src="/Images/Skins/Skin_182.png"/> <file src="/Images/Skins/Skin_183.png"/> <file src="/Images/Skins/Skin_184.png"/> <file src="/Images/Skins/Skin_185.png"/> <file src="/Images/Skins/Skin_186.png"/> <file src="/Images/Skins/Skin_187.png"/> <file src="/Images/Skins/Skin_188.png"/> <file src="/Images/Skins/Skin_189.png"/> <file src="/Images/Skins/Skin_190.png"/> <file src="/Images/Skins/Skin_191.png"/> <file src="/Images/Skins/Skin_192.png"/> <file src="/Images/Skins/Skin_193.png"/> <file src="/Images/Skins/Skin_194.png"/> <file src="/Images/Skins/Skin_195.png"/> <file src="/Images/Skins/Skin_196.png"/> <file src="/Images/Skins/Skin_197.png"/> <file src="/Images/Skins/Skin_198.png"/> <file src="/Images/Skins/Skin_199.png"/> <file src="/Images/Skins/Skin_200.png"/> <file src="/Images/Skins/Skin_201.png"/> <file src="/Images/Skins/Skin_202.png"/> <file src="/Images/Skins/Skin_203.png"/> <file src="/Images/Skins/Skin_204.png"/> <file src="/Images/Skins/Skin_205.png"/> <file src="/Images/Skins/Skin_206.png"/> <file src="/Images/Skins/Skin_207.png"/> <file src="/Images/Skins/Skin_208.png"/> <file src="/Images/Skins/Skin_209.png"/> <file src="/Images/Skins/Skin_210.png"/> <file src="/Images/Skins/Skin_211.png"/> <file src="/Images/Skins/Skin_212.png"/> <file src="/Images/Skins/Skin_213.png"/> <file src="/Images/Skins/Skin_214.png"/> <file src="/Images/Skins/Skin_215.png"/> <file src="/Images/Skins/Skin_216.png"/> <file src="/Images/Skins/Skin_217.png"/> <file src="/Images/Skins/Skin_218.png"/> <file src="/Images/Skins/Skin_219.png"/> <file src="/Images/Skins/Skin_220.png"/> <file src="/Images/Skins/Skin_221.png"/> <file src="/Images/Skins/Skin_222.png"/> <file src="/Images/Skins/Skin_223.png"/> <file src="/Images/Skins/Skin_224.png"/> <file src="/Images/Skins/Skin_225.png"/> <file src="/Images/Skins/Skin_226.png"/> <file src="/Images/Skins/Skin_227.png"/> <file src="/Images/Skins/Skin_228.png"/> <file src="/Images/Skins/Skin_229.png"/> <file src="/Images/Skins/Skin_230.png"/> <file src="/Images/Skins/Skin_231.png"/> <file src="/Images/Skins/Skin_232.png"/> <file src="/Images/Skins/Skin_233.png"/> <file src="/Images/Skins/Skin_234.png"/> <file src="/Images/Skins/Skin_235.png"/> <file src="/Images/Skins/Skin_236.png"/> <file src="/Images/Skins/Skin_237.png"/> <file src="/Images/Skins/Skin_238.png"/> <file src="/Images/Skins/Skin_239.png"/> <file src="/Images/Skins/Skin_240.png"/> <file src="/Images/Skins/Skin_241.png"/> <file src="/Images/Skins/Skin_242.png"/> <file src="/Images/Skins/Skin_243.png"/> <file src="/Images/Skins/Skin_244.png"/> <file src="/Images/Skins/Skin_245.png"/> <file src="/Images/Skins/Skin_246.png"/> <file src="/Images/Skins/Skin_247.png"/> <file src="/Images/Skins/Skin_248.png"/> <file src="/Images/Skins/Skin_249.png"/> <file src="/Images/Skins/Skin_250.png"/> <file src="/Images/Skins/Skin_251.png"/> <file src="/Images/Skins/Skin_252.png"/> <file src="/Images/Skins/Skin_253.png"/> <file src="/Images/Skins/Skin_254.png"/> <file src="/Images/Skins/Skin_255.png"/> <file src="/Images/Skins/Skin_256.png"/> <file src="/Images/Skins/Skin_257.png"/> <file src="/Images/Skins/Skin_258.png"/> <file src="/Images/Skins/Skin_259.png"/> <file src="/Images/Skins/Skin_260.png"/> <file src="/Images/Skins/Skin_261.png"/> <file src="/Images/Skins/Skin_262.png"/> <file src="/Images/Skins/Skin_263.png"/> <file src="/Images/Skins/Skin_264.png"/> <file src="/Images/Skins/Skin_265.png"/> <file src="/Images/Skins/Skin_266.png"/> <file src="/Images/Skins/Skin_267.png"/> <file src="/Images/Skins/Skin_268.png"/> <file src="/Images/Skins/Skin_269.png"/> <file src="/Images/Skins/Skin_270.png"/> <file src="/Images/Skins/Skin_271.png"/> <file src="/Images/Skins/Skin_272.png"/> <file src="/Images/Skins/Skin_273.png"/> <file src="/Images/Skins/Skin_274.png"/> <file src="/Images/Skins/Skin_275.png"/> <file src="/Images/Skins/Skin_276.png"/> <file src="/Images/Skins/Skin_277.png"/> <file src="/Images/Skins/Skin_278.png"/> <file src="/Images/Skins/Skin_279.png"/> <file src="/Images/Skins/Skin_280.png"/> <file src="/Images/Skins/Skin_281.png"/> <file src="/Images/Skins/Skin_282.png"/> <file src="/Images/Skins/Skin_283.png"/> <file src="/Images/Skins/Skin_284.png"/> <file src="/Images/Skins/Skin_285.png"/> <file src="/Images/Skins/Skin_286.png"/> <file src="/Images/Skins/Skin_287.png"/> <file src="/Images/Skins/Skin_288.png"/> <file src="/Images/Skins/Skin_289.png"/> <file src="/Images/Skins/Skin_290.png"/> <file src="/Images/Skins/Skin_291.png"/> <file src="/Images/Skins/Skin_292.png"/> <file src="/Images/Skins/Skin_293.png"/> <file src="/Images/Skins/Skin_294.png"/> <file src="/Images/Skins/Skin_295.png"/> <file src="/Images/Skins/Skin_296.png"/> <file src="/Images/Skins/Skin_297.png"/> <file src="/Images/Skins/Skin_298.png"/> <file src="/Images/Skins/Skin_299.png"/> <file src="/Images/Skins/Skin_300.png"/> <file src="/Images/Skins/Skin_301.png"/> <file src="/Images/Skins/Skin_302.png"/> <file src="/Images/Skins/Skin_303.png"/> <file src="/Images/Skins/Skin_304.png"/> <file src="/Images/Skins/Skin_305.png"/> <file src="/Images/Skins/Skin_306.png"/> <file src="/Images/Skins/Skin_307.png"/> <file src="/Images/Skins/Skin_308.png"/> <file src="/Images/Skins/Skin_309.png"/> <file src="/Images/Skins/Skin_310.png"/> <file src="/Images/Skins/Skin_311.png"/> <file src="/Images/Weapons/321.jpg"/> <file src="/Images/Weapons/322.jpg"/> <file src="/Images/Weapons/323.jpg"/> <file src="/Images/Weapons/324.jpg"/> <file src="/Images/Weapons/325.jpg"/> <file src="/Images/Weapons/326.jpg"/> <file src="/Images/Weapons/327.jpg"/> <file src="/Images/Weapons/328.jpg"/> <file src="/Images/Weapons/330.jpg"/> <file src="/Images/Weapons/331.jpg"/> <file src="/Images/Weapons/333.jpg"/> <file src="/Images/Weapons/334.jpg"/> <file src="/Images/Weapons/335.jpg"/> <file src="/Images/Weapons/336.jpg"/> <file src="/Images/Weapons/337.jpg"/> <file src="/Images/Weapons/338.jpg"/> <file src="/Images/Weapons/339.jpg"/> <file src="/Images/Weapons/341.jpg"/> <file src="/Images/Weapons/342.jpg"/> <file src="/Images/Weapons/343.jpg"/> <file src="/Images/Weapons/344.jpg"/> <file src="/Images/Weapons/345.jpg"/> <file src="/Images/Weapons/346.jpg"/> <file src="/Images/Weapons/347.jpg"/> <file src="/Images/Weapons/348.jpg"/> <file src="/Images/Weapons/349.jpg"/> <file src="/Images/Weapons/350.jpg"/> <file src="/Images/Weapons/351.jpg"/> <file src="/Images/Weapons/353.jpg"/> <file src="/Images/Weapons/354.jpg"/> <file src="/Images/Weapons/355.jpg"/> <file src="/Images/Weapons/356.jpg"/> <file src="/Images/Weapons/357.jpg"/> <file src="/Images/Weapons/358.jpg"/> <file src="/Images/Weapons/359.jpg"/> <file src="/Images/Weapons/360.jpg"/> <file src="/Images/Weapons/361.jpg"/> <file src="/Images/Weapons/362.jpg"/> <file src="/Images/Weapons/363.jpg"/> <file src="/Images/Weapons/364.jpg"/> <file src="/Images/Weapons/365.jpg"/> <file src="/Images/Weapons/366.jpg"/> <file src="/Images/Weapons/367.jpg"/> <file src="/Images/Weapons/368.jpg"/> <file src="/Images/Weapons/369.jpg"/> <file src="/Images/Weapons/370.jpg"/> <file src="/Images/Weapons/371.jpg"/> <file src="/Images/Weapons/372.jpg"/> <file src="/Images/Weapons/373.jpg"/> <file src="/Images/WeaponsHUD/1.png"/> <file src="/Images/WeaponsHUD/2.png"/> <file src="/Images/WeaponsHUD/3.png"/> <file src="/Images/WeaponsHUD/4.png"/> <file src="/Images/WeaponsHUD/5.png"/> <file src="/Images/WeaponsHUD/6.png"/> <file src="/Images/WeaponsHUD/7.png"/> <file src="/Images/WeaponsHUD/8.png"/> <file src="/Images/WeaponsHUD/9.png"/> <file src="/Images/WeaponsHUD/10.png"/> <file src="/Images/WeaponsHUD/11.png"/> <file src="/Images/WeaponsHUD/12.png"/> <file src="/Images/WeaponsHUD/13.png"/> <file src="/Images/WeaponsHUD/14.png"/> <file src="/Images/WeaponsHUD/15.png"/> <file src="/Images/WeaponsHUD/16.png"/> <file src="/Images/WeaponsHUD/17.png"/> <file src="/Images/WeaponsHUD/19.png"/> <file src="/Images/WeaponsHUD/22.png"/> <file src="/Images/WeaponsHUD/23.png"/> <file src="/Images/WeaponsHUD/24.png"/> <file src="/Images/WeaponsHUD/25.png"/> <file src="/Images/WeaponsHUD/26.png"/> <file src="/Images/WeaponsHUD/27.png"/> <file src="/Images/WeaponsHUD/28.png"/> <file src="/Images/WeaponsHUD/29.png"/> <file src="/Images/WeaponsHUD/30.png"/> <file src="/Images/WeaponsHUD/31.png"/> <file src="/Images/WeaponsHUD/32.png"/> <file src="/Images/WeaponsHUD/33.png"/> <file src="/Images/WeaponsHUD/34.png"/> <file src="/Images/WeaponsHUD/35.png"/> <file src="/Images/WeaponsHUD/36.png"/> <file src="/Images/WeaponsHUD/37.png"/> <file src="/Images/WeaponsHUD/38.png"/> <file src="/Images/WeaponsHUD/39.png"/> <file src="/Images/WeaponsHUD/40.png"/> <file src="/Images/WeaponsHUD/41.png"/> <file src="/Images/WeaponsHUD/42.png"/> <file src="/Images/WeaponsHUD/43.png"/> <file src="/Images/WeaponsHUD/44.png"/> <file src="/Images/WeaponsHUD/45.png"/> <file src="/Images/WeaponsHUD/46.png"/> <file src="/Images/WeaponsHUD/55.png"/> <file src="/Images/WeaponsHUD/56.png"/> <file src="/Images/WeaponsHUD/57.png"/> </meta> clientside - local root = getRootElement() local localPlayer = getLocalPlayer() local efID = 0 local serverInfo = getVersion() local file = fileOpen("skins.json") local size = fileGetSize(file) local buffer = fileRead(file,size) local Skins = fromJSON(buffer) fileClose(file) character = 0 players = 0 maxPlayers = 0 spawnPoints = {} spawnPoints[1] = {} spawnPoints[1]["x"] = -1994.29736+math.random(1,2) spawnPoints[1]["y"] = 720.84967+math.random(1,2) spawnPoints[1]["z"] = 46 spawnPoints[2] = {} spawnPoints[2]["x"] = 1022.41095+math.random(1,2) spawnPoints[2]["y"] = -1128.85535+math.random(1,2) spawnPoints[2]["z"] = 24 spawnPoints[3] = {} spawnPoints[3]["x"] = 1940.52612+math.random(1,2) spawnPoints[3]["y"] = 1343.90771+math.random(1,2) spawnPoints[3]["z"] = 10 GUIEditor = { staticimage = {}, edit = {}, button = {}, window = {}, label = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(0.00, 0.00, 1.00, 0.99, "Character Creator", true) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) --[[ Don't need this. GUIEditor.edit[1] = guiCreateEdit(0.68, 0.07, 0.31, 0.05, "", true, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(0.68, 0.14, 0.31, 0.05, "", true, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(0.68, 0.20, 0.31, 0.05, "", true, GUIEditor.window[1]) guiEditSetMaxLength(GUIEditor.edit[3],5) guiEditSetMasked(GUIEditor.edit[3],true) GUIEditor.label[1] = guiCreateLabel(0.57, 0.07, 0.11, 0.05, "Name", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(0.57, 0.14, 0.11, 0.05, "Email", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(0.57, 0.20, 0.11, 0.05, "Create PIN (5 numbers)", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") ]] GUIEditor.button[1] = guiCreateButton(0.02, 0.05, 0.06, 0.58, "<", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(0.28, 0.05, 0.06, 0.58, ">", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.staticimage[1] = guiCreateStaticImage(0.08, 0.05, 0.19, 0.58, "/Images/Skins/Skin_0.png", true, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(0.02, 0.64, 0.32, 0.05, "Skin Name: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.label[5] = guiCreateLabel(0.02, 0.71, 0.32, 0.05, "Gender: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.label[6] = guiCreateLabel(0.39, 0.27, 0.58, 0.12, "Spawnpoint", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "sa-gothic") guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[6], "center") GUIEditor.label[7] = guiCreateLabel(0.39, 0.40, 0.29, 0.06, "Town: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[7], "center") GUIEditor.label[8] = guiCreateLabel(0.39, 0.48, 0.20, 0.06, "X: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[8], "center") GUIEditor.label[9] = guiCreateLabel(0.59, 0.48, 0.20, 0.06, "Y: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[9], "center") GUIEditor.label[10] = guiCreateLabel(0.80, 0.48, 0.17, 0.06, "Z: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[10], "center") GUIEditor.label[11] = guiCreateLabel(0.36, 0.07, 0.20, 0.05, "Players: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[11], "center") guiSetText(GUIEditor.label[11],"Players: "..players.."/"..maxPlayers) GUIEditor.label[12] = guiCreateLabel(0.36, 0.13, 0.20, 0.05, "MTA Version: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[12], "center") guiSetText(GUIEditor.label[12],"MTA Version: "..serverInfo.mta) GUIEditor.label[13] = guiCreateLabel(0.36, 0.19, 0.20, 0.05, "GTA Online Version: 0.0.1 Beta", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[13], "center") GUIEditor.label[14] = guiCreateLabel(0.68, 0.40, 0.28, 0.06, "Skin: ", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[14], "center") GUIEditor.memo[1] = guiCreateMemo(0.39, 0.55, 0.58, 0.30, "", true, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[3] = guiCreateButton(0.39, 0.87, 0.58, 0.12, "Confirm and Spawn", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.label[15] = guiCreateLabel(0.02, 0.77, 0.31, 0.20, "Created By:\nShaio Fencski", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[15], "sa-header") guiLabelSetColor(GUIEditor.label[15], 245, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[15], "center") ------------ ^^ Gui Stuff ^^ ------------ addEventHandler("onClientResourceStart",root,function() guiSetVisible(GUIEditor.window[1],false) end) addEvent("createCharacter",true) addEventHandler("createCharacter",root,function(id) character = id guiSetVisible(GUIEditor.window[1],true) addEventHandler("onClientGUIClick",root,function(button) if source == GUIEditor.button[1] then if efID == 0 then efID = 299 for i,s in pairs(Skins) do if s.id == efID then guiSetText(GUIEditor.label[4],"Skin Name: "..s.name) guiSetText(GUIEditor.label[5],"Gender: "..s.gender) GUIEditor.staticimage[1] = guiCreateStaticImage(0.08,0.05,0.19,0.58,"/Images/Skins/Skin_"..efID..".png",true,GUIEditor.window[1]) end end else efID = efID - 1 for i,s in pairs(Skins) do if s.id == efID then guiSetText(GUIEditor.label[4],"Skin Name: "..s.name) guiSetText(GUIEditor.label[5],"Gender: "..s.gender) GUIEditor.staticimage[1] = guiCreateStaticImage(0.08,0.05,0.19,0.58,"/Images/Skins/Skin_"..efID..".png",true,GUIEditor.window[1]) end end end elseif source == GUIEditor.button[2] then if efID == 299 then efID = 0 for i,s in pairs(Skins) do if s.id == efID then guiSetText(GUIEditor.label[4],"Skin Name: "..s.name) guiSetText(GUIEditor.label[5],"Gender: "..s.gender) GUIEditor.staticimage[1] = guiCreateStaticImage(0.08,0.05,0.19,0.58,"/Images/Skins/Skin_"..efID..".png",true,GUIEditor.window[1]) end end else efID = efID + 1 for i,s in pairs(Skins) do if s.id == efID then guiSetText(GUIEditor.label[4],"Skin Name: "..s.name) guiSetText(GUIEditor.label[5],"Gender: "..s.gender) GUIEditor.staticimage[1] = guiCreateStaticImage(0.08,0.05,0.19,0.58,"/Images/Skins/Skin_"..efID..".png",true,GUIEditor.window[1]) end end end elseif source == GUIEditor.button[3] then -- This goes with the edits and labels I blanked out --if guiGetText(GUIEditor.edit[1]) and guiGetText(GUIEditor.edit[2]) and guiGetText(GUIEditor.edit[3]) then local u = math.random(1,3) setElementPosition(localPlayer,spawnPoints[u]["x"],spawnPoints[u]["y"],spawnPoints[u]["z"]) guiSetVisible(GUIEditor.window[1],false) showCursor(false) setElementModel(localPlayer,efID) setCameraTarget(localPlayer,localPlayer) if character == 1 then triggerServerEvent("setData",localPlayer,localPlayer,1,efID,true) elseif character == 2 then triggerServerEvent("setData",localPlayer,localPlayer,2,efID,true) elseif character == 3 then triggerServerEvent("setData",localPlayer,localPlayer,3,efID,true) end --end end end) end) GUEditor = { button = {}, window = {}, staticimage = {} } GUEditor.window[1] = guiCreateWindow(0, 0, 1360, 758, "", false) guiWindowSetSizable(GUEditor.window[1], false) guiSetAlpha(GUEditor.window[1], 1.00) GUEditor.button[1] = guiCreateButton(29, 623, 378, 51, "Create", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[1], "NormalTextColour", "FFAAAAAA") GUEditor.button[7] = guiCreateButton(29, 623, 378, 51, "Use", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[7], "NormalTextColour", "FFAAAAAA") GUEditor.button[2] = guiCreateButton(29, 687, 378, 51, "Delete", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[2], "NormalTextColour", "FFAAAAAA") GUEditor.button[3] = guiCreateButton(478, 623, 378, 51, "Create", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[3], "NormalTextColour", "FFAAAAAA") GUEditor.button[8] = guiCreateButton(29, 623, 378, 51, "Use", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[8], "NormalTextColour", "FFAAAAAA") GUEditor.button[4] = guiCreateButton(478, 687, 378, 51, "Delete", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[4], "NormalTextColour", "FFAAAAAA") GUEditor.button[5] = guiCreateButton(930, 623, 378, 51, "Create", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[5], "NormalTextColour", "FFAAAAAA") GUEditor.button[9] = guiCreateButton(29, 623, 378, 51, "Use", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[9], "NormalTextColour", "FFAAAAAA") GUEditor.button[6] = guiCreateButton(930, 687, 378, 51, "Delete", false, GUEditor.window[1]) guiSetProperty(GUEditor.button[6], "NormalTextColour", "FFAAAAAA") ------------ ^^ Gui Stuff ^^ ------------ addEventHandler("onClientResourceStart",root,function() guiSetVisible(GUEditor.window[1],false) end) addEvent("checkStats",true) addEventHandler("checkStats",root,function(account,p1Registered,p2Registered,p3Registered,p1Skin,p2Skin,p3Skin) showCursor(true) guiSetVisible(GUEditor.window[1],true) if p1Registered == true then GUEditor.staticimage[1] = guiCreateStaticImage(29, 30, 378, 583, "/Images/Skins/Skin_"..tostring(p1Skin)..".png", false, GUEditor.window[1]) guiSetVisible(GUEditor.button[1],false) guiSetVisible(GUEditor.button[2],true) guiSetVisible(GUEditor.button[7],true) else GUEditor.staticimage[1] = guiCreateStaticImage(29, 30, 378, 583, "/Images/Skins/Skin_0.png", false, GUEditor.window[1]) guiSetVisible(GUEditor.button[1],true) guiSetVisible(GUEditor.button[2],false) guiSetVisible(GUEditor.button[7],false) end if p2Registered == true then GUEditor.staticimage[2] = guiCreateStaticImage(29, 30, 378, 583, "/Images/Skins/Skin_"..tostring(p2Skin)..".png", false, GUEditor.window[1]) guiSetVisible(GUEditor.button[3],false) guiSetVisible(GUEditor.button[4],true) guiSetVisible(GUEditor.button[8],true) else GUEditor.staticimage[2] = guiCreateStaticImage(29, 30, 378, 583, "/Images/Skins/Skin_0.png", false, GUEditor.window[1]) guiSetVisible(GUEditor.button[3],true) guiSetVisible(GUEditor.button[4],false) guiSetVisible(GUEditor.button[8],false) end if p3Registered == true then GUEditor.staticimage[3] = guiCreateStaticImage(29, 30, 378, 583, "/Images/Skins/Skin_"..tostring(p3Skin)..".png", false, GUEditor.window[1]) guiSetVisible(GUEditor.button[5],false) guiSetVisible(GUEditor.button[6],true) guiSetVisible(GUEditor.button[9],true) else GUEditor.staticimage[3] = guiCreateStaticImage(29, 30, 378, 583, "/Images/Skins/Skin_0.png", false, GUEditor.window[1]) guiSetVisible(GUEditor.button[5],true) guiSetVisible(GUEditor.button[6],false) guiSetVisible(GUEditor.button[9],false) end end) addEventHandler("onClientGUIClick",root,function() if source == GUEditor.button[1] then guiSetVisible(GUEditor.window[1],false) triggerEvent("createCharacter",localPlayer,1) elseif source == GUEditor.button[2] then triggerServerEvent("deleteCharacter",localPlayer,localPlayer,1) triggerServerEvent("checkPlayer",localPlayer,localPlayer) elseif source == GUEditor.button[3] then guiSetVisible(GUEditor.window[1],false) triggerEvent("createCharacter",localPlayer,2) elseif source == GUEditor.button[4] then triggerServerEvent("deleteCharacter",localPlayer,localPlayer,2) triggerServerEvent("checkPlayer",localPlayer,localPlayer) elseif source == GUEditor.button[5] then guiSetVisible(GUEditor.window[1],false) triggerEvent("createCharacter",localPlayer,3) elseif source == GUEditor.button[6] then triggerServerEvent("deleteCharacter",localPlayer,localPlayer,3) triggerServerEvent("checkPlayer",localPlayer,localPlayer) elseif source == GUEditor.button[7] then elseif source == GUEditor.button[8] then elseif source == GUEditor.button[9] then end end) serverside - local root = getRootElement() addEventHandler("onPlayerLogin",root,function() local account = getPlayerAccount(source) local p1Registered = getAccountData(account,"p1Registered") local p2Registered = getAccountData(account,"p2Registered") local p3Registered = getAccountData(account,"p3Registered") local p1Skin = getAccountData(account,"p1Skin") local p2Skin = getAccountData(account,"p2Skin") local p3Skin = getAccountData(account,"p3Skin") triggerClientEvent(source,"checkStats",source,account,p1Registered,p2Registered,p2Registered,p3Registered,p1Skin,p2Skin,p3Skin) end) addEvent("checkPlayer",true) addEventHandler("checkPlayer",root,function(player) local account = getPlayerAccount(player) local p1Registered = getAccountData(account,"p1Registered") local p2Registered = getAccountData(account,"p2Registered") local p3Registered = getAccountData(account,"p3Registered") local p1Skin = getAccountData(account,"p1Skin") local p2Skin = getAccountData(account,"p2Skin") local p3Skin = getAccountData(account,"p3Skin") triggerClientEvent(player,"checkStats",player,account,p1Registered,p2Registered,p2Registered,p3Registered,p1Skin,p2Skin,p3Skin) end) addEvent("setData",true) addEventHandler("setData",root,function(player,profile,skinID,registered) local account = getPlayerAccount(player) if profile == 1 then setAccountData(account,"p1Registered",registered) setAccountData(account,"p1Skin",skinID) elseif profile == 2 then setAccountData(account,"p2Registered",registered) setAccountData(account,"p2Skin",skinID) elseif profile == 3 then setAccountData(account,"p3Registered",registered) setAccountData(account,"p3Skin",skinID) end end) addEvent("deleteCharacter",true) addEventHandler("deleteCharacter",root,function(player,profile) local account = getPlayerAccount(player) if profile == 1 then setAccountData(account,"p1Registered",false) elseif profile == 2 then setAccountData(account,"p2Registered",false) elseif profile == 3 then setAccountData(account,"p3Registered",false) end end) skins.json - [[{"id":0,"gender":"Male","name":"Carl Johnson"},{"id":1,"gender":"Male","name":"Truth"},{"id":2,"gender":"Male","name":"Maccer"},{"id":3,"gender":"Male","name":"Andre"},{"id":4,"gender":"Male","name":"Barry Thorne (Skinny)"},{"id":5,"gender":"Male","name":"Barry Thorne (Big)"},{"id":6,"gender":"Male","name":"Emmet"},{"id":7,"gender":"Male","name":"Jacob"},{"id":8,"gender":"Male","name":"Janitor"},{"id":9,"gender":"Female","name":"Normal Ped"},{"id":10,"gender":"Female","name":"Old Woman"},{"id":11,"gender":"Female","name":"Casino Croupier"},{"id":12,"gender":"Female","name":"Rich Woman"},{"id":13,"gender":"Female","name":"Street Girl"},{"id":14,"gender":"Male","name":"Normal Ped"},{"id":15,"gender":"Male","name":"Mr. Whittaker"},{"id":16,"gender":"Male","name":"Airport Ground Worker"},{"id":17,"gender":"Male","name":"Business Man"},{"id":18,"gender":"Male","name":"Beach Visitor"},{"id":19,"gender":"Male","name":"DJ"},{"id":20,"gender":"Male","name":"Rich Guy"},{"id":21,"gender":"Male","name":"Normal Ped"},{"id":22,"gender":"Male","name":"Normal Ped"},{"id":23,"gender":"Male","name":"BMX-er"},{"id":24,"gender":"Male","name":"Madd Dogg Bodyguard"},{"id":25,"gender":"Male","name":"Madd Dogg Bodyguard"},{"id":26,"gender":"Male","name":"Backpacker"},{"id":27,"gender":"Male","name":"Construction Worker"},{"id":28,"gender":"Male","name":"Drug Dealer"},{"id":29,"gender":"Male","name":"Drug Dealer"},{"id":30,"gender":"Male","name":"Drug Dealer"},{"id":31,"gender":"Female","name":"Farm-Town inhabitant"},{"id":32,"gender":"Male","name":"Farm-Town inhabitant"},{"id":33,"gender":"Male","name":"Farm-Town inhabitant"},{"id":34,"gender":"Male","name":"Farm-Town inhabitant"},{"id":35,"gender":"Male","name":"Gardener"},{"id":36,"gender":"Male","name":"Golfer"},{"id":37,"gender":"Male","name":"Golfer"},{"id":38,"gender":"Male","name":"Normal Ped"},{"id":39,"gender":"Female","name":"Normal Ped"},{"id":40,"gender":"Female","name":"Normal Ped"},{"id":41,"gender":"Female","name":"Normal Ped"},{"id":42,"gender":"Male","name":"Jethro"},{"id":43,"gender":"Male","name":"Porn Producer"},{"id":44,"gender":"Male","name":"Normal Ped"},{"id":45,"gender":"Male","name":"Normal Ped"},{"id":46,"gender":"Male","name":"Normal Ped"},{"id":47,"gender":"Male","name":"Normal Ped"},{"id":48,"gender":"Male","name":"Normal Ped"},{"id":49,"gender":"Male","name":"Snakehead"},{"id":50,"gender":"Male","name":"Mechanic"},{"id":51,"gender":"Male","name":"Mountain Biker"},{"id":52,"gender":"Male","name":"Mountain Biker"},{"id":53,"gender":"Female","name":"Normal Ped"},{"id":54,"gender":"Female","name":"Normal Ped"},{"id":55,"gender":"Female","name":"Normal Ped"},{"id":56,"gender":"Female","name":"Normal Ped"},{"id":57,"gender":"Male","name":"Oriental Ped"},{"id":58,"gender":"Male","name":"Oriental Ped"},{"id":59,"gender":"Male","name":"Normal Ped"},{"id":60,"gender":"Male","name":"Normal Ped"},{"id":61,"gender":"Male","name":"Pilot"},{"id":62,"gender":"Male","name":"Colonel Fuhrberger"},{"id":63,"gender":"Female","name":"Prostitute"},{"id":64,"gender":"Female","name":"Prostitute"},{"id":65,"gender":"Female","name":"Kendl Johnson"},{"id":66,"gender":"Male","name":"Pool Player"},{"id":67,"gender":"Male","name":"Pool Player"},{"id":68,"gender":"Male","name":"Priest \/ Preacher"},{"id":69,"gender":"Female","name":"Normal Ped"},{"id":70,"gender":"Male","name":"Scientist"},{"id":71,"gender":"Male","name":"Security Guard"},{"id":72,"gender":"Male","name":"Hippy"},{"id":73,"gender":"Male","name":"Hippy"},{"id":74,"gender":"Unknown","name":"Unknown"},{"id":75,"gender":"Female","name":"Prostitute"},{"id":76,"gender":"Female","name":"Stewardess"},{"id":77,"gender":"Female","name":"Homeless"},{"id":78,"gender":"Male","name":"Homeless"},{"id":79,"gender":"Male","name":"Homeless"},{"id":80,"gender":"Male","name":"Boxer"},{"id":81,"gender":"Male","name":"Boxer"},{"id":82,"gender":"Male","name":"Black Elvis"},{"id":83,"gender":"Male","name":"White Elvis"},{"id":84,"gender":"Male","name":"Blue Elvis"},{"id":85,"gender":"Female","name":"Prostitute"},{"id":86,"gender":"Male","name":"Ryder (With Mask)"},{"id":87,"gender":"Female","name":"Stripper"},{"id":88,"gender":"Female","name":"Normal Ped"},{"id":89,"gender":"Female","name":"Normal Ped"},{"id":90,"gender":"Female","name":"Jogger"},{"id":91,"gender":"Female","name":"Rich Woman"},{"id":92,"gender":"Female","name":"Rollerskater"},{"id":93,"gender":"Female","name":"Normal Ped"},{"id":94,"gender":"Male","name":"Normal Ped"},{"id":95,"gender":"Male","name":"Normal Ped"},{"id":96,"gender":"Male","name":"Jogger"},{"id":97,"gender":"Male","name":"Lifeguard"},{"id":98,"gender":"Male","name":"Normal Ped"},{"id":99,"gender":"Male","name":"Rollerskater"},{"id":100,"gender":"Male","name":"Biker"},{"id":101,"gender":"Male","name":"Normal Ped"},{"id":102,"gender":"Male","name":"Balla"},{"id":103,"gender":"Male","name":"Balla"},{"id":104,"gender":"Male","name":"Balla"},{"id":105,"gender":"Male","name":"Grove Street Families"},{"id":106,"gender":"Male","name":"Grove Street Families"},{"id":107,"gender":"Male","name":"Grove Street Families"},{"id":108,"gender":"Male","name":"Los Santos Vagos"},{"id":109,"gender":"Male","name":"Los Santos Vagos"},{"id":110,"gender":"Male","name":"Los Santos Vagos"},{"id":111,"gender":"Male","name":"The Russian Mafia"},{"id":112,"gender":"Male","name":"The Russian Mafia"},{"id":113,"gender":"Male","name":"The Russian Mafia"},{"id":114,"gender":"Male","name":"Varios Los Aztecas"},{"id":115,"gender":"Male","name":"Varios Los Aztecas"},{"id":116,"gender":"Male","name":"Varios Los Aztecas"},{"id":117,"gender":"Male","name":"Triad"},{"id":118,"gender":"Male","name":"Triad"},{"id":119,"gender":"Male","name":"Johhny Sindacco"},{"id":120,"gender":"Male","name":"Triad Boss"},{"id":121,"gender":"Male","name":"Da Nang Boy"},{"id":122,"gender":"Male","name":"Da Nang Boy"},{"id":123,"gender":"Male","name":"Da Nang Boy"},{"id":124,"gender":"Male","name":"The Mafia"},{"id":125,"gender":"Male","name":"The Mafia"},{"id":126,"gender":"Male","name":"The Mafia"},{"id":127,"gender":"Male","name":"The Mafia"},{"id":128,"gender":"Male","name":"Farm Inhabitant"},{"id":129,"gender":"Female","name":"Farm Inhabitant"},{"id":130,"gender":"Female","name":"Farm Inhabitant"},{"id":131,"gender":"Female","name":"Farm Inhabitant"},{"id":132,"gender":"Male","name":"Farm Inhabitant"},{"id":133,"gender":"Male","name":"Farm Inhabitant"},{"id":134,"gender":"Male","name":"Homeless"},{"id":135,"gender":"Male","name":"Homeless"},{"id":136,"gender":"Male","name":"Normal Ped"},{"id":137,"gender":"Male","name":"Homeless"},{"id":138,"gender":"Female","name":"Beach Visitor"},{"id":139,"gender":"Female","name":"Beach Visitor"},{"id":140,"gender":"Female","name":"Beach Visitor"},{"id":141,"gender":"Female","name":"Business Woman"},{"id":142,"gender":"Male","name":"Taxi Driver"},{"id":143,"gender":"Male","name":"Crack Maker"},{"id":144,"gender":"Male","name":"Crack Maker"},{"id":145,"gender":"Female","name":"Crack Maker"},{"id":146,"gender":"Male","name":"Crack Maker"},{"id":147,"gender":"Male","name":"Business Man"},{"id":148,"gender":"Female","name":"Business Woman"},{"id":149,"gender":"Male","name":"Big Smoke (Armor)"},{"id":150,"gender":"Female","name":"Business Woman"},{"id":151,"gender":"Female","name":"Normal Ped"},{"id":152,"gender":"Female","name":"Prostitute"},{"id":153,"gender":"Male","name":"Construction Worker"},{"id":154,"gender":"Male","name":"Beach Visitor"},{"id":155,"gender":"Male","name":"Stacked Pizza Worker"},{"id":156,"gender":"Male","name":"Barber"},{"id":157,"gender":"Female","name":"Hillbilly"},{"id":158,"gender":"Male","name":"Farmer"},{"id":159,"gender":"Male","name":"Hillbilly"},{"id":160,"gender":"Male","name":"Hillbilly"},{"id":161,"gender":"Male","name":"Farmer"},{"id":162,"gender":"Male","name":"Hillbilly"},{"id":163,"gender":"Male","name":"Black Bouncer"},{"id":164,"gender":"Male","name":"White Bouncer"},{"id":165,"gender":"Male","name":"White MIB Agent"},{"id":166,"gender":"Male","name":"Black MIB Agent"},{"id":167,"gender":"Male","name":"Cluckin' Bell Worker"},{"id":168,"gender":"Male","name":"Hotdog Vendor"},{"id":169,"gender":"Male","name":"Normal Ped"},{"id":170,"gender":"Male","name":"Normal Ped"},{"id":171,"gender":"Male","name":"Blackjack Dealer"},{"id":172,"gender":"Female","name":"Casino Croupier"},{"id":173,"gender":"Male","name":"San Fierro Rifa"},{"id":174,"gender":"Male","name":"San Fierro Rifa"},{"id":175,"gender":"Male","name":"San Fierro Rifa"},{"id":176,"gender":"Male","name":"Barber"},{"id":177,"gender":"Male","name":"Barber"},{"id":178,"gender":"Female","name":"Whore"},{"id":179,"gender":"Male","name":"Ammunation Salesman"},{"id":180,"gender":"Male","name":"Tatto Artist"},{"id":181,"gender":"Male","name":"Punk"},{"id":182,"gender":"Male","name":"Cab Driver"},{"id":183,"gender":"Male","name":"Normal Ped"},{"id":184,"gender":"Male","name":"Normal Ped"},{"id":185,"gender":"Male","name":"Normal Ped"},{"id":186,"gender":"Male","name":"Normal Ped"},{"id":187,"gender":"Male","name":"Business Man"},{"id":188,"gender":"Male","name":"Normal Ped"},{"id":189,"gender":"Male","name":"Valet"},{"id":190,"gender":"Female","name":"Barbara Schternvart"},{"id":191,"gender":"Female","name":"Helena Wankstein"},{"id":192,"gender":"Female","name":"Michelle Cannes"},{"id":193,"gender":"Female","name":"Katie Zhan"},{"id":194,"gender":"Female","name":"Millie Perkins"},{"id":195,"gender":"Female","name":"Denise Robinson"},{"id":196,"gender":"Female","name":"Farm-Town inhabitant"},{"id":197,"gender":"Female","name":"Hillbilly"},{"id":198,"gender":"Female","name":"Farm-Town inhabitant"},{"id":199,"gender":"Female","name":"Farm-Town inhabitant"},{"id":200,"gender":"Male","name":"Hillbilly"},{"id":201,"gender":"Female","name":"Farmer"},{"id":202,"gender":"Male","name":"Farmer"},{"id":203,"gender":"Male","name":"Karate Teacher"},{"id":204,"gender":"Male","name":"Karate Teacher"},{"id":205,"gender":"Female","name":"Burger Shot Cashier"},{"id":206,"gender":"Male","name":"Cab Driver"},{"id":207,"gender":"Female","name":"Prostitute"},{"id":208,"gender":"Male","name":"Suzie"},{"id":209,"gender":"Male","name":"Noodle Stand Vendor"},{"id":210,"gender":"Male","name":"Boating School Instructor"},{"id":211,"gender":"Female","name":"Clothes Shop Staff"},{"id":212,"gender":"Male","name":"Homeless"},{"id":213,"gender":"Male","name":"Weird Old Man"},{"id":214,"gender":"Female","name":"Waitress"},{"id":215,"gender":"Female","name":"Normal Ped"},{"id":216,"gender":"Female","name":"Normal Ped"},{"id":217,"gender":"Female","name":"Clothes Shop Staff"},{"id":218,"gender":"Female","name":"Normal Ped"},{"id":219,"gender":"Female","name":"Rich Woman"},{"id":220,"gender":"Male","name":"Cab Driver"},{"id":221,"gender":"Male","name":"Normal Ped"},{"id":222,"gender":"Male","name":"Normal Ped"},{"id":223,"gender":"Male","name":"Normal Ped"},{"id":224,"gender":"Female","name":"Normal Ped"},{"id":225,"gender":"Female","name":"Normal Ped"},{"id":226,"gender":"Female","name":"Normal Ped"},{"id":227,"gender":"Male","name":"Business Man"},{"id":228,"gender":"Male","name":"Normal Ped"},{"id":229,"gender":"Male","name":"Normal Ped"},{"id":230,"gender":"Male","name":"Homeless"},{"id":231,"gender":"Female","name":"Normal Ped"},{"id":232,"gender":"Female","name":"Normal Ped"},{"id":233,"gender":"Female","name":"Normal Ped"},{"id":234,"gender":"Male","name":"Cab Driver"},{"id":235,"gender":"Male","name":"Normal Ped"},{"id":236,"gender":"Male","name":"Normal Ped"},{"id":237,"gender":"Female","name":"Prostitute"},{"id":238,"gender":"Female","name":"Prostitute"},{"id":239,"gender":"Male","name":"Homeless"},{"id":240,"gender":"Male","name":"The D.A."},{"id":241,"gender":"Male","name":"Afro-American"},{"id":242,"gender":"Male","name":"Mexican"},{"id":243,"gender":"Female","name":"Prostitute"},{"id":244,"gender":"Female","name":"Stripper"},{"id":245,"gender":"Female","name":"Prostitute"},{"id":246,"gender":"Female","name":"Stripper"},{"id":247,"gender":"Male","name":"Biker"},{"id":248,"gender":"Male","name":"Biker"},{"id":249,"gender":"Male","name":"Pimp"},{"id":250,"gender":"Male","name":"Normal Ped"},{"id":251,"gender":"Female","name":"Lifeguard"},{"id":252,"gender":"Male","name":"Naked Valet"},{"id":253,"gender":"Male","name":"Bus Driver"},{"id":254,"gender":"Male","name":"Biker Drug Dealer"},{"id":255,"gender":"Male","name":"Chauffeur"},{"id":256,"gender":"Female","name":"Stripper"},{"id":257,"gender":"Female","name":"Stripper"},{"id":258,"gender":"Male","name":"Heckler"},{"id":259,"gender":"Male","name":"Heckler"},{"id":260,"gender":"Male","name":"Construction Worker"},{"id":261,"gender":"Male","name":"Cab Driver"},{"id":262,"gender":"Male","name":"Cab Driver"},{"id":263,"gender":"Female","name":"Normal Ped"},{"id":264,"gender":"Male","name":"Clown"},{"id":265,"gender":"Male","name":"Officer Frank Tenpenny"},{"id":266,"gender":"Male","name":"Officer Eddie Pulaski"},{"id":267,"gender":"Male","name":"Officer Jimmy Hernandez"},{"id":268,"gender":"Male","name":"Dwayne"},{"id":269,"gender":"Male","name":"Melvin Harris (Big Smoke)"},{"id":270,"gender":"Male","name":"Sean Johnson (Sweet)"},{"id":271,"gender":"Male","name":"Lance Wilson (Ryder)"},{"id":272,"gender":"Male","name":"Mafia Boss"},{"id":273,"gender":"Male","name":"T-Bone Mendez"},{"id":274,"gender":"Male","name":"Paramedic"},{"id":275,"gender":"Male","name":"Paramedic"},{"id":276,"gender":"Male","name":"Paramedic"},{"id":277,"gender":"Male","name":"Firefighter"},{"id":278,"gender":"Male","name":"Firefighter"},{"id":279,"gender":"Male","name":"Firefighter"},{"id":280,"gender":"Male","name":"LSPD Officer"},{"id":281,"gender":"Male","name":"SFPD Officer"},{"id":282,"gender":"Male","name":"LVPD Officer"},{"id":283,"gender":"Male","name":"County Sheriff"},{"id":284,"gender":"Male","name":"LSPD Bike Cop"},{"id":285,"gender":"Male","name":"S.W.A.T."},{"id":286,"gender":"Male","name":"Federal Agent"},{"id":287,"gender":"Male","name":"Army"},{"id":288,"gender":"Male","name":"Desert Sheriff"},{"id":289,"gender":"Male","name":"Zero"},{"id":290,"gender":"Male","name":"Ken Rosenberg"},{"id":291,"gender":"Male","name":"Kent Paul"},{"id":292,"gender":"Male","name":"Cesar Vialpando"},{"id":293,"gender":"Male","name":"Jeffery Martin"},{"id":294,"gender":"Male","name":"Woozie"},{"id":295,"gender":"MAle","name":"Michael Toreno"},{"id":296,"gender":"Male","name":"Jizzy B."},{"id":297,"gender":"Male","name":"Madd Dogg"},{"id":298,"gender":"Female","name":"Catalina"},{"id":299,"gender":"Male","name":"Claude Speed"}]] Edited January 2, 2017 by shaio Link to comment
Simple0x47 Posted January 3, 2017 Share Posted January 3, 2017 Tell us what happens exactly and when, to get a general idea of the error is happening. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now