Jump to content

shaio

Members
  • Posts

    117
  • Joined

  • Last visited

1 Follower

Details

  • Gang
    Grove

Recent Profile Visitors

1,286 profile views

shaio's Achievements

Sucka

Sucka (13/54)

6

Reputation

  1. shaio

    Need Some Help

    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"}]]
  2. Just turn teams == true to teams == false It will then use the ACL name tags. Say your acl name is VIP, then it will display VIP on top of the player. Adding teams was just meant to make the script flexible.
  3. Use this server.lua instead, it's less code. -------- Serverside -------- local root = getRootElement() -- Configuration teams = true -- Turning this to false will make the text acl group names. Turning it to true will use team names. teamColor = true --[[ If teams are on and this is false the tags will be black. If teams are off and this is off, you will use acl colors in the ranks table. If this is on and teams are off, you will use the players team color but with the acl tag.]] ranks = { -- Do not add a console rank it might screw things up.. {id = "Everyone",r = 255,g = 255,b = 255}, -- < You need this rank or else the tag will display as false. I've made it display "Player". {id = "Moderator",r = 0,g = 255,b = 0}, {id = "SuperModerator",r = 0,g = 255,b = 255}, {id = "Admin",r = 0,g = 0,b = 255} } -- setTimer(function() for _,plr in pairs(getElementsByType("player")) do if teams == true then local team = getTeamName(getPlayerTeam(plr)) local r,g,b = getTeamColor(getPlayerTeam(plr)) if team then setElementData(plr,"text",team) if teamColor == true then setElementData(plr,"r",r) setElementData(plr,"g",g) setElementData(plr,"b",b) else setElementData(plr,"r",0) setElementData(plr,"g",0) setElementData(plr,"b",0) end end else local acc = getAccountName(getPlayerAccount(plr)) if not isGuestAccount(getPlayerAccount(plr)) then for _,rank in pairs(ranks) do if (isObjectInACLGroup("user."..acc,aclGetGroup(rank.id))) then if teamColor == true then local r,g,b = getTeamColor(getPlayerTeam(plr)) setElementData(plr,"r",r) setElementData(plr,"g",g) setElementData(plr,"b",b) else setElementData(plr,"r",rank.r) setElementData(plr,"g",rank.g) setElementData(plr,"b",rank.b) end if rank.id == "Everyone" then setElementData(plr,"text","Player") else setElementData(plr,"text",rank.id) end end end end end end end,1000,0) ----------------------------
  4. Okay this script is tested and fully functional, almost fully customizable as well. Your tag will not display for you, but it will for other players. Best of luck to you. I hope this is what you were looking for. If there is anything else you want added, let me know. server.lua - -------- Serverside -------- local root = getRootElement() -- Configuration teams = false -- Turning this to false will make the text acl group names. Turning it to true will use team names. teamColor = true --[[ If teams are on and this is false the tags will be black. If teams are off and this is off, you will use acl colors in the ranks table. If this is on and teams are off, you will use the players team color but with the acl tag.]] ranks = { -- Do not add a console rank it might screw things up.. {id = "Everyone",r = 255,g = 255,b = 255}, -- < You need this rank or else the tag will display as false. I've made it display "Player". {id = "Moderator",r = 0,g = 255,b = 0}, {id = "SuperModerator",r = 0,g = 255,b = 255}, {id = "Admin",r = 0,g = 0,b = 255} } -- addEventHandler("onResourceStart",root,function() for _,plr in pairs(getElementsByType("player")) do if teams == true then local team = getTeamName(getPlayerTeam(plr)) local r,g,b = getTeamColor(getPlayerTeam(plr)) if team then setElementData(plr,"text",team) if teamColor == true then setElementData(plr,"r",r) setElementData(plr,"g",g) setElementData(plr,"b",b) else setElementData(plr,"r",0) setElementData(plr,"g",0) setElementData(plr,"b",0) end end else local acc = getAccountName(getPlayerAccount(plr)) if not isGuestAccount(getPlayerAccount(plr)) then for _,rank in pairs(ranks) do if (isObjectInACLGroup("user."..acc,aclGetGroup(rank.id))) then if teamColor == true then local r,g,b = getTeamColor(getPlayerTeam(plr)) setElementData(plr,"r",r) setElementData(plr,"g",g) setElementData(plr,"b",b) else setElementData(plr,"r",rank.r) setElementData(plr,"g",rank.g) setElementData(plr,"b",rank.b) end if rank.id == "Everyone" then setElementData(plr,"text","Player") else setElementData(plr,"text",rank.id) end end end end end end end) addEventHandler("onPlayerLogin",root,function() if teams == true then local team = getTeamName(getPlayerTeam(source)) local r,g,b = getTeamColor(getPlayerTeam(source)) if team then setElementData(source,"text",team) if teamColor == true then setElementData(source,"r",r) setElementData(source,"g",g) setElementData(source,"b",b) else setElementData(source,"r",0) setElementData(source,"g",0) setElementData(source,"b",0) end end else local acc = getAccountName(getPlayerAccount(source)) if not isGuestAccount(getPlayerAccount(source)) then for _,rank in pairs(ranks) do if (isObjectInACLGroup("user."..acc,aclGetGroup(rank.id))) then if teamColor == true then local r,g,b = getTeamColor(getPlayerTeam(source)) setElementData(source,"r",r) setElementData(source,"g",g) setElementData(source,"b",b) else setElementData(source,"r",rank.r) setElementData(source,"g",rank.g) setElementData(source,"b",rank.b) end if rank.id == "Everyone" then setElementData(source,"text","Player") else setElementData(source,"text",rank.id) end end end end end end) ---------------------------- client.lua - -------- Clientside -------- local root = getRootElement() local localPlayer = getLocalPlayer() local height = 1.2 -- You can change this to say how high you want it above the player. function dxDrawTextOnElement(TheElement,text,height,distance,R,G,B,alpha,size,font,checkBuildings,checkVehicles,checkPeds,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center") end end end end addEventHandler("onClientRender",root,function() for _,plr in pairs(getElementsByType("player")) do if plr ~= localPlayer then local r,g,b = getElementData(plr,"r"),getElementData(plr,"g"),getElementData(plr,"b") dxDrawTextOnElement(plr,tostring(getElementData(plr,"text")),height,30,r,g,b,255,1.5,"arial") end end end) ----------------------------
  5. I know my script doesn't work, I've been working on it, I have never tested it so I didn't expect it to work. The next code I upload will be fully customizable and it will work. Thank you for your patience.
  6. This is if u want to use team colors instead of custom ones. local r,g,b = getTeamColor(getTeamFromName(team)) if team then dxDrawTextOnElement(localPlayer,team,1,20,r,g,b,255,1,"arial")
  7. Try this instead, less buggy, uses less ram, and uses element data. Figured it would be just what you're looking for. -------- Serverside -------- local root = getRootElement() -- Configuration teams = true -- if you change this to false or anything else then you will use acl groups ranks = { {name = "VIP"} } -- addEventHandler("onPlayerLogin",root,function() local teamName = getTeamName(getPlayerTeam(source)) setAccountData(getPlayerAccount(source),"team",teamName) local acc = getAccountName(getPlayerAccount(source)) for _,rank in pairs(ranks) do if not isGuestAccount(getPlayerAccount(source)) then if (isObjectInACLGroup("user."..acc,aclGetGroup(rank.name))) then setAccountData(getPlayerAccount(source),"acl",rank.name) end end end end) ---------------------------- -------- Clientside -------- local root = getRootElement() addEventHandler("onClientRender",root,function() if teams == true then local team = getElementData(localPlayer,"team") if team then dxDrawTextOnElement(localPlayer,team,1,20,0,0,255,255,1,"arial") end else local acc = getAccountName(getPlayerAccount(localPlayer)) local rank = getAccountData(getPlayerAccount(localPlayer),"acl") if not isGuestAccount(getPlayerAccount(localPlayer)) then if rank then if (isObjectInACLGroup("user."..acc,aclGetGroup(rank)) then dxDrawTextOnElement(localPlayer,rank,1,20,0,0,255,255,1,"arial") end end end end end) ----------------------------
  8. This is very bad, you're running a loop for every pixel that is rendered.. That would cause major lag issues especially if you have quite a bit of players on the server. This is a solution however it may not work, run this clientside. local root = getRootElement() local localPlayer = getLocalPlayer() local players = getElementsByType("player") -- Configuration local teams = true -- if you change this to false or anything else then you will use acl groups local moderator = "Mod" local superModerator = "SMod" -- These are just display names, you can change these to whatever you want. local admin = "OP" local console = "Owner" -- setTimer(function() for _,p in pairs(players) do local teamName = getTeamName(getPlayerTeam(p)) setElementData(p,"team",teamName) end end,1000,0) addEventHandler("onClientRender",root,function() if teams == true then local team = getElementData(localPlayer,"team") dxDrawTextOnElement(localPlayer,team,1,20,0,0,255,255,1,"arial") else local acc = getAccountName(getPlayerAccount(localPlayer)) if not isGuestAccount(getPlayerAccount(localPlayer)) then if (isObjectInACLGroup("user."..acc,aclGetGroup("Moderator"))) then dxDrawTextOnElement(localPlayer,moderator,1,20,0,0,255,255,1,"arial") elseif (isObjectInACLGroup("user."..acc,aclGetGroup("SuperModerator"))) then dxDrawTextOnElement(localPlayer,superModerator,1,20,0,0,255,255,1,"arial") elseif (isObjectInACLGroup("user."..acc,aclGetGroup("Admin"))) then dxDrawTextOnElement(localPlayer,admin,1,20,0,0,255,255,1,"arial") elseif (isObjectInACLGroup("user."..acc,aclGetGroup("Console"))) then dxDrawTextOnElement(localPlayer,console,1,20,0,0,255,255,1,"arial") end end end end)
  9. How would this change anything? I'd be running two extra event's and server side that I don't even have to. triggerEvent works, and it defines the element you want to trigger the event on.. It's meant for local events. Meaning on server side triggerEvent will only trigger a server event, and on client side triggerEvent will only trigger a client event. So long as the event is defined. triggerEvent is working, but only for 1 client. Would I need to run triggerServerEvent and then triggerClientEvent just to trigger it for the other player?
  10. shaio

    Cross GUI

    so instead of specifying player at the start, trigger the event with the element as root and then verify the player with if root == player then?
  11. shaio

    Cross GUI

    I want to know how to have a button on one client that when clicked will create a WINDOW in another client. Trigger event is suppose to do that since it allows you to set the element the event is triggered for, but it's not working. I need more help with this.
  12. I'm trying to get a player from a gridlist, and then trigger an event for that player when that player is selected. It will trigger it for localPlayer, but not for the other player. Here is my full script. Errors start on line 126 -------------------------- Configuration -------------------------- key = "O" ------------------------------------------------------------------- local root = getRootElement() local localPlayer = getLocalPlayer() GUIEditor = { tab = {}, label = {}, tabpanel = {}, edit = {}, gridlist = {}, column = {}, window = {}, button = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(1041, 235, 309, 501, "Phone", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 10, 291, 482, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Contacts", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(0, 0, 291, 401, false, GUIEditor.tab[1]) GUIEditor.column[1] = guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.button[1] = guiCreateButton(0, 411, 145, 37, "Call", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(145, 411, 145, 37, "Message", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.tab[2] = guiCreateTab("Messages", GUIEditor.tabpanel[1]) GUIEditor.gridlist[2] = guiCreateGridList(0, 0, 291, 365, false, GUIEditor.tab[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Messages", 0.9) GUIEditor.button[3] = guiCreateButton(0, 419, 291, 34, "Delete", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(0, 375, 145, 34, "Reply", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(145, 375, 145, 34, "Forward", false, GUIEditor.tab[2]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.tab[3] = guiCreateTab("Calls", GUIEditor.tabpanel[1]) GUIEditor.button[6] = guiCreateButton(0, 420, 142, 34, "Call Back", false, GUIEditor.tab[3]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.button[7] = guiCreateButton(142, 420, 149, 34, "Message", false, GUIEditor.tab[3]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.gridlist[3] = guiCreateGridList(0, 0, 291, 410, false, GUIEditor.tab[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Calls", 0.9) GUIEditor.window[2] = guiCreateWindow(432, 235, 496, 430, "Messaging - Reply", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.label[1] = guiCreateLabel(10, 20, 476, 29, "Messaging:", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.memo[1] = guiCreateMemo(9, 49, 477, 152, "", false, GUIEditor.window[2]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.memo[2] = guiCreateMemo(9, 211, 477, 152, "", false, GUIEditor.window[2]) guiMemoSetReadOnly(GUIEditor.memo[2], true) GUIEditor.button[8] = guiCreateButton(10, 375, 238, 45, "Send", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFAAAAAA") GUIEditor.button[9] = guiCreateButton(248, 375, 238, 45, "Close", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFAAAAAA") GUIEditor.window[3] = guiCreateWindow(432, 235, 496, 430, "Messaging - New", false) guiWindowSetSizable(GUIEditor.window[3], false) GUIEditor.label[2] = guiCreateLabel(10, 19, 66, 28, "Send To: ", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.edit[1] = guiCreateEdit(76, 19, 410, 28, "", false, GUIEditor.window[3]) GUIEditor.memo[3] = guiCreateMemo(9, 47, 477, 323, "", false, GUIEditor.window[3]) GUIEditor.button[10] = guiCreateButton(9, 380, 239, 40, "Send", false, GUIEditor.window[3]) guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFAAAAAA") GUIEditor.button[11] = guiCreateButton(247, 380, 239, 40, "Discard", false, GUIEditor.window[3]) guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFAAAAAA") GUIEditor.window[4] = guiCreateWindow(784, 14, 257, 122, "Call", false) guiWindowSetSizable(GUIEditor.window[4], false) GUIEditor.label[3] = guiCreateLabel(0, 19, 257, 26, "Active", false, GUIEditor.window[4]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 55, 227, 15) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "bottom") GUIEditor.button[12] = guiCreateButton(9, 54, 120, 57, "Mute", false, GUIEditor.window[4]) guiSetProperty(GUIEditor.button[12], "NormalTextColour", "FFAAAAAA") GUIEditor.button[13] = guiCreateButton(129, 54, 118, 57, "End Call", false, GUIEditor.window[4]) guiSetProperty(GUIEditor.button[13], "NormalTextColour", "FFAAAAAA") addEventHandler("onClientResourceStart",root,function() guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],false) guiSetVisible(GUIEditor.window[4],false) showCursor(false) end) function showGui() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1],true) for i,plr in pairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,GUIEditor.column[1],getPlayerName(plr),false,false) end showCursor(true) else guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiGridListClear(GUIEditor.gridlist[1]) end end bindKey(key,"down",showGui) addEvent("showCall",true) addEventHandler("showCall",root,function(callType,r,g,b) guiSetVisible(GUIEditor.window[4],true) guiSetText(GUIEditor.label[3],callType) guiLabelSetColor(GUIEditor.label[3],r,g,b) end) addEvent("endCall",true) addEventHandler("endCall",root,function() setTimer(function() guiSetVisible(GUIEditor.window[4],false) end,3000,1) end) addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then local player = getPlayerFromName(guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1)) triggerEvent("showCall",player,"Answer...",0,255,0) triggerEvent("showCall",localPlayer,"Calling...",0,255,255) setElementData(localPlayer,"call",getPlayerName(player)) elseif souce == GUIEditor.button[2] then elseif souce == GUIEditor.button[3] then elseif souce == GUIEditor.button[4] then elseif souce == GUIEditor.button[5] then elseif souce == GUIEditor.button[6] then elseif souce == GUIEditor.button[7] then elseif souce == GUIEditor.button[8] then elseif souce == GUIEditor.button[9] then elseif souce == GUIEditor.button[10] then elseif souce == GUIEditor.button[11] then elseif souce == GUIEditor.button[12] then elseif source == GUIEditor.button[13] then local player = getPlayerFromName(getElementData(localPlayer,"call")) triggerEvent("showCall",player,"Call Ended...",255,0,0) triggerEvent("showCall",localPlayer,"Call Ended...",255,0,0) triggerEvent("endCall",player) triggerEvent("endCall",localPlayer) end end)
  13. shaio

    IRC Commands

    Debug strings did not work so I used ircSay instead. I had to set the permission to 0 for the command to even show up. And it says, 1, 2, 4, shay successfully added to Moderator! And it did work. Here is the code I used. addIRCCommandHandler("!staff",function(server,channel,user,command,account,group) ircSay(channel,"1") if account and group then ircSay(channel,"2") if isObjectInACLGroup("user."..account,aclGetGroup(group)) then ircSay(channel,"3") aclGroupRemoveObject(aclGetGroup(group),"user."..account) ircSay(channel,account.." has been successfully removed from "..group.."!") outputChatBox("#FFFF00* #FF008F[#FFFFFFIRC#FF008F] #FFFFFF"..ircGetUserNick(user).."#FFFFFF has removed "..account.." from "..group.."!",getRootElement(),255,0,0,true) else ircSay(channel,"4") aclGroupAddObject(aclGetGroup(group),"user."..account) outputChatBox("#FFFF00* #FF008F[#FFFFFFIRC#FF008F] #FFFFFF"..ircGetUserNick(user).."#FFFFFF has added "..account.." to "..group.."!",getRootElement(),255,0,0,true) ircSay(channel,account.." has been successfully added to "..group.."!") end else ircSay(channel,"5") ircSay(channel,"Incorrect Syntax! !addstaff <playerName> <aclGroup>") end end)
  14. shaio

    Cross GUI

    Could you make a simple script as an example? Like make 1 gui with a button and then when u click the button make it open a gui window on someone elses screen?
  15. I've made a new vehicle spawner that works as a personal vehicle system and includes a lock, engine, lights, advanced lock, and eject system. The exported function will spawn a vehicle in the correct interior, dimension, location, and rotation of the player from any other resource in the server. exports.vehiclespawner:spawnVehicle(player,vehicleID) Link to resource
×
×
  • Create New...