Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/01/20 in all areas

  1. I am not sure what kind of software your are using, but it looks old. The fetch function normally would use a loop to fetch new data from the handler. But in your case I do not see an handler at all. query + make the request > Then start fetching as long as there is data with a loop. Are you able to connect manually to your db? https://wiki.multitheftauto.com/wiki/DbConnect Or can you provide some information about the socket/resource you are using?
    1 point
  2. The very reason the gui-Static-Image goes on top, is because you clicked on the bounding box of the image. To prevent clicking, disable the gui-Static-Image: https://wiki.multitheftauto.com/wiki/GuiSetEnabled
    1 point
  3. function MensagemFRP(source, cmd, ...) local MessagemFRP = table.concat ( { ... }, " " ); local getName = getElementData(source, "Nome") or "n.a" local getLastName = getElementData(source, "Sobrenome") or "n.a" local getID = getElementData(source, "ID") or "n.a" for _,v in ipairs(getElementsByType("player")) do outputChatBox("#Fora Do RP ➠: #FFFFFF["..getID.."] "..getName.." "..getLastName.." #ffffff"..MessagemFRP,v, 255, 255, 255, true) end end addCommandHandler("rp", MensagemFRP) EDIT: Não testei.
    1 point
  4. -- loop trough the 'result' table for i, v in ipairs(result) do outputChatBox(v) end
    1 point
  5. local tableVehicle = {} function serverSpawn(selectedList1,playerxyz) local x, y, z = getElementPosition ( playerxyz ) local rx,ry,rz = getElementRotation(playerxyz) if ( isPedInVehicle (playerxyz) ) then outputChatBox( "[Error] Exit your current vehicle first.", playerxyz, 255, 0, 0, true ) else if ( tableVehicle[playerxyz] ) then destroyElement ( tableVehicle[playerxyz] ) tableVehicle[playerxyz] = nil end local playerVehicle = createVehicle ( selectedList1, x+1, y+1, z+0.5, rx,ry,rz ) warpPedIntoVehicle ( playerxyz, playerVehicle ) tableVehicle[playerxyz] = playerVehicle end end addEvent("spawncar",true) addEventHandler("spawncar",getRootElement(),serverSpawn) hm, try this...
    1 point
  6. function MensagemFRP(source, cmd, ...) local MessagemFRP = table.concat ( { ... }, " " ); local name = getPlayerName(source); local getID = getElementData(source, "ID") or "n.a" -- Caso o elementData do seu sistema de id não for "ID" só alterar aqui. for _,v in ipairs(getElementsByType("player")) do outputChatBox("#Fora Do RP ➠: #FFFFFF["..getID.."] "..name.." #ffffff"..MessagemFRP,v, 255, 255, 255, true) end end addCommandHandler("rp", MensagemFRP) EDIT: Não testei.
    1 point
  7. On topic I have very small knowledge on cheat regulations but i'd assume it's a bold no, and my common sense would urge me to avoid discussing the matter at all. Edit: answer is no, and should not be discussed. MTA offers a huge amount of scripting functions which can get you covered for whatever you need. There are code examples on most of the function pages as well to get yourself started. We also have a scripting section on forums and our discord server full of guru's to help out. I hope I was able to drag you away from your initial plan.
    1 point
  8. A questão do motor ligar e desblindar vc coloca no script de reparar.
    1 point
  9. Na próxima vez, utilize o botão <> do fórum para postar código.
    1 point
  10. ما ودي احط كود ثم يجي شخص يعطيني اياه جاهز .. ابي افهم الفكرة .. الزر اللي يفعل الخاصية هو M ابي اخليه يتحول إلى امر والزر M يصير بدون اوامر
    0 points
×
×
  • Create New...