25.08.2017, 16:00
Hello, I have some problems with my textdraw
What have i done now:
First problem is :
When I write cmd:jobs orders I disappear my minimap and top bar with weapons and money ,i need to press "ESC" for appear again..
What have i done now:
Код:
CMD:jobs(playerid, params []) { SelectTextDraw(playerid, 0x00FF00FF); TogglePlayerControllable(playerid,0); TextDrawShowForPlayer(playerid, BoxPrincipal[playerid]); TextDrawShowForPlayer(playerid, BaraVerde1[playerid]); TextDrawShowForPlayer(playerid, BaraVerde2[playerid]); TextDrawShowForPlayer(playerid, BaraVerde3[playerid]); TextDrawShowForPlayer(playerid, BaraVerde4[playerid]); TextDrawShowForPlayer(playerid, ImgPizzaBoy[playerid]); TextDrawShowForPlayer(playerid, Titlu1[playerid]); TextDrawShowForPlayer(playerid, JobPizzaBoy[playerid]); TextDrawShowForPlayer(playerid, ImgJobGunoier[playerid]); TextDrawShowForPlayer(playerid, JobGunoier[playerid]); TextDrawShowForPlayer(playerid, ImgJobFermier[playerid]); TextDrawShowForPlayer(playerid, JobFerminer[playerid]); TextDrawShowForPlayer(playerid, ImgJobTrucker[playerid]); TextDrawShowForPlayer(playerid, JobTrucker[playerid]); TextDrawShowForPlayer(playerid, ImgJobCurier[playerid]); TextDrawShowForPlayer(playerid, JobCurier[playerid]); TextDrawShowForPlayer(playerid, ImgJobPescar[playerid]); TextDrawShowForPlayer(playerid, JobPescar[playerid]); TextDrawShowForPlayer(playerid, ImgJobMiner[playerid]); TextDrawShowForPlayer(playerid, JobMiner[playerid]); TextDrawShowForPlayer(playerid, ImgPubStradala[playerid]); TextDrawShowForPlayer(playerid, JobPubStradala[playerid]); TextDrawShowForPlayer(playerid, ImgPadurar[playerid]); TextDrawShowForPlayer(playerid, JobPadurar[playerid]); TextDrawShowForPlayer(playerid, ImgJobConstructor[playerid]); TextDrawShowForPlayer(playerid, JobConstructor[playerid]); TextDrawShowForPlayer(playerid, ImgJobBucatar[playerid]); TextDrawShowForPlayer(playerid, JobBucatar[playerid]); TextDrawShowForPlayer(playerid, ImgGunoierPlaja[playerid]); TextDrawShowForPlayer(playerid, JobGunoierPlaja[playerid]); TextDrawShowForPlayer(playerid, Titlu3[playerid]); TextDrawShowForPlayer(playerid, ButonCancel[playerid]); return 1; } //-- TEXTDRAW'S //========================================================================// //== [TEXTDRAW JOBURI] ==// //========================================================================// BoxPrincipal[playerid] = TextDrawCreate(574.189941, 100.060012, "usebox"); TextDrawLetterSize(BoxPrincipal[playerid], 0.000000, 32.678890); TextDrawTextSize(BoxPrincipal[playerid], 58.952415, 0.000000); TextDrawAlignment(BoxPrincipal[playerid], 1); TextDrawColor(BoxPrincipal[playerid], 0); TextDrawUseBox(BoxPrincipal[playerid], true); TextDrawBoxColor(BoxPrincipal[playerid], 102); TextDrawSetShadow(BoxPrincipal[playerid], 0); TextDrawSetOutline(BoxPrincipal[playerid], 0); TextDrawFont(BoxPrincipal[playerid], 0); TextDrawSetPreviewModel(BoxPrincipal[playerid], 1582); TextDrawSetPreviewRot(BoxPrincipal[playerid], -25.000000, 0.000000, 0.000000, 1.000000); BaraVerde1[playerid] = TextDrawCreate(60.952468, 98.560066, "LD_SPAC:white"); TextDrawLetterSize(BaraVerde1[playerid], 0.000000, 0.000000); TextDrawTextSize(BaraVerde1[playerid], 511.999969, 0.853338); TextDrawAlignment(BaraVerde1[playerid], 3); TextDrawColor(BaraVerde1[playerid], 16711935); TextDrawSetShadow(BaraVerde1[playerid], 10); TextDrawSetOutline(BaraVerde1[playerid], 0); TextDrawBackgroundColor(BaraVerde1[playerid], 255); TextDrawFont(BaraVerde1[playerid], 4); BaraVerde2[playerid] = TextDrawCreate(572.952392, 98.986663, "LD_SPAC:white"); TextDrawLetterSize(BaraVerde2[playerid], 0.000000, 0.000000); TextDrawTextSize(BaraVerde2[playerid], -0.761901, 296.959991); TextDrawAlignment(BaraVerde2[playerid], 1); TextDrawColor(BaraVerde2[playerid], 16711935); TextDrawSetShadow(BaraVerde2[playerid], 0); TextDrawSetOutline(BaraVerde2[playerid], 0); TextDrawFont(BaraVerde2[playerid], 4); BaraVerde3[playerid] = TextDrawCreate(60.571434, 98.559997, "LD_SPAC:white"); TextDrawLetterSize(BaraVerde3[playerid], 0.000000, 0.000000); TextDrawTextSize(BaraVerde3[playerid], 0.761906, 296.960021); TextDrawAlignment(BaraVerde3[playerid], 1); TextDrawColor(BaraVerde3[playerid], 16711935); TextDrawSetShadow(BaraVerde3[playerid], 0); TextDrawSetOutline(BaraVerde3[playerid], 0); TextDrawFont(BaraVerde3[playerid], 4); BaraVerde4[playerid] = TextDrawCreate(572.190490, 395.946655, "LD_SPAC:white"); TextDrawLetterSize(BaraVerde4[playerid], 0.000000, 0.000000); TextDrawTextSize(BaraVerde4[playerid], -511.619079, -0.853302); TextDrawAlignment(BaraVerde4[playerid], 1); TextDrawColor(BaraVerde4[playerid], 16711935); TextDrawSetShadow(BaraVerde4[playerid], 0); TextDrawSetOutline(BaraVerde4[playerid], 0); TextDrawFont(BaraVerde4[playerid], 4); ImgPizzaBoy[playerid] = TextDrawCreate(136.761886, 160.426620, "New Textdraw"); TextDrawLetterSize(ImgPizzaBoy[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgPizzaBoy[playerid], -63.619071, 70.826797); TextDrawAlignment(ImgPizzaBoy[playerid], 1); TextDrawColor(ImgPizzaBoy[playerid], -1); TextDrawUseBox(ImgPizzaBoy[playerid], true); TextDrawBoxColor(ImgPizzaBoy[playerid], 0); TextDrawSetShadow(ImgPizzaBoy[playerid], 0); TextDrawSetOutline(ImgPizzaBoy[playerid], 1); TextDrawBackgroundColor(ImgPizzaBoy[playerid], 51); TextDrawFont(ImgPizzaBoy[playerid], 5); TextDrawSetProportional(ImgPizzaBoy[playerid], 1); TextDrawSetPreviewModel(ImgPizzaBoy[playerid], 2814); TextDrawSetPreviewRot(ImgPizzaBoy[playerid], -45.000000, 0.000000, -90.000000, 1.000000); Titlu1[playerid] = TextDrawCreate(259.428558, 101.546653, "Lista"); TextDrawLetterSize(Titlu1[playerid], 0.621428, 2.623997); TextDrawTextSize(Titlu1[playerid], 19.047576, -174.933334); TextDrawAlignment(Titlu1[playerid], 1); TextDrawColor(Titlu1[playerid], -1); TextDrawUseBox(Titlu1[playerid], true); TextDrawBoxColor(Titlu1[playerid], 0); TextDrawSetShadow(Titlu1[playerid], -1); TextDrawSetOutline(Titlu1[playerid], 0); TextDrawBackgroundColor(Titlu1[playerid], 51); TextDrawFont(Titlu1[playerid], 0); TextDrawSetProportional(Titlu1[playerid], 1); JobPizzaBoy[playerid] = TextDrawCreate(82.666687, 143.359909, "PizzaBoy"); TextDrawLetterSize(JobPizzaBoy[playerid], 0.288095, 1.493333); TextDrawAlignment(JobPizzaBoy[playerid], 1); TextDrawColor(JobPizzaBoy[playerid], -1); TextDrawUseBox(JobPizzaBoy[playerid], true); TextDrawBoxColor(JobPizzaBoy[playerid], 0); TextDrawSetShadow(JobPizzaBoy[playerid], 0); TextDrawSetOutline(JobPizzaBoy[playerid], -1); TextDrawBackgroundColor(JobPizzaBoy[playerid], 51); TextDrawFont(JobPizzaBoy[playerid], 1); TextDrawSetProportional(JobPizzaBoy[playerid], 1); TextDrawSetSelectable(JobPizzaBoy[playerid], true); Titlu2[playerid] = TextDrawCreate(296.761749, 100.693298, "Joburi"); TextDrawLetterSize(Titlu2[playerid], 0.474761, 2.666666); TextDrawAlignment(Titlu2[playerid], 1); TextDrawColor(Titlu2[playerid], -1); TextDrawUseBox(Titlu2[playerid], true); TextDrawBoxColor(Titlu2[playerid], 0); TextDrawSetShadow(Titlu2[playerid], 0); TextDrawSetOutline(Titlu2[playerid], 0); TextDrawBackgroundColor(Titlu2[playerid], 51); TextDrawFont(Titlu2[playerid], 0); TextDrawSetProportional(Titlu2[playerid], 1); ImgJobGunoier[playerid] = TextDrawCreate(155.809478, 159.146697, "New Textdraw"); TextDrawLetterSize(ImgJobGunoier[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobGunoier[playerid], 59.047622, 72.533378); TextDrawAlignment(ImgJobGunoier[playerid], 1); TextDrawColor(ImgJobGunoier[playerid], -1); TextDrawUseBox(ImgJobGunoier[playerid], true); TextDrawBoxColor(ImgJobGunoier[playerid], 0); TextDrawSetShadow(ImgJobGunoier[playerid], 0); TextDrawSetOutline(ImgJobGunoier[playerid], 1); TextDrawBackgroundColor(ImgJobGunoier[playerid], 51); TextDrawFont(ImgJobGunoier[playerid], 5); TextDrawSetProportional(ImgJobGunoier[playerid], 1); TextDrawSetPreviewModel(ImgJobGunoier[playerid], 1265); TextDrawSetPreviewRot(ImgJobGunoier[playerid], -45.000000, 0.000000, 0.000000, 1.000000); JobGunoier[playerid] = TextDrawCreate(162.666641, 142.506683, "Gunoier"); TextDrawLetterSize(JobGunoier[playerid], 0.280476, 1.792000); TextDrawAlignment(JobGunoier[playerid], 1); TextDrawColor(JobGunoier[playerid], -1); TextDrawUseBox(JobGunoier[playerid], true); TextDrawBoxColor(JobGunoier[playerid], 0); TextDrawSetShadow(JobGunoier[playerid], 0); TextDrawSetOutline(JobGunoier[playerid], -1); TextDrawBackgroundColor(JobGunoier[playerid], 51); TextDrawFont(JobGunoier[playerid], 1); TextDrawSetProportional(JobGunoier[playerid], 1); TextDrawSetSelectable(JobGunoier[playerid], true); ImgJobFermier[playerid] = TextDrawCreate(233.904724, 158.719924, "New Textdraw"); TextDrawLetterSize(ImgJobFermier[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobFermier[playerid], 62.857131, 70.400016); TextDrawAlignment(ImgJobFermier[playerid], 1); TextDrawColor(ImgJobFermier[playerid], -1); TextDrawUseBox(ImgJobFermier[playerid], true); TextDrawBoxColor(ImgJobFermier[playerid], 0); TextDrawSetShadow(ImgJobFermier[playerid], 0); TextDrawSetOutline(ImgJobFermier[playerid], 1); TextDrawBackgroundColor(ImgJobFermier[playerid], 51); TextDrawFont(ImgJobFermier[playerid], 5); TextDrawSetProportional(ImgJobFermier[playerid], 1); TextDrawSetPreviewModel(ImgJobFermier[playerid], 19833); TextDrawSetPreviewRot(ImgJobFermier[playerid], -25.000000, 0.000000, 180.000000, 1.000000); JobFerminer[playerid] = TextDrawCreate(240.761947, 145.920013, "Fermier"); TextDrawLetterSize(JobFerminer[playerid], 0.358571, 1.365333); TextDrawAlignment(JobFerminer[playerid], 1); TextDrawColor(JobFerminer[playerid], -1); TextDrawSetShadow(JobFerminer[playerid], 0); TextDrawSetOutline(JobFerminer[playerid], -1); TextDrawBackgroundColor(JobFerminer[playerid], 51); TextDrawFont(JobFerminer[playerid], 1); TextDrawSetProportional(JobFerminer[playerid], 1); TextDrawSetSelectable(JobFerminer[playerid], true); ImgJobTrucker[playerid] = TextDrawCreate(313.142913, 159.146774, "New Textdraw"); TextDrawLetterSize(ImgJobTrucker[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobTrucker[playerid], 72.761924, 74.240005); TextDrawAlignment(ImgJobTrucker[playerid], 1); TextDrawColor(ImgJobTrucker[playerid], -1); TextDrawUseBox(ImgJobTrucker[playerid], true); TextDrawBoxColor(ImgJobTrucker[playerid], 0); TextDrawSetShadow(ImgJobTrucker[playerid], 0); TextDrawSetOutline(ImgJobTrucker[playerid], 1); TextDrawBackgroundColor(ImgJobTrucker[playerid], 51); TextDrawFont(ImgJobTrucker[playerid], 5); TextDrawSetProportional(ImgJobTrucker[playerid], 1); TextDrawSetPreviewModel(ImgJobTrucker[playerid], 403); TextDrawSetPreviewRot(ImgJobTrucker[playerid], -20.000000, -10.000000, -20.000000, 1.000000); JobTrucker[playerid] = TextDrawCreate(326.857055, 143.786773, "Trucker"); TextDrawLetterSize(JobTrucker[playerid], 0.320476, 1.429333); TextDrawAlignment(JobTrucker[playerid], 1); TextDrawColor(JobTrucker[playerid], -1); TextDrawSetShadow(JobTrucker[playerid], 0); TextDrawSetOutline(JobTrucker[playerid], -1); TextDrawBackgroundColor(JobTrucker[playerid], 51); TextDrawFont(JobTrucker[playerid], 1); TextDrawSetProportional(JobTrucker[playerid], 1); TextDrawSetSelectable(JobTrucker[playerid], true); ImgJobCurier[playerid] = TextDrawCreate(402.285705, 158.720169, "New Textdraw"); TextDrawLetterSize(ImgJobCurier[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobCurier[playerid], 78.095245, 74.666671); TextDrawAlignment(ImgJobCurier[playerid], 1); TextDrawColor(ImgJobCurier[playerid], -1); TextDrawUseBox(ImgJobCurier[playerid], true); TextDrawBoxColor(ImgJobCurier[playerid], 0); TextDrawSetShadow(ImgJobCurier[playerid], 0); TextDrawSetOutline(ImgJobCurier[playerid], 1); TextDrawBackgroundColor(ImgJobCurier[playerid], 51); TextDrawFont(ImgJobCurier[playerid], 5); TextDrawSetProportional(ImgJobCurier[playerid], 1); TextDrawSetPreviewModel(ImgJobCurier[playerid], 413); TextDrawSetPreviewRot(ImgJobCurier[playerid], -15.000000, -10.000000, -20.000000, 1.000000); JobCurier[playerid] = TextDrawCreate(416.000030, 143.360000, "Curier"); TextDrawLetterSize(JobCurier[playerid], 0.370000, 1.472000); TextDrawAlignment(JobCurier[playerid], 1); TextDrawColor(JobCurier[playerid], -1); TextDrawSetShadow(JobCurier[playerid], 0); TextDrawSetOutline(JobCurier[playerid], -1); TextDrawBackgroundColor(JobCurier[playerid], 51); TextDrawFont(JobCurier[playerid], 1); TextDrawSetProportional(JobCurier[playerid], 1); TextDrawSetSelectable(JobCurier[playerid], true); ImgJobPescar[playerid] = TextDrawCreate(493.333007, 158.720092, "New Textdraw"); TextDrawLetterSize(ImgJobPescar[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobPescar[playerid], 66.666671, 72.533355); TextDrawAlignment(ImgJobPescar[playerid], 1); TextDrawColor(ImgJobPescar[playerid], -1); TextDrawUseBox(ImgJobPescar[playerid], true); TextDrawBoxColor(ImgJobPescar[playerid], 0); TextDrawSetShadow(ImgJobPescar[playerid], 0); TextDrawSetOutline(ImgJobPescar[playerid], 1); TextDrawBackgroundColor(ImgJobPescar[playerid], 51); TextDrawFont(ImgJobPescar[playerid], 5); TextDrawSetProportional(ImgJobPescar[playerid], 1); TextDrawSetPreviewModel(ImgJobPescar[playerid], 19630); TextDrawSetPreviewRot(ImgJobPescar[playerid], 0.000000, 10.000000, -145.000000, 1.000000); JobPescar[playerid] = TextDrawCreate(503.238098, 141.653350, "Pescar"); TextDrawLetterSize(JobPescar[playerid], 0.379523, 1.685333); TextDrawAlignment(JobPescar[playerid], 1); TextDrawColor(JobPescar[playerid], -1); TextDrawSetShadow(JobPescar[playerid], 0); TextDrawSetOutline(JobPescar[playerid], -2); TextDrawBackgroundColor(JobPescar[playerid], 51); TextDrawFont(JobPescar[playerid], 1); TextDrawSetProportional(JobPescar[playerid], 1); TextDrawSetSelectable(JobPescar[playerid], true); ImgJobMiner[playerid] = TextDrawCreate(72.381019, 268.373382, "New Textdraw"); TextDrawLetterSize(ImgJobMiner[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobMiner[playerid], 62.857147, 78.933349); TextDrawAlignment(ImgJobMiner[playerid], 1); TextDrawColor(ImgJobMiner[playerid], -1); TextDrawUseBox(ImgJobMiner[playerid], true); TextDrawBoxColor(ImgJobMiner[playerid], 0); TextDrawSetShadow(ImgJobMiner[playerid], 0); TextDrawSetOutline(ImgJobMiner[playerid], 1); TextDrawBackgroundColor(ImgJobMiner[playerid], 51); TextDrawFont(ImgJobMiner[playerid], 5); TextDrawSetProportional(ImgJobMiner[playerid], 1); TextDrawSetPreviewModel(ImgJobMiner[playerid], 2936); TextDrawSetPreviewRot(ImgJobMiner[playerid], 0.000000, 0.000000, 0.000000, 1.000000); JobMiner[playerid] = TextDrawCreate(88.000007, 251.306671, "Miner"); TextDrawLetterSize(JobMiner[playerid], 0.358571, 1.621333); TextDrawAlignment(JobMiner[playerid], 1); TextDrawColor(JobMiner[playerid], -1); TextDrawSetShadow(JobMiner[playerid], 0); TextDrawSetOutline(JobMiner[playerid], -1); TextDrawBackgroundColor(JobMiner[playerid], 51); TextDrawFont(JobMiner[playerid], 1); TextDrawSetProportional(JobMiner[playerid], 1); TextDrawSetSelectable(JobMiner[playerid], true); ImgPubStradala[playerid] = TextDrawCreate(153.523742, 267.520019, "New Textdraw"); TextDrawLetterSize(ImgPubStradala[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgPubStradala[playerid], 63.999988, 78.506683); TextDrawAlignment(ImgPubStradala[playerid], 1); TextDrawColor(ImgPubStradala[playerid], -1); TextDrawUseBox(ImgPubStradala[playerid], true); TextDrawBoxColor(ImgPubStradala[playerid], 0); TextDrawSetShadow(ImgPubStradala[playerid], 0); TextDrawSetOutline(ImgPubStradala[playerid], 1); TextDrawBackgroundColor(ImgPubStradala[playerid], 51); TextDrawFont(ImgPubStradala[playerid], 5); TextDrawSetProportional(ImgPubStradala[playerid], 1); TextDrawSetPreviewModel(ImgPubStradala[playerid], 476); TextDrawSetPreviewRot(ImgPubStradala[playerid], -20.000000, -10.000000, -25.000000, 1.000000); JobPubStradala[playerid] = TextDrawCreate(157.333389, 250.026672, "Publicitate Stradala"); TextDrawLetterSize(JobPubStradala[playerid], 0.192857, 1.792000); TextDrawAlignment(JobPubStradala[playerid], 1); TextDrawColor(JobPubStradala[playerid], -1); TextDrawSetShadow(JobPubStradala[playerid], 0); TextDrawSetOutline(JobPubStradala[playerid], -1); TextDrawBackgroundColor(JobPubStradala[playerid], 51); TextDrawFont(JobPubStradala[playerid], 1); TextDrawSetProportional(JobPubStradala[playerid], 1); TextDrawSetSelectable(JobPubStradala[playerid], true); ImgPadurar[playerid] = TextDrawCreate(235.047668, 267.520019, "New Textdraw"); TextDrawLetterSize(ImgPadurar[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgPadurar[playerid], 68.571434, 78.933357); TextDrawAlignment(ImgPadurar[playerid], 1); TextDrawColor(ImgPadurar[playerid], -1); TextDrawUseBox(ImgPadurar[playerid], true); TextDrawBoxColor(ImgPadurar[playerid], 0); TextDrawSetShadow(ImgPadurar[playerid], 0); TextDrawSetOutline(ImgPadurar[playerid], 1); TextDrawBackgroundColor(ImgPadurar[playerid], 51); TextDrawFont(ImgPadurar[playerid], 5); TextDrawSetProportional(ImgPadurar[playerid], 1); TextDrawSetPreviewModel(ImgPadurar[playerid], 832); TextDrawSetPreviewRot(ImgPadurar[playerid], 0.000000, 0.000000, -90.000000, 1.000000); JobPadurar[playerid] = TextDrawCreate(244.190490, 252.160003, "Padurar"); TextDrawLetterSize(JobPadurar[playerid], 0.413809, 1.386666); TextDrawAlignment(JobPadurar[playerid], 1); TextDrawColor(JobPadurar[playerid], -1); TextDrawSetShadow(JobPadurar[playerid], 0); TextDrawSetOutline(JobPadurar[playerid], -1); TextDrawBackgroundColor(JobPadurar[playerid], 51); TextDrawFont(JobPadurar[playerid], 1); TextDrawSetProportional(JobPadurar[playerid], 1); TextDrawSetSelectable(JobPadurar[playerid], true); ImgJobConstructor[playerid] = TextDrawCreate(315.809539, 266.240020, "New Textdraw"); TextDrawLetterSize(ImgJobConstructor[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobConstructor[playerid], 71.619079, 80.213317); TextDrawAlignment(ImgJobConstructor[playerid], 1); TextDrawColor(ImgJobConstructor[playerid], -1); TextDrawUseBox(ImgJobConstructor[playerid], true); TextDrawBoxColor(ImgJobConstructor[playerid], 0); TextDrawSetShadow(ImgJobConstructor[playerid], 0); TextDrawSetOutline(ImgJobConstructor[playerid], 1); TextDrawBackgroundColor(ImgJobConstructor[playerid], 51); TextDrawFont(ImgJobConstructor[playerid], 5); TextDrawSetProportional(ImgJobConstructor[playerid], 1); TextDrawSetPreviewModel(ImgJobConstructor[playerid], 19900); TextDrawSetPreviewRot(ImgJobConstructor[playerid], -25.000000, 0.000000, 45.000000, 1.000000); JobConstructor[playerid] = TextDrawCreate(331.047637, 251.306671, "Constructor"); TextDrawLetterSize(JobConstructor[playerid], 0.288095, 1.407999); TextDrawAlignment(JobConstructor[playerid], 1); TextDrawColor(JobConstructor[playerid], -1); TextDrawSetShadow(JobConstructor[playerid], 0); TextDrawSetOutline(JobConstructor[playerid], -1); TextDrawBackgroundColor(JobConstructor[playerid], 51); TextDrawFont(JobConstructor[playerid], 1); TextDrawSetProportional(JobConstructor[playerid], 1); TextDrawSetSelectable(JobConstructor[playerid], true); ImgJobBucatar[playerid] = TextDrawCreate(402.666656, 266.240051, "New Textdraw"); TextDrawLetterSize(ImgJobBucatar[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgJobBucatar[playerid], 74.285713, 81.066696); TextDrawAlignment(ImgJobBucatar[playerid], 1); TextDrawColor(ImgJobBucatar[playerid], -1); TextDrawUseBox(ImgJobBucatar[playerid], true); TextDrawBoxColor(ImgJobBucatar[playerid], 0); TextDrawSetShadow(ImgJobBucatar[playerid], 0); TextDrawSetOutline(ImgJobBucatar[playerid], 1); TextDrawBackgroundColor(ImgJobBucatar[playerid], 51); TextDrawFont(ImgJobBucatar[playerid], 5); TextDrawSetProportional(ImgJobBucatar[playerid], 1); TextDrawSetPreviewModel(ImgJobBucatar[playerid], 19581); TextDrawSetPreviewRot(ImgJobBucatar[playerid], -45.000000, 0.000000, 45.000000, 1.000000); JobBucatar[playerid] = TextDrawCreate(418.666656, 251.733337, "Bucatar"); TextDrawLetterSize(JobBucatar[playerid], 0.390952, 1.514666); TextDrawAlignment(JobBucatar[playerid], 1); TextDrawColor(JobBucatar[playerid], -1); TextDrawSetShadow(JobBucatar[playerid], 0); TextDrawSetOutline(JobBucatar[playerid], -1); TextDrawBackgroundColor(JobBucatar[playerid], 51); TextDrawFont(JobBucatar[playerid], 1); TextDrawSetProportional(JobBucatar[playerid], 1); TextDrawSetSelectable(JobBucatar[playerid], true); ImgGunoierPlaja[playerid] = TextDrawCreate(491.047637, 265.386688, "New Textdraw"); TextDrawLetterSize(ImgGunoierPlaja[playerid], 0.449999, 1.600000); TextDrawTextSize(ImgGunoierPlaja[playerid], 72.381088, 83.200119); TextDrawAlignment(ImgGunoierPlaja[playerid], 1); TextDrawColor(ImgGunoierPlaja[playerid], -1); TextDrawUseBox(ImgGunoierPlaja[playerid], true); TextDrawBoxColor(ImgGunoierPlaja[playerid], 0); TextDrawSetShadow(ImgGunoierPlaja[playerid], 0); TextDrawSetOutline(ImgGunoierPlaja[playerid], 1); TextDrawBackgroundColor(ImgGunoierPlaja[playerid], 51); TextDrawFont(ImgGunoierPlaja[playerid], 5); TextDrawSetProportional(ImgGunoierPlaja[playerid], 1); TextDrawSetPreviewModel(ImgGunoierPlaja[playerid], 11706); TextDrawSetPreviewRot(ImgGunoierPlaja[playerid], -25.000000, 0.000000, 45.000000, 1.000000); JobGunoierPlaja[playerid] = TextDrawCreate(500.571411, 246.613342, "Gunoier plaja"); TextDrawLetterSize(JobGunoierPlaja[playerid], 0.267904, 1.868800); TextDrawAlignment(JobGunoierPlaja[playerid], 1); TextDrawColor(JobGunoierPlaja[playerid], -1); TextDrawSetShadow(JobGunoierPlaja[playerid], 0); TextDrawSetOutline(JobGunoierPlaja[playerid], -1); TextDrawBackgroundColor(JobGunoierPlaja[playerid], 51); TextDrawFont(JobGunoierPlaja[playerid], 1); TextDrawSetProportional(JobGunoierPlaja[playerid], 1); TextDrawSetSelectable(JobGunoierPlaja[playerid], true); Titlu3[playerid] = TextDrawCreate(334.857177, 103.253341, "legale"); TextDrawLetterSize(Titlu3[playerid], 0.489238, 2.423466); TextDrawAlignment(Titlu3[playerid], 1); TextDrawColor(Titlu3[playerid], -1); TextDrawUseBox(Titlu3[playerid], true); TextDrawBoxColor(Titlu3[playerid], 0); TextDrawSetShadow(Titlu3[playerid], 0); TextDrawSetOutline(Titlu3[playerid], 1); TextDrawBackgroundColor(Titlu3[playerid], 51); TextDrawFont(Titlu3[playerid], 0); TextDrawSetProportional(Titlu3[playerid], 1); ButonCancel[playerid] = TextDrawCreate(297.142852, 372.480010, "Cancel"); TextDrawLetterSize(ButonCancel[playerid], 0.486189, 1.855999); TextDrawAlignment(ButonCancel[playerid], 1); TextDrawColor(ButonCancel[playerid], -1); TextDrawSetShadow(ButonCancel[playerid], 0); TextDrawSetOutline(ButonCancel[playerid], -1); TextDrawBackgroundColor(ButonCancel[playerid], 51); TextDrawFont(ButonCancel[playerid], 1); TextDrawSetProportional(ButonCancel[playerid], 1); TextDrawSetSelectable(ButonCancel[playerid], true); //========================================================================// //------------------------------------------------------------------------// ONPLAYERDISCONNECT //========================================================================// //== [TEXTDRAW JOBURI] ==// //========================================================================// TextDrawDestroy(BoxPrincipal[playerid]); TextDrawDestroy(BaraVerde1[playerid]); TextDrawDestroy(BaraVerde2[playerid]); TextDrawDestroy(BaraVerde3[playerid]); TextDrawDestroy(BaraVerde4[playerid]); TextDrawDestroy(ImgPizzaBoy[playerid]); TextDrawDestroy(Titlu1[playerid]); TextDrawDestroy(JobPizzaBoy[playerid]); TextDrawDestroy(ImgJobGunoier[playerid]); TextDrawDestroy(JobGunoier[playerid]); TextDrawDestroy(ImgJobFermier[playerid]); TextDrawDestroy(JobFerminer[playerid]); TextDrawDestroy(ImgJobTrucker[playerid]); TextDrawDestroy(JobTrucker[playerid]); TextDrawDestroy(ImgJobCurier[playerid]); TextDrawDestroy(JobCurier[playerid]); TextDrawDestroy(ImgJobPescar[playerid]); TextDrawDestroy(JobPescar[playerid]); TextDrawDestroy(ImgJobMiner[playerid]); TextDrawDestroy(JobMiner[playerid]); TextDrawDestroy(ImgPubStradala[playerid]); TextDrawDestroy(JobPubStradala[playerid]); TextDrawDestroy(ImgPadurar[playerid]); TextDrawDestroy(JobPadurar[playerid]); TextDrawDestroy(ImgJobConstructor[playerid]); TextDrawDestroy(JobConstructor[playerid]); TextDrawDestroy(ImgJobBucatar[playerid]); TextDrawDestroy(JobBucatar[playerid]); TextDrawDestroy(ImgGunoierPlaja[playerid]); TextDrawDestroy(JobGunoierPlaja[playerid]); TextDrawDestroy(Titlu3[playerid]); //========================================================================// //------------------------------------------------------------------------// ONPLAYERCLICKTEXTDRAW if(clickedid == JobPizzaBoy[playerid]) { new string[64]; format(string, sizeof(string), "Ti-am pus un checkpoint pe harta la jobul Pizza Boy, Distanta: %0.2fm.", GetPlayerDistanceFromPoint(playerid, 2102.5405,-1788.9784,13.5547)); SendClientMessage(playerid, -1, string); SetPlayerCheckpoint(playerid, 2102.5405,-1788.9784,13.5547, 5.0), CP[playerid] = 1; TogglePlayerControllable(playerid,1); TextDrawDestroy(BoxPrincipal[playerid]); TextDrawDestroy(BaraVerde1[playerid]); TextDrawDestroy(BaraVerde2[playerid]); TextDrawDestroy(BaraVerde3[playerid]); TextDrawDestroy(BaraVerde4[playerid]); TextDrawDestroy(ImgPizzaBoy[playerid]); TextDrawDestroy(Titlu1[playerid]); TextDrawDestroy(JobPizzaBoy[playerid]); TextDrawDestroy(ImgJobGunoier[playerid]); TextDrawDestroy(JobGunoier[playerid]); TextDrawDestroy(ImgJobFermier[playerid]); TextDrawDestroy(JobFerminer[playerid]); TextDrawDestroy(ImgJobTrucker[playerid]); TextDrawDestroy(JobTrucker[playerid]); TextDrawDestroy(ImgJobCurier[playerid]); TextDrawDestroy(JobCurier[playerid]); TextDrawDestroy(ImgJobPescar[playerid]); TextDrawDestroy(JobPescar[playerid]); TextDrawDestroy(ImgJobMiner[playerid]); TextDrawDestroy(JobMiner[playerid]); TextDrawDestroy(ImgPubStradala[playerid]); TextDrawDestroy(JobPubStradala[playerid]); TextDrawDestroy(ImgPadurar[playerid]); TextDrawDestroy(JobPadurar[playerid]); TextDrawDestroy(ImgJobConstructor[playerid]); TextDrawDestroy(JobConstructor[playerid]); TextDrawDestroy(ImgJobBucatar[playerid]); TextDrawDestroy(JobBucatar[playerid]); TextDrawDestroy(ImgGunoierPlaja[playerid]); TextDrawDestroy(JobGunoierPlaja[playerid]); TextDrawDestroy(Titlu3[playerid]); TextDrawDestroy(ButonCancel[playerid]); return 1; } if(clickedid == JobGunoier[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobFerminer[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobTrucker[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobCurier[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobPescar[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobMiner[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobPubStradala[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobPadurar[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobConstructor[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == JobBucatar[playerid]) { SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw."); return 1; } if(clickedid == ButonCancel[playerid]) { TextDrawDestroy(BoxPrincipal[playerid]); TextDrawDestroy(BaraVerde1[playerid]); TextDrawDestroy(BaraVerde2[playerid]); TextDrawDestroy(BaraVerde3[playerid]); TextDrawDestroy(BaraVerde4[playerid]); TextDrawDestroy(ImgPizzaBoy[playerid]); TextDrawDestroy(Titlu1[playerid]); TextDrawDestroy(JobPizzaBoy[playerid]); TextDrawDestroy(ImgJobGunoier[playerid]); TextDrawDestroy(JobGunoier[playerid]); TextDrawDestroy(ImgJobFermier[playerid]); TextDrawDestroy(JobFerminer[playerid]); TextDrawDestroy(ImgJobTrucker[playerid]); TextDrawDestroy(JobTrucker[playerid]); TextDrawDestroy(ImgJobCurier[playerid]); TextDrawDestroy(JobCurier[playerid]); TextDrawDestroy(ImgJobPescar[playerid]); TextDrawDestroy(JobPescar[playerid]); TextDrawDestroy(ImgJobMiner[playerid]); TextDrawDestroy(JobMiner[playerid]); TextDrawDestroy(ImgPubStradala[playerid]); TextDrawDestroy(JobPubStradala[playerid]); TextDrawDestroy(ImgPadurar[playerid]); TextDrawDestroy(JobPadurar[playerid]); TextDrawDestroy(ImgJobConstructor[playerid]); TextDrawDestroy(JobConstructor[playerid]); TextDrawDestroy(ImgJobBucatar[playerid]); TextDrawDestroy(JobBucatar[playerid]); TextDrawDestroy(ImgGunoierPlaja[playerid]); TextDrawDestroy(JobGunoierPlaja[playerid]); TextDrawDestroy(Titlu3[playerid]); TextDrawDestroy(ButonCancel[playerid]); return 1; }
When I write cmd:jobs orders I disappear my minimap and top bar with weapons and money ,i need to press "ESC" for appear again..