Jump to content

Tomas

Members
  • Posts

    2,530
  • Joined

  • Last visited

Everything posted by Tomas

  1. Thank you very much , but can you also help me to solve the other 2 problem? What problems?
  2. Use dxDrawText in a loop.
  3. addEventHandler ( "onPlayerJoin" , root, function ( ) setPlayerHudComponentVisible(source,"all",false) end )
  4. if (isPlayerInTeam(thePlayer,getTeamFromName("police")) then or if (isPlayerInTeam(thePlayer,"police")) then
  5. -- Server side for index,player in ipairs(getElementsByType("player")) do setPlayerHudComponentVisible(player,"all",false) end Slothbot: https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
  6. Dudo que alguien aquí pueda ayudarte, postea tu problema aquí: viewforum.php?f=104 (en inglés).
  7. Tried it, with no avail. Still produces the same error. Hm, try saving the data as strings. I got it! Execute this sentence. ALTER TABLE `tableName` CHANGE `columnName` `columnName` SMALLINT( 11 ) NOT NULL
  8. Client: addEventHandler("onClientPlayerStealthKill", getLocalPlayer(), function(target) if (target and getElementType(target) == "player" and target ~= source) then triggerServerEvent("KillAttacker",resourceRoot,source) cancelEvent() end ) Server: addEvent("KillAttacker",true) function killAttacker (killer) killPed(killer) outputChatBox ("KARMA:" .. killer .. " is dead",source,0,233,0,true) end addEventHandler("KillAttacker",resourceRoot,killAttacker)
  9. addEvent("KillAttacker",true) function killAttacker (killer) killPed(killer) outputChatBox ("KARMA:" .. killer ... " is dead",source,0,233,0,true) end addEventHandler("KillAttacker",resourceRoot,killAttacker)
  10. Tomas

    [help]Drugs

    Change the team name. GUIEditor_Label = {} transWindow = guiCreateWindow(182,134,482,342,"Drug Transport Window",false) guiSetVisible(transWindow, false) destiLabel = guiCreateLabel(19,33,450,55,"Choose your destination",false,transWindow) lsButtonRadio = guiCreateRadioButton(21,104,437,19,"Los Santos, +2 Wanted Stars and 3000 if you made it",false,transWindow) lvButtonRadio = guiCreateRadioButton(20,149,437,19,"Las Venturas, +4 Wanted Stars and 6000 if you made it",false,transWindow) sfButtonRadio = guiCreateRadioButton(20,193,437,19,"San Fierro, +6 Wanted Stars and 10000 if you made it",false,transWindow) acceptButton = guiCreateButton(103,267,113,37,"Accept",false,transWindow) closeButton = guiCreateButton(241,266,108,37,"Close",false,transWindow) local jobmarker = createMarker ( 2448.68, -1976.63, 12.54, "cylinder", 2, 255, 0, 0, 255 ) createBlipAttachedTo (jobmarker, 40) function MarkerHit ( hitPlayer, matchingDimension ) if not getPlayerTeam(hitPlayer) == getTeamFromName("Criminal") return end guiSetVisible(transWindow, true) showCursor(true) end addEventHandler ( "onClientMarkerHit", jobmarker, MarkerHit ) function closeChangeJobWindow() if (source == closeButton) then guiSetVisible(transWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), closeChangeJobWindow) function lsjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lsButtonRadio)) then triggerServerEvent ("givePlayerJobLS",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lsjobcli, false ) function lvjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lvButtonRadio)) then triggerServerEvent ("givePlayerJobLV",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lvjobcli, false ) function sfjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(sfButtonRadio)) then triggerServerEvent ("givePlayerJobSF",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, sfjobcli, false )
  11. viewtopic.php?f=91&t=42082
  12. Tomas

    Help

    Only this. Then the vehicle was not created successfully, are you totally sure that 'BoatID' is returning a vehicle model?
  13. Tomas

    [REL] Tetris Wall

    Looks nice, good work
  14. You can create it using triggerEvent & onVehicleExit.
  15. 200 segundos no son dos minutos, 200 segundos son 3.3pp minutos, simplemente divide los segundos entre 60. seconds = math.floor(getTimerDetails(tiempoRestante)/1000)/60 minutes = math.round(seconds,2) function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end Gracias Tomás Y era un ejemplo De nada
  16. 200 segundos no son dos minutos, 200 segundos son 3.3pp minutos, simplemente divide los segundos entre 60. seconds = math.floor(getTimerDetails(tiempoRestante)/1000)/60 minutes = math.round(seconds,2) function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end
×
×
  • Create New...