Leaderboard
Popular Content
Showing content with the highest reputation on 28/08/17 in all areas
-
3 points
-
You can't 'get' it ingame. Only 'set' it, which you can use in any other application. Clear?2 points
-
2 points
-
function teste() testestring = exports.mysql:_Query("SELECT * FROM characters JOIN users WHERE users.username = characters.username") if(testestring) then for i, string in ipairs(testestring) do iprint(testestring[i]) end end end addEventHandler("teste",getRootElement(),teste) Managed to figure it out, that will print all character data registered under that username thanks for helping me out1 point
-
1 point
-
I am working with SQL, so I am not sure if the mysql resource returns the same results. But if you use iprint, it will show you the table structure as well. See this example at this page: https://wiki.multitheftauto.com/wiki/Iprint Example results: (shows also tables inside tables) [2016-10-01 21:25:43] INFO: { elem:vehicle[Monster 3]2ED3EF60, elem:vehicle[Monster 3]2ED3F620, elem:vehicle[Banshee]2ED3F548, elem:vehicle[Banshee]2ED3F590, elem:vehicle[Bullet]2ED3F5D8, elem:vehicle[BMX]2ED3FA58, elem:vehicle[BMX]2ED3FE00, elem:vehicle[Sparrow]2ED3F788, elem:vehicle[Sanchez]2ED3F6B0, elem:vehicle[Sanchez]2ED3F8A8, elem:vehicle[Sanchez]2ED3FE48, elem:vehicle[Jetmax]2ED3FC98, elem:vehicle[Dinghy]2ED3FA10, elem:vehicle[Marquis]2ED3FB78, elem:vehicle[Bandito]2ED3FAA0, elem:vehicle[Beagle]2ED3F980, elem:vehicle[Buffalo]2ED3FDB8, elem:vehicle[Sabre]2ED3F6F8, elem:vehicle[Caddy]2ED3F7D0, elem:vehicle[Sparrow]2ED3F938, elem:vehicle[Sanchez]2ED3FED8, elem:vehicle[Sanchez]2ED3FCE0, elem:vehicle[Sanchez]2ED3F860, elem:vehicle[Monster 3]2ED3F8F0, elem:vehicle[Monster 3]2ED3FC08, elem:vehicle[Buffalo]2ED3F9C8, elem:vehicle[Bandito]2ED3FAE8, elem:vehicle[Caddy]2ED3FB30, elem:vehicle[Sabre]2ED3F668, elem:vehicle[Bullet]2ED3FBC0, elem:vehicle[Banshee]2ED3FF20, elem:vehicle[Banshee]2ED3F818, elem:vehicle[Monster 3]2ED3FC50, elem:vehicle[Monster 3]2ED3FD28, elem:vehicle[Buffalo]2ED3FD70, elem:vehicle[Bandito]2ED3FE90, elem:vehicle[Caddy]2ED3F740, elem:vehicle[Sabre]2ED405E0, elem:vehicle[Bullet]2ED406B8, elem:vehicle[Banshee]2ED40748, elem:vehicle[Banshee]2ED401F0, elem:vehicle[Sanchez]2ED40508, elem:vehicle[Sanchez]2ED401A8, elem:vehicle[Sanchez]2ED40040, elem:vehicle[Sparrow]2ED40118, elem:vehicle[Sanchez]2ED40238, elem:vehicle[Sanchez]2ED3FFB0, elem:vehicle[Sanchez]2ED40598, elem:vehicle[Monster 3]2ED40550, elem:vehicle[Monster 3]2ED40700, elem:vehicle[Buffalo]2ED40280, elem:vehicle[Bandito]2ED403A0, elem:vehicle[Caddy]2ED400D0, elem:vehicle[Sabre]2ED402C8, elem:vehicle[Bullet]2ED40160, elem:vehicle[Banshee]2ED40790, elem:vehicle[Banshee]2ED40628, elem:vehicle[Sparrow]2ED3FFF8 }1 point
-
1 point
-
اخي جرب غير لون الشات من اللوحة لانو اكواد صحيحة 100% وما فها اي خطأ + اذا ما زبط قللي بس الواضح انو ما في لون لشات هنا , يعني ما رح شكتب في الشات ابداً1 point
-
1 point
-
1 point
-
Where end You need 3 end in your code function toggleHatGUI() local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "VIP") ) then if vip==false then vip="No" end if guiGetVisible(VipHats) then guiSetVisible(VipHats, false) showCursor(false) elseif vip=="Yes" then guiSetVisible(VipHats, true) showCursor(true) end end end1 point
-
Intentá ahora, había un punto y coma de más (;) Ventana = guiCreateWindow(811, 397, 258, 400, "Planilla", false);guiSetVisible(Ventana, false) guiWindowSetSizable(Ventana, false) guiSetProperty(Ventana, "CaptionColour", "FF1FE9E2") Boton1 = guiCreateButton(33, 38, 84, 25, "Empresa:", false, Ventana); guiSetProperty(Boton1, "NormalTextColour", "FFFFFFFF") Boton2 = guiCreateButton(138, 38, 111, 25, "NOMBREEMPRESA", false, Ventana);guiSetProperty(Boton2, "NormalTextColour", "FF27F512") Boton3 = guiCreateButton(33, 91, 84, 25, "Chofer:", false, Ventana);guiSetProperty(Boton3, "NormalTextColour", "FFFFFFFF") Boton4 = guiCreateButton(138, 91, 111, 25, "Nombre:", false, Ventana);guiSetProperty(Boton4, "NormalTextColour", "FF27F512") Boton5 = guiCreateButton(33, 142, 84, 25, "Legajo:", false, Ventana);guiSetProperty(Boton5, "NormalTextColour", "FFFFFFFF") Boton6 = guiCreateButton(33, 196, 84, 25, "Interno:", false, Ventana);guiSetProperty(Boton6, "NormalTextColour", "FFFFFFFF") Boton7 = guiCreateButton(33, 249, 84, 25, "Generado:", false, Ventana);guiSetProperty(Boton7, "NormalTextColour", "FFFFFFFF") Boton8 = guiCreateButton(137, 142, 111, 25, "Legajo", false, Ventana);guiSetProperty(Boton8, "NormalTextColour", "FF27F512") Boton9 = guiCreateButton(137, 196, 111, 25, "INTERNO", false, Ventana);guiSetProperty(Boton9, "NormalTextColour", "FF27F512") Boton10 = guiCreateButton(137, 249, 111, 25, "PLATAGENERADA", false, Ventana);guiSetProperty(Boton10, "NormalTextColour", "FF27F512") Boton11 = guiCreateButton(30, 297, 218, 32, "Empezar a trabajar", false, Ventana);guiSetProperty(Boton11, "NormalTextColour", "FF22E7FF") Boton12 = guiCreateButton(33, 344, 84, 25, "Cerrar", false, Ventana);guiSetProperty(Boton12, "NormalTextColour", "FFFD2323") Ventana2 = guiCreateWindow(743, 302, 278, 609, "Planilla MOBSA", false);guiSetVisible(Ventana2, false);guiWindowSetSizable(Ventana2, false) Aboton = guiCreateButton(54, 37, 174, 33, "Seleccione un recorrido", false, Ventana2);guiSetProperty(Aboton, "NormalTextColour", "FF07CDF8") Aboton1 = guiCreateButton(20, 103, 100, 29, "Linea 58", false, Ventana2) Aboton2 = guiCreateButton(116, 7, 15, 12, "", false, Ventana2) Aboton3 = guiCreateButton(20, 142, 100, 29, "2a", false, Ventana2) Aboton4 = guiCreateButton(20, 181, 100, 29, "3a", false, Ventana2) Aboton5 = guiCreateButton(20, 220, 100, 29, "4", false, Ventana2) Aboton6 = guiCreateButton(20, 259, 100, 29, "5", false, Ventana2) Aboton7 = guiCreateButton(20, 298, 100, 29, "6", false, Ventana2) Aboton8 = guiCreateButton(20, 337, 100, 29, "7", false, Ventana2) Aboton9 = guiCreateButton(20, 376, 100, 29, "8", false, Ventana2) Aboton10 = guiCreateButton(20, 415, 100, 29, "9", false, Ventana2) Aboton11 = guiCreateButton(20, 454, 100, 29, "10", false, Ventana2) Aboton12 = guiCreateButton(20, 493, 100, 29, "11", false, Ventana2) Aboton13 = guiCreateButton(150, 541, 100, 29, "Cerrar", false, Ventana2);guiSetProperty(Aboton13, "NormalTextColour", "FFFB0202") Aboton14 = guiCreateButton(25, 541, 100, 29, "Volver", false, Ventana2);guiSetProperty(Aboton14, "NormalTextColour", "FF1FDF3F") Aboton15 = guiCreateButton(130, 103, 130, 29, "Terminal - Dorlingo", false, Ventana2) Aboton16 = guiCreateButton(130, 142, 130, 29, "2", false, Ventana2) Aboton17 = guiCreateButton(130, 181, 130, 29, "3b", false, Ventana2) Aboton18 = guiCreateButton(130, 220, 130, 29, "3b", false, Ventana2) Aboton19 = guiCreateButton(130, 259, 130, 29, "3b", false, Ventana2) Aboton20 = guiCreateButton(130, 298, 130, 29, "3b", false, Ventana2) Aboton21 = guiCreateButton(130, 337, 130, 29, "3b", false, Ventana2) Aboton22 = guiCreateButton(130, 376, 130, 29, "3b", false, Ventana2) Aboton23 = guiCreateButton(130, 415, 130, 29, "3b", false, Ventana2) Aboton24 = guiCreateButton(130, 454, 130, 29, "3b", false, Ventana2) Aboton25 = guiCreateButton(130, 493, 130, 29, "3b", false, Ventana2) addCommandHandler("p", function() local team = getPlayerTeam(localPlayer) if team then local teamName = getTeamName(team) if teamName == "MOBSA" then local getGui = guiGetVisible(Ventana) if not getGui then guiSetVisible(Ventana, true) guiSetText(Boton2, teamName) guiSetText(Boton4, getPlayerName(localPlayer)) showCursor(true) else guiSetVisible(Ventana, false) showCursor(false) print ("Tu trabajas de chofer actualmente") end else print ("Tu trabajas de chofer actualmente") end end end ) addEventHandler("onClientGUIClick", guiRoot, function() local getGui = guiGetVisible(Ventana) if source == Boton12 then -- botón cerrar if getGui then -- Si el elemento es visible entonces guiSetVisible(Ventana, false) -- Se cierra el elemento "Ventana" showCursor(false) -- Desaparece el cursor end elseif source == Boton11 then -- botón "Empezar a trabajar" if getGui then -- Si el elemento es visible entonces guiSetVisible(Ventana, false) -- Se cierra el elemento "Ventana" guiSetVisible(Ventana2, true) -- Se abre el elemento "Ventana2" end end end )1 point
-
تمت إزالة الردود السابقه , يرجي منكم عدم إعطاء صاحب الموضوع اي فنكشنات تتعلق في مايريد , لأنه قام بإنشاء هذا الموضوع من اجل الحصول علي السكربت جاهز وليس الفنكشنات1 point
-
Any news ? Discord invitation has expired.1 point
-
السلام عليكم ٠٠ نحن نقبل بطاقات شحن ليبيانا ل ليبيا الأسعار والخطط موجوده بالموقع #[ مـوقعـناَ ]1 point
-
Intentá así: Ventana = guiCreateWindow(811, 397, 258, 400, "Planilla", false);guiSetVisible(Ventana, false) guiWindowSetSizable(Ventana, false) guiSetProperty(Ventana, "CaptionColour", "FF1FE9E2") Boton1 = guiCreateButton(33, 38, 84, 25, "Empresa:", false, Ventana); guiSetProperty(Boton1, "NormalTextColour", "FFFFFFFF") Boton2 = guiCreateButton(138, 38, 111, 25, "NOMBREEMPRESA", false, Ventana);guiSetProperty(Boton2, "NormalTextColour", "FF27F512") Boton3 = guiCreateButton(33, 91, 84, 25, "Chofer:", false, Ventana);guiSetProperty(Boton3, "NormalTextColour", "FFFFFFFF") Boton4 = guiCreateButton(138, 91, 111, 25, "Nombre:", false, Ventana);guiSetProperty(Boton4, "NormalTextColour", "FF27F512") Boton5 = guiCreateButton(33, 142, 84, 25, "Legajo:", false, Ventana);guiSetProperty(Boton5, "NormalTextColour", "FFFFFFFF") Boton6 = guiCreateButton(33, 196, 84, 25, "Interno:", false, Ventana);guiSetProperty(Boton6, "NormalTextColour", "FFFFFFFF") Boton7 = guiCreateButton(33, 249, 84, 25, "Generado:", false, Ventana);guiSetProperty(Boton7, "NormalTextColour", "FFFFFFFF") Boton8 = guiCreateButton(137, 142, 111, 25, "Legajo", false, Ventana);guiSetProperty(Boton8, "NormalTextColour", "FF27F512") Boton9 = guiCreateButton(137, 196, 111, 25, "INTERNO", false, Ventana);guiSetProperty(Boton9, "NormalTextColour", "FF27F512") Boton10 = guiCreateButton(137, 249, 111, 25, "PLATAGENERADA", false, Ventana);guiSetProperty(Boton10, "NormalTextColour", "FF27F512") Boton11 = guiCreateButton(30, 297, 218, 32, "Empezar a trabajar", false, Ventana);guiSetProperty(Boton11, "NormalTextColour", "FF22E7FF") Boton12 = guiCreateButton(33, 344, 84, 25, "Cerrar", false, Ventana);guiSetProperty(Boton12, "NormalTextColour", "FFFD2323") Ventana2 = guiCreateWindow(743, 302, 278, 609, "Planilla MOBSA", false);;guiSetVisible(Ventana2, false);guiWindowSetSizable(Ventana2, false) Aboton = guiCreateButton(54, 37, 174, 33, "Seleccione un recorrido", false, Aboton);guiSetProperty(Aboton, "NormalTextColour", "FF07CDF8") Aboton1 = guiCreateButton(20, 103, 100, 29, "Linea 58", false, Ventana2) Aboton2 = guiCreateButton(116, 7, 15, 12, "", false, Ventana2) Aboton3 = guiCreateButton(20, 142, 100, 29, "2a", false, Ventana2) Aboton4 = guiCreateButton(20, 181, 100, 29, "3a", false, Ventana2) Aboton5 = guiCreateButton(20, 220, 100, 29, "4", false, Ventana2) Aboton6 = guiCreateButton(20, 259, 100, 29, "5", false, Ventana2) Aboton7 = guiCreateButton(20, 298, 100, 29, "6", false, Ventana2) Aboton8 = guiCreateButton(20, 337, 100, 29, "7", false, Ventana2) Aboton9 = guiCreateButton(20, 376, 100, 29, "8", false, Ventana2) Aboton10 = guiCreateButton(20, 415, 100, 29, "9", false, Ventana2) Aboton11 = guiCreateButton(20, 454, 100, 29, "10", false, Ventana2) Aboton12 = guiCreateButton(20, 493, 100, 29, "11", false, Ventana2) Aboton13 = guiCreateButton(150, 541, 100, 29, "Cerrar", false, Ventana2);guiSetProperty(Aboton13, "NormalTextColour", "FFFB0202") Aboton14 = guiCreateButton(25, 541, 100, 29, "Volver", false, Ventana2);guiSetProperty(Aboton14, "NormalTextColour", "FF1FDF3F") Aboton15 = guiCreateButton(130, 103, 130, 29, "Terminal - Dorlingo", false, Aboton15) Aboton16 = guiCreateButton(130, 142, 130, 29, "2", false, Ventana2) Aboton17 = guiCreateButton(130, 181, 130, 29, "3b", false, Ventana2) Aboton18 = guiCreateButton(130, 220, 130, 29, "3b", false, Ventana2) Aboton19 = guiCreateButton(130, 259, 130, 29, "3b", false, Ventana2) Aboton20 = guiCreateButton(130, 298, 130, 29, "3b", false, Ventana2) Aboton21 = guiCreateButton(130, 337, 130, 29, "3b", false, Ventana2) Aboton22 = guiCreateButton(130, 376, 130, 29, "3b", false, Ventana2) Aboton23 = guiCreateButton(130, 415, 130, 29, "3b", false, Ventana2) Aboton24 = guiCreateButton(130, 454, 130, 29, "3b", false, Ventana2) Aboton25 = guiCreateButton(130, 493, 130, 29, "3b", false, Ventana2) addCommandHandler("p", function() local team = getPlayerTeam(localPlayer) if team then local teamName = getTeamName(team) if teamName == "MOBSA" then local getGui = guiGetVisible(Ventana) if not getGui then guiSetVisible(Ventana, true) guiSetText(Boton2, teamName) guiSetText(Boton4, getPlayerName(localPlayer)) showCursor(true) else guiSetVisible(Ventana, false) showCursor(false) print ("Tu trabajas de chofer actualmente") end else print ("Tu trabajas de chofer actualmente") end end end ) addEventHandler("onClientGUIClick", guiRoot, function() local getGui = guiGetVisible(Ventana) if source == Boton12 then -- botón cerrar if getGui then -- Si el elemento es visible entonces guiSetVisible(Ventana, false) -- Se cierra el elemento "Ventana" showCursor(false) -- Desaparece el cursor end elseif source == Boton11 then -- botón "Empezar a trabajar" if getGui then -- Si el elemento es visible entonces guiSetVisible(Ventana, false) -- Se cierra el elemento "Ventana" guiSetVisible(Ventana2, true) -- Se abre el elemento "Ventana2" end end end )1 point
-
1 point
-
No, shutdown your server, that will definitely fix it. This is the scripting section!!!!! O.M.Cow1 point
-
Por padrão o MTA já respawna o jogador em lugares aleatórios pré-determinados, para mudar os spawnpoints ou adicionar novos, abra o arquivo broph.map localizado em: deathmatch\resources\[gamemodes]\[play]\play.zip e localize os spawnpoint. Você pode editar os que já existem ou adicionar novos, basta mudar as posições X, Y, Z e rotação. No meu servidor eu mudei os spawnpoints para o jogador nascer sempre em frente a algum hospital aleatório. Dai meus spawnpoints ficaram assim: <spawnpoint id="hospitalLS1" posX="2033.5" posY="-1404.5" posZ="17.3" rotation="180"></spawnpoint> <spawnpoint id="hospitalLS2" posX="1174.5" posY="-1323.4" posZ="14.8" rotation="270"></spawnpoint> <spawnpoint id="hospitalSF" posX="-2643.3" posY="634.2" posZ="14.5" rotation="180"></spawnpoint> <spawnpoint id="hospitalEQ" posX="-1514.8" posY="2522.3" posZ="55.9" rotation="0"></spawnpoint> <spawnpoint id="hospitalFC" posX="-316.13" posY="1055.85" posZ="19.75" rotation="0"></spawnpoint> <spawnpoint id="hospitalLV" posX="1607.46" posY="1821.3" posZ="10.83" rotation="0"></spawnpoint> Agora no caso das skins, creio que é mais fácil você simplesmente bloquear as skins que o jogador não pode usar. Assim, quando ele morrer e o sistema tentar colocar a skin bloqueada, o jogador não vai nascer com aquela skin e só vai nascer com alguma skin permitida. Exemplo de um script que não permite que o jogador use skins bloqueadas "cancelando" a troca de skins. function skin (old) if getElementType (source) == "player" then --Se o elemento que estiver trocando for um jogador, faz o seguinte: if getElementModel (source) == 288 then --ID da skin bloqueada. setTimer (setElementModel, 100, 1, source, old) --Precisa de um timer senão não funciona, coloca a skin que o jogador já tinha antes. elseif getElementModel (source) == 287 then --ID de outra skin bloqueada. setTimer (setElementModel, 100, 1, source, old) --Faz a mesma coisa. end --Se nenhuma skin bloqueada for atribuida ao jogador, ele vai nascer com ela normalmente. end end addEventHandler ("onElementModelChange", root, skin) --Faz isso em qualquer jogador que tentar mudar de skin.1 point
-
This is my server. The gui is made by dgs. ( I am bad in design sry)1 point
-
Hi community. I made my own jobs resource for my server but it has a problem. It works good but passing 5--10min its start it starts consuming about 50% CPU and all player ping gets to about 600ms and i have to restart it and returns all again happening. Codes are at the end of the post and i hope you can help me * I checked CPU consumption at server's web page * I checked ping at default admin panel of the server and at scoreboard * When the player get 600 ping then returns network trouble message and he has to reconnect. Codes: Server-side: ped = { } weapon = { } function getBlipAttachedTo( thePlayer ) local blips = getElementsByType( "blip" ) for k, theBlip in ipairs( blips ) do if getElementAttachedTo( theBlip ) == thePlayer then return theBlip end end return false end addEventHandler("onResourceStart", getRootElement(), function() ped["Staff"] = createPed(217, 853.7255859375, -2385.216796875, 12.906106948853, 0, false) setTimer( setElementHealth, 50, 0, ped["Staff"], 100 ) setTimer( setElementPosition, 50, 0, ped["Staff"], 853.7255859375, -2385.216796875, 12.906106948853 ) function job1(mouse, state, player) if(mouse == "left" and state == "down") then if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin"))) then r, g, b = getTeamColor(getTeamFromName("Staff")) triggerClientEvent(player, "PedClicked", getRootElement(), "Staff", "As a Staff Member you need to manage STORM:RPG Players: Attend to their problems/questions and solve the Bugs. You have to Punish the ones that dont follow the Rules!", r, g, b) else exports.ac_message:outputTopbar(player, 255, 0, 0, "Job: You cannot take this Job!") end end end addEventHandler("onElementClicked", ped["Staff"], job1) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Staff", 0xFF390874, 853.7255859375, -2385.216796875, 12.906106948853, 20, 0, "default-bold", 2) end) -- ped["Criminal"] = createPed(0, 438.4970703125, -1733.09765625, 9.421875, 0, false) createBlipAttachedTo(ped["Criminal"], 59, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Criminal"], 100 ) setTimer( setElementPosition, 50, 0, ped["Criminal"], 438.4970703125, -1733.09765625, 9.421875 ) function job2(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Criminal")) triggerClientEvent(player, "PedClicked", getRootElement(), "Criminal", "As a Criminal you will be the real protagonist of STORM:RPG. Being a Criminal means that you will be aable to: Rob Houes, Rob Stores, Rob Banks, Hack ATM's and much more as you will discove in this new adventure!", r, g, b) end end addEventHandler("onElementClicked", ped["Criminal"], job2) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Criminal", 0xFFEB6767, 438.4970703125, -1733.09765625, 9.421875, 20, 0, "default-bold", 2) end) -- ped["Trashman"] = createPed(132, -76.7373046875, -1136.515625, 1.078125, 50.0, false) createBlipAttachedTo(ped["Trashman"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Trashman"], 100 ) setTimer( setElementPosition, 50, 0, ped["Trashman"], -76.7373046875, -1136.515625, 1.078125 ) function job3(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Trashman")) triggerClientEvent(player, "PedClicked", getRootElement(), "Trashman", "As a TrashMan you need to go arround SA to catch some trash bags that will be bliped into your radar!", r, g, b) end end addEventHandler("onElementClicked", ped["Trashman"], job3) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Trashman", 0xFFFFFF00, -76.7373046875, -1136.515625, 1.078125, 20, 0, "default-bold", 2) end) -- ped["Police"] = createPed(280, 1553.033203125, -1677.6357421875, 16.1953125, 0, false) weapon["Police"] = 3 createBlipAttachedTo(ped["Police"], 61, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Police"], 100 ) setTimer( setElementPosition, 50, 0, ped["Police"], 1553.033203125, -1677.6357421875, 16.1953125 ) function job4(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Police")) triggerClientEvent(player, "PedClicked", getRootElement(), "Police", "As a Police man you need to drive around San Andreas to catch Wanted Criminals. You will level up by ammount of Arrests you have!", r, g, b) end end addEventHandler("onElementClicked", ped["Police"], job4) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Police", 0xFF2572FF, 1553.033203125, -1677.6357421875, 16.1953125, 20, 0, "default-bold", 2) end) -- ped["TrafficUnit"] = createPed(284, 1582.0888671875, -1683.302734375, 6.21875, 0, false) weapon["TrafficUnit"] = 43 createBlipAttachedTo(ped["TrafficUnit"], 61, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["TrafficUnit"], 100 ) setTimer( setElementPosition, 50, 0, ped["TrafficUnit"], 1582.0888671875, -1683.302734375, 6.21875 ) function job5(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("TrafficUnit")) triggerClientEvent(player, "PedClicked", getRootElement(), "TrafficUnit", "As a Traffic Unit you need to catch the Speeders of STORM:RPG!", r, g, b) end end addEventHandler("onElementClicked", ped["TrafficUnit"], job5) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("TrafficUnit", 0xFF2572FF, 1582.0888671875, -1683.302734375, 6.21875, 20, 0, "default-bold", 2) end) -- ped["Criminal1"] = createPed(0, 1632.458984375, -1521.83984375, 13.609195709229, 180, false) createBlipAttachedTo(ped["Criminal1"], 59, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Criminal1"], 100 ) setTimer( setElementPosition, 50, 0, ped["Criminal1"], 1632.458984375, -1521.83984375, 13.609195709229 ) function job6(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Criminal")) triggerClientEvent(player, "PedClicked", getRootElement(), "Criminal", "As a Criminal you will be the real protagonist of STORM:RPG. Being a Criminal means that you will be aable to: Rob Houes, Rob Stores, Rob Banks, Hack ATM's and much more as you will discove in this new adventure!", r, g, b) end end addEventHandler("onElementClicked", ped["Criminal1"], job6) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Criminal", 0xFFEB6767, 1632.458984375, -1521.83984375, 13.609195709229, 20, 0, "default-bold", 2) end) -- ped["Pilot"] = createPed(255, 2122.1162109375, -2412.15234375, 13.546875, 180.0, false) createBlipAttachedTo(ped["Pilot"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Pilot"], 100 ) setTimer( setElementPosition, 50, 0, ped["Pilot"], 2122.1162109375, -2412.15234375, 13.546875 ) function job7(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Pilot")) triggerClientEvent(player, "PedClicked", getRootElement(), "Pilot", "As a Pilot you must drive the people to their selected destination!", r, g, b) end end addEventHandler("onElementClicked", ped["Pilot"], job7) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Pilot", 0xFFFFFF00, 2122.1162109375, -2412.15234375, 13.5468755, 20, 0, "default-bold", 2) end) -- ped["Criminal2"] = createPed(0, 2434.25, -2056.2509765625, 13.549994468689, 90, false) createBlipAttachedTo(ped["Criminal2"], 59, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Criminal2"], 100 ) setTimer( setElementPosition, 50, 0, ped["Criminal2"], 2434.25, -2056.2509765625, 13.549994468689 ) function job8(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Criminal")) triggerClientEvent(player, "PedClicked", getRootElement(), "Criminal", "As a Criminal you will be the real protagonist of STORM:RPG. Being a Criminal means that you will be aable to: Rob Houes, Rob Stores, Rob Banks, Hack ATM's and much more as you will discove in this new adventure!", r, g, b) end end addEventHandler("onElementClicked", ped["Criminal2"], job8) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Criminal", 0xFFEB6767, 2434.25, -2056.2509765625, 13.549994468689, 20, 0, "default-bold", 2) end) -- ped["Hobo"] = createPed(239, 2438.427734375, -1885.396484375, 13.553356170654, 270.0, false) createBlipAttachedTo(ped["Hobo"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Hobo"], 100 ) setTimer( setElementPosition, 50, 0, ped["Hobo"], 2438.427734375, -1885.396484375, 13.553356170654 ) function job9(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Hobo")) triggerClientEvent(player, "PedClicked", getRootElement(), "Hobo", "As a Hobo you dont need to do nothing... just walk forthere searching food and money!", r, g, b) end end addEventHandler("onElementClicked", ped["Hobo"], job9) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Hobo", 0xFFFFFF00, 2438.427734375, -1885.396484375, 13.553356170654, 20, 0, "default-bold", 2) end) -- ped["Medic"] = createPed(275, 2035.73828125, -1401.685546875, 17.309717178345, 180.0, false) weapon["Medic"] = 14 createBlipAttachedTo(ped["Medic"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Medic"], 100 ) setTimer( setElementPosition, 50, 0, ped["Medic"], 2035.73828125, -1401.685546875, 17.309717178345 ) function job10(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Medic")) triggerClientEvent(player, "PedClicked", getRootElement(), "Medic", "As a Medic you will get Flower that you should hit player with it so they take health!", r, g, b) end end addEventHandler("onElementClicked", ped["Medic"], job10) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Medic", 0xFF00FFFF, 2035.73828125, -1401.685546875, 17.309717178345, 20, 0, "default-bold", 2) end) -- ped["Medic1"] = createPed(275, 1173.220703125, -1312.7294921875, 13.983285903931, 270.0, false) createBlipAttachedTo(ped["Medic1"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Medic1"], 100 ) setTimer( setElementPosition, 50, 0, ped["Medic1"], 1173.220703125, -1312.7294921875, 13.983285903931 ) function job11(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Medic")) triggerClientEvent(player, "PedClicked", getRootElement(), "Medic", "As a Medic you will get Flower that you should hit player with it so they take health!", r, g, b) end end addEventHandler("onElementClicked", ped["Medic1"], job11) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Medic", 0xFF00FFFF, 1173.220703125, -1312.7294921875, 13.983285903931, 20, 0, "default-bold", 2) end) -- ped["Taxi"] = createPed(220, 1624.8583984375, -1137.515625, 23.90625, 0.0, false) createBlipAttachedTo(ped["Taxi"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Taxi"], 100 ) setTimer( setElementPosition, 50, 0, ped["Taxi"], 1624.8583984375, -1137.515625, 23.90625 ) function job12(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Taxi")) triggerClientEvent(player, "PedClicked", getRootElement(), "Taxi", "As a Taxist you need to drive arround SA with your taxi finding people to transport and then transport them to selected destination!", r, g, b) end end addEventHandler("onElementClicked", ped["Taxi"], job12) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Taxi", 0xFFFFFF00, 1624.8583984375, -1137.515625, 23.90625, 20, 0, "default-bold", 2) end) -- ped["Trucker"] = createPed(125, 123.326171875, -296.8349609375, 1.578125, 90.0, false) createBlipAttachedTo(ped["Trucker"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Trucker"], 100 ) setTimer( setElementPosition, 50, 0, ped["Trucker"], 123.326171875, -296.8349609375, 1.578125 ) function job13(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Trucker")) triggerClientEvent(player, "PedClicked", getRootElement(), "Trucker", "As a Trucker you need to deliver charges to the selected destination!", r, g, b) end end addEventHandler("onElementClicked", ped["Trucker"], job13) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Trucker", 0xFFFFFF00, 123.326171875, -296.8349609375, 1.578125, 20, 0, "default-bold", 2) end) -- ped["PizzaDelivery"] = createPed(155, 2105.4541015625, -1808.9091796875, 13.5546875, 90.0, false) createBlipAttachedTo(ped["PizzaDelivery"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["PizzaDelivery"], 100 ) setTimer( setElementPosition, 50, 0, ped["PizzaDelivery"], 2105.4541015625, -1808.9091796875, 13.5546875 ) function job14(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("PizzaDelivery")) triggerClientEvent(player, "PedClicked", getRootElement(), "PizzaDelivery", "As a Pizza Delivery man you need to deliver the pizza's to the indicaded location in the map (blip)!", r, g, b) end end addEventHandler("onElementClicked", ped["PizzaDelivery"], job14) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("PizzaDelivery", 0xFFFFFF00, 2105.4541015625, -1808.9091796875, 13.5546875, 20, 0, "default-bold", 2) end) -- ped["Mechanic"] = createPed(50, 1035.291015625, -1024.533203125, 32.1015625, 180.0, false) createBlipAttachedTo(ped["Mechanic"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Mechanic"], 100 ) setTimer( setElementPosition, 50, 0, ped["Mechanic"], 1035.291015625, -1024.533203125, 32.1015625 ) function job15(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b = getTeamColor(getTeamFromName("Mechanic")) triggerClientEvent(player, "PedClicked", getRootElement(), "Mechanic", "As a Mechanic you have to drive arround SA and find people that needs repairing on their cars. You have to drive Towtruck too and find broken vehicles and take them to the delivery point!", r, g, b) end end addEventHandler("onElementClicked", ped["Mechanic"], job15) addEventHandler("onPlayerLogin", getRootElement(), function() exports.TextLabel:create3DTextLabel("Mechanic", 0xFFFFFF00, 1035.291015625, -1024.533203125, 32.1015625, 20, 0, "default-bold", 2) end) -- LV JOBS ped["Medic2"] = createPed(275, 1612.2548828125, 1815.2421875, 10.8203125, 0.0, false) createBlipAttachedTo(ped["Medic2"], 60, 2, 0, 0, 0, 0, 0, 200) setTimer( setElementHealth, 50, 0, ped["Medic2"], 100 ) setTimer( setElementPosition, 50, 0, ped["Medic2"], 1612.2548828125, 1815.2421875, 10.8203125 ) function job16(mouse, state, player) if(mouse == "left" and state == "down") then r, g, b =1 point
-
0 points
-
0 points
-
0 points
-
0 points
-
0 points
-
0 points
-
getCommandsBoundToKey getFunctionsBoundToKey unbindKey bindKey the functions which will you need to create your own script0 points
