-
Posts
3,875 -
Joined
-
Days Won
67
Everything posted by DNL291
-
If you mean teleport the player to an interior use: setElementInterior.
-
Yes, it's clientside. But the function have some bugs with color codes.
-
Tente isso: function executeCommandbinKey() if g_Window.window then return end executeCommandHandler("window") end bindKey("F1","up",executeCommandbinKey) Mas não entendi sua explicação muito bem. Tinha esquecido que ele mostrou o código.
-
Você está usando o event 'onPlayerJoin' que é server-side com funções client-side, use 'onClientPlayerJoin'. No seu meta.xml o script pode estar como server-side, por isso esse erro no debug.
-
Com a função dxDrawRectangle você terá que fazer uma barra de progresso personalizada, se eu te entendi bem. Progress Bar será mais simples, porem fácil para fazer.
-
Veja essa função, setCameraTarget. Abaixo tem um exemplo que possa te ajudar com a função spectate.
-
Não precisa ter pressa para explicar, pode explicar o problema especifico ou mostrar o código onde possa estar o erro ? Será que você quer dizer que tem um problema com a função bindKey, para mostrar/ocultar a janela quando o botão for pressionado ? mostre o código por favor.
-
Use YouTube video ID string tag.
-
Again: https://community.multitheftauto.com/ind ... ls&id=6423 https://community.multitheftauto.com/ind ... ls&id=6424 Skins mods: https://community.multitheftauto.com/ind ... ls&id=6428 https://community.multitheftauto.com/ind ... ls&id=6427 DONE
-
Agora está na área certa porque foi movido por um moderador.
-
Try this: setTimer( function() for _,vehicle in ipairs(getElementsByType("vehicle")) do if isElementInWater(vehicle) and getElementHealth(vehicle) == 0 then destroyElement(vehicle) end end end, 1300, 0 )
-
Skin mods: https://community.multitheftauto.com/ind ... ls&id=6415 https://community.multitheftauto.com/ind ... ls&id=6416 DONE
-
function Police ( text, type ) local team = getPlayerTeam ( source ) if ( team and getTeamName ( team ) == "Police" ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Console" ) ) then outputChatBox ( "#0000FF* [Police] x ".. getPlayerName ( source ) .." :#ffFFff " .. text, root, 255, 0, 0, true) cancelEvent ( ) end end end addEventHandler ( "onPlayerChat", getRootElement(), Police )
-
To output with color codes, you must put the arguments: red, green, blue, before "true".
-
outputChatBox("#0000FF* [Police] x "..getPlayerName ( source ).." :#ffFFff " .. text, getRootElement(), r, g, b, true ) Is correct.
-
Again: https://community.multitheftauto.com/ind ... ls&id=6405 And, upload fail: https://community.multitheftauto.com/ind ... ls&id=6402 DONE
-
Do you want the player teleport to the marker or player who typed the command "event"?
-
Try this function consoleCreateMarker ( thePlayer, commandName ) if hasObjectPermissionTo ( thePlayer, "command.mute" ) then px, py, pz = getElementPosition ( thePlayer ) if ( theMarker ) then if isElement(theMarker) then destroyElement(theMarker) theMarker = nil end if isElement(blip) then destroyElement(blip) blip = nil end outputChatBox ( "event disabled", thePlayer ) else theMarker = createMarker ( px + 2, py + 2, pz - 1, "cylinder", 1.5, 255, 255, 0, 170 ) blip = createBlipAttachedTo ( theMarker, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior(thePlayer) setElementDimension ( theMarker, dim ) setElementInterior ( theMarker, int) outputChatBox ( "#00FF00An event has just been created use #FF0000/eventwarp #00FF00now!", getRootElement(), 255, 255, 255, true ) addCommandHandler( "eventwarp", function(playerSource) if isElement(theMarker) then setElementPosition(playerSource, pz, py, py) end end ) end end end addCommandHandler ( "evento", consoleCreateMarker )
-
Resource modified without my permission: https://community.multitheftauto.com/ind ... ls&id=6393 [Original: https://community.multitheftauto.com/ind ... ls&id=4035] DONE
-
This also happens to me, it's really annoying.
-
function healthin( thePlayer ) local vehiclee = getPedOccupiedVehicle( thePlayer ) if vehiclee then local health = getElementHealth( vehiclee ) if (health<=500) then outputChatBox("Time For a repair!", thePlayer) else outputChatBox("Your car is fine!", thePlayer) end else outputChatBox("You're not in a vehicle!", thePlayer) end end addCommandHandler("carh", healthin)
-
Speak in english, nobody will understand you. Use the Portuguese forum: https://forum.multitheftauto.com/viewfor ... b77be81978