-
Posts
26 -
Joined
-
Last visited
Everything posted by DaeRoNz
-
addCommandHandler( global.Comando, function(playerSource, cmd, ...) local conta = getAccountName(getPlayerAccount(playerSource)) if ( isObjectInACLGroup ( "user.".. conta, aclGetGroup ( "Superior" ) ) ) then local text = table.concat({...}, " ") if text then local namePlayer = getPlayerName(playerSource) triggerClientEvent(root, "KKZinho:AnunciarStaff", playerSource, namePlayer, text) end else return end end)
-
Ajuda: dxDrawTextOnElement (Apenas em Policiais)
DaeRoNz replied to Drosdek Developer's topic in Programação em Lua
O código seria algo deste género. addEventHandler("onClientRender", getRootElement(), function () for k,v in ipairs(getElementsByType("player")) do if getElementData(v,"EmServico") == true then dxDrawTextOnElement(v,"Em Serviço",1,20,0,0,255,255,1,"arial") end end end) Se você está a usar de maneira diferente mostre seu código.- 2 replies
-
- dxdrawtextonelement
- dx
-
(and 1 more)
Tagged with:
-
addEventHandler( 'onPlayerLogin', getRootElement(), function ( _, acc ) local IDplayer = getAccountData(acc, "ID") setElementData(source, "ID", IDplayer) end )
-
Ola Guilherme , usa a função toggleControl . ex: toggleControl ( "change_camera", false )
-
EDIT : IDK WHAT I MADE BUT IS NOW WORKING ------------------------------------------- them i apply the code : DGS:dgsSetVisible( Edit, false ) DGS:dgsFocus(image1) DGS:dgsSetEnabled ( Edit, false ) disappears correctly but cursor still on screen. only clicking somewhere the cursor show off. How can i do to cursor show off with the dgsSetVisible false. another thing is if i m in car doing this the edit box dont type the letters
-
Encontrei o topico, peço desculpa pelo topico desnecessario
-
bom dia, peço desde já desculpa se é o lugar errado ou se já existe um tópico similar. Quero saber se existe alguma maneira de converter mapas de gta para mta. Ou seja ( IPL PARA MAP) Sim eu sei existe o ( http://gtamap.delux-host.com/converter/ ) map ele nao converte as rotaçoes. Existe alguma alternativa que seja completa com as rotações ? Obrigado
-
You need translate your server to english, i cant even register / login because the language
-
Need some updates the code. I don't have the knowledge to do it. My bot disconnet after some hours. and the process back on but bot not. I need restart app all days. ** If i update the discord folder bot not work. So i think the code need some updated.
-
I dont know if this help but. If i open painel Admin behind the bind t dont work. but if i close admin painel and type t again it work.
-
yes dont work. .. so you can fix the : dgsSetInputMode("no_binds_when_editing") ?
-
when I type in edit if i press t the bind go for chat . Have any way to fix that ? the dgsSetInputMode("no_binds_when_editing") still bind the chat
-
buttonCriar = DGS:dgsCreateButton( 70, 300, 140, 40, "Criar", false,tab2) --showPanel() --addEventHandler("onDgsMouseDrag",colorPick,updateColorPicker,false) --addEventHandler ( "onDgsMouseClickDown", colorPick, updateColorPicker ) addEventHandler ( "onDgsMouseClickDown", buttonCriar, clickCriar ) the function clickCriar active them i click in tab2 and in buttonCriar. it should on active on buttonCriar Right ?
-
Now i get this error ( after update and restart ) https://i.imgur.com/rjT57ae.png i FIX already but is better update it
-
teamMenu = DGS:dgsCreateWindow ( cx, cy, 500, 500, "Sistema de Equipas", false ) DGS:dgsWindowSetMovable ( teamMenu, false ) DGS:dgsWindowSetSizable ( teamMenu, false ) DGS:dgsSetVisible( teamMenu, false ) local testList = DGS:dgsCreateGridList ( 0.45, 0.45, 0.15, 0.15, true ) only with this i get this error https://i.imgur.com/bswwGnW.png
-
Long time this dont get update. Is any way to make this possible without using relay node.js server (externar things) because people buy the server and dont have acess to install that things.
-
https://heavyhost.com.br/ recomendo.
- 3 replies
-
- universo virtual
- mta brasil
- (and 11 more)
-
Não deu para entender muito bem a sua duvida, mas se o problema é de o jogador estar mutado e continuar digitando em outro, simplesmente adicione uma verificação com a função isPlayerMuted .
-
Irá ter de alterar algumas linhas na função que é ativada pela bind "b" e integrar o seguinte codigo no resource ! -- server function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end function checkPermission ( acl ) local result = isPlayerInACL(client, acl) triggerClientEvent ( client, "resultPermisson", client, result ) end addEvent( "onCheckPermission", true ) addEventHandler( "onCheckPermission", resourceRoot, checkPermission ) -- client function switch(result) if result then -- chamar função de abrir o painel else outputChatBox("Não tem permissão") end end addEvent( "resultPermisson", true ) addEventHandler( "resultPermisson", localPlayer, switch ) function requestP() triggerServerEvent ( "onCheckPermission", resourceRoot, "Admin" ) -- indicar aqui a acl end bindKey("b", "down", requestP)
-
look at Como fazer um Look At na rotação Z?
DaeRoNz replied to Lord Henry's topic in Programação em Lua
Bom saber que ajudou, boa sorte. -
look at Como fazer um Look At na rotação Z?
DaeRoNz replied to Lord Henry's topic in Programação em Lua
Não tenho acerteza, mas talvez ajude esta função https://wiki.multitheftauto.com/wiki/FindRotation -
O evento "onPlayerWasted" ou seja quando algum jogador morre . Irá executar a função skin. TUE = createTeam ( "[TUE]Torcida Uniformizada Esquadrão", 139, 134, 130 ) local spawnXTUE1, spawnYTUE1, spawnZTUE1 = -2024.08130, 66.94630, 28.44916 function(skin) setPlayerTeam (source, getTeamFromName("[TUE]Torcida Uniformizada Esquadrão")) spawnPlayer(source, spawnXTUE1, spawnYTUE1, spawnZTUE1) setElementRotation ( source, 0 ,0 ,90 ) fadeCamera(source, true) setCameraTarget ( source, source ) setElementModel ( source, 0 ) giveWeapon ( source, 1, 1) giveWeapon ( source, 5, 1 ) giveWeapon ( source, 18, 5 ) setPlayerNametagColor ( source, 139, 134, 130 ) setTeamFriendlyFire ( TUE, true ) outputChatBox("Bem Vindo - [TUE] ", source, 139, 134, 130 ) end addEvent("TUE1",true) addEventHandler("TUE1",root, skin) addEventHandler ( "onPlayerWasted", getRootElement(), skin )
-
Talvez este tópico o possa ajudar .
-
--Primeira parte da Missão Mfim = createMarker (-2404.80957, -599.06909, 132.64844 -1, "cylinder", 2, 0 ,255 ,0, 255) vehicle = createVehicle (402,209.89941, 1905.14233, 17.64063,0 ,0 ,0) local counter = 0 setTimer(function(source) for seat, player in pairs(getVehicleOccupants(vehicle)) do counter = counter + 1 end if counter > 0 then outputChatBox ( "Voçê esta no Vehicle", getRootElement(), 255, 255, 255, true ) else outputChatBox ( "Voçê Nao entrou no veiculo a tempo mission failed", getRootElement(), 255, 255, 255, true ) destroyElement (veh[source]) end counter = 0 end, 5000, 1) --segunda parte da mission) function fim (source) if vehicle and isElement(vehicle) then destroyElement (vehicle) givePlayerMoney(source,200000) outputChatBox("#00ff00Sua missão foi um sucesso",source,0,0,0,true) else end end addEventHandler("onMarkerHit",Mfim ,fim) O problema de detetar se o jogador entrou no veiculo deve ficar resolvido.( não testado) Na linha 10. Voce está passando o elemento vehicle na função isPlayerInVehicle . Isto é errado, para está função deve passar um elemento de um jogador. Mas como o código deve estar para o lado server ( não está claro no codigo, pois no primeiro outputChatBox está para todos jogadores mas o segundo apenas para um jogador), a função nao é a certa para este caso .