Tomas
Members-
Posts
2,530 -
Joined
-
Last visited
Everything posted by Tomas
-
Ya lo corregí arriba
-
Waoh, great work
-
Thank you very much , but can you also help me to solve the other 2 problem? What problems?
-
Use dxDrawText in a loop.
-
addEventHandler ( "onPlayerJoin" , root, function ( ) setPlayerHudComponentVisible(source,"all",false) end )
-
Nice work!
-
if (isPlayerInTeam(thePlayer,getTeamFromName("police")) then or if (isPlayerInTeam(thePlayer,"police")) then
-
-- Server side for index,player in ipairs(getElementsByType("player")) do setPlayerHudComponentVisible(player,"all",false) end Slothbot: https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
-
Dudo que alguien aquí pueda ayudarte, postea tu problema aquí: viewforum.php?f=104 (en inglés).
-
Why should be root?
-
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
-
math.round ?
-
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)
-
addEvent("KillAttacker",true) function killAttacker (killer) killPed(killer) outputChatBox ("KARMA:" .. killer ... " is dead",source,0,233,0,true) end addEventHandler("KillAttacker",resourceRoot,killAttacker)
-
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 )
-
viewtopic.php?f=91&t=42082
-
You can create it using triggerEvent & onVehicleExit.
-
From the wiki:
-
Really thanks You're welcome
-
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
-
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
-
Hmm, entonces no era desync