-
Posts
414 -
Joined
-
Last visited
-
Days Won
33
Everything posted by FernandoMTA
-
Portside, you need to start acknowledging facts. You were never the sole owner, you just showed it yourself in that screenshot. I don't have any agenda, and you just ignored my question on why you decided to kill SARP's legacy by selling it, which just goes to prove what your interests are. I don't need to say anything else, I didnt "choose violence".
- 74 replies
-
- english-rp
- roleplay
-
(and 2 more)
Tagged with:
-
So just a SARP reboot rebranded without the owner's permission. Explain to people why you sold the SARP game mode, web services & brand for profit after I shut down the server. https://sa-roleplay.net/ San Andreas Roleplay - عيش الحياة الواقعيه What gives you the right to sell something you don't own? It became an Arabic text RP server which used the same database from the last day of SARP that you gave them, and that you're using now in this "Ardic Gaming" server. What sense does that make? That deserves a mention. Oh and hold your emotions, don't waste your time calling me out on having closed SARP, I was in my right halt the server temporarily (which became indefinitely).
- 74 replies
-
- 3
-
-
- english-rp
- roleplay
-
(and 2 more)
Tagged with:
-
New v2.0.3 update. The functions changed in this update were unfortunately broken in the previous version. Please update.
-
Ever dreamed of mapping with mods in MTA? It's now possible thanks to newmodels. All information about the project here (download).
-
New 2.0.2 update: replaced couroutines code with use of Asyncio library + fixed removeExternalMod function + newmodels-example fixes. Full changelog on GitHub. Update recommended.
-
Small 2.0.1 update posted with some QoL improvements & a fix for when you try to load hundreds of mods at once. Also uploaded the resource to community.mtasa.com.
-
NEW MAJOR RELEASE: v2.0.0 Click the link above to see the Changelog on the Github Release page. Please update your newmodels & sampobj_reloaded resources to the latest version. You will greatly benefit from the changes. Enjoy!
-
cheers to MTA's AC that is one of the main reasons this platform is very popular today
-
thank you to all the people who make MTA great happy new year and to a bright future!
-
There is an ongoing Closed Beta (whitelist) that you can be apart of. It's been a pleasure developing this game mode so far. Come join the Discord if you haven't already It has lots of potential.
-
For further contact please only contact @Klis Thank you.
-
Hey, just an advice: in 3dvoicegui.lua Line 205 you do fileDelete("3dvoicegui.lua") to delete the file from client's download cache. You can do exactly the same by instead just putting cache="false" in meta.xml for the 3dvoicegui.lua script.
-
no cliente a setWeaponProperty é só pra armas custom q n da para usar. N pergunte porquê ;( https://wiki.multitheftauto.com/wiki/SetWeaponProperty
-
being able to play MTA from a VM and access only local servers could be interesting... This would facilitate the lives of developers when we need to test scripts in multiplayer but nobody is available to come help you out
-
function changeM4Crosshair(thePlayer) if not getElementData(thePlayer, "zoom") then setWeaponProperty("m4", "pro", "flag_aim_1st_person", true) setWeaponProperty("m4", "std", "flag_aim_1st_person", true) setWeaponProperty("m4", "poor", "flag_aim_1st_person", true) setElementData(thePlayer, "zoom", true) outputChatBox("on", thePlayer, 0,255,0) else setWeaponProperty("m4", "pro", "flag_aim_1st_person", false) setWeaponProperty("m4", "std", "flag_aim_1st_person", false) setWeaponProperty("m4", "poor", "flag_aim_1st_person", false) removeElementData(thePlayer, "zoom") outputChatBox("off", thePlayer, 255,255,0) end end addCommandHandler("mira", changeM4Crosshair, false, false) @copo se eu bem entendi, quando vc dá esse comando ele ativa o modo mirar em 1ª pessoa. Ao dar o comando outra vez, desativa. está bom assim ou você quer mais alguma coisa? Vejo que no seu print tem uma mira diferente (vermelha), isso ja faz parte de outro script q muda a crosshair por shader. EDIT: Eu me apercebi que isso n vai dar certo infelizmente pq o setWeaponProperty muda a propriedade da arma pro servidor todo, e não apenas para o player que você quer...
-
1. Quando é que a função fly que faz triggerClientEvent é chamada? 2. Se você adicionar um print no arquivo client.lua ele aparece na sua debugscript?
-
Mostre o erro pf.
-
Tem alguns erros de escrita no seu codigo. Verifique todas as linhas Mas para começar, isso aí não faz sentido Você poderia usar element data no jogador. if not getElementData(thePlayer, "zoom") then -- ativar setElementData(thePlayer, "zoom", true) else -- desativar removeElementData(thePlayer, "zoom") end Veja a wiki do MTA sobre as funcoes setElementData e getElementData, e setWeaponProperty tambem amigo @copo
-
tudo que trigga eventos do client, não funciona
FernandoMTA replied to Doongogar's topic in Programação em Lua
provavelmente seu meta.xml ta errado como você mostrou noutro post. Veja na consola do servidor se todos os scripts do resource foram carregados com sucesso. -
Spawnar no carro mais proximo sem um piloto
FernandoMTA replied to Doongogar's topic in Programação em Lua
function irCarroProximo(thePlayer, cmd) -- checar permissao de staff aqui local x,y,z = getElementPosition(thePlayer) local int, dim = getElementInterior(thePlayer), getElementDimension(thePlayer) local closestVehicle = nil local smallestDistance = nil for k, vehicle in ipairs(getElementsByType("vehicle")) do local vx,vy,vz = getElementPosition(vehicle) local vint, vdim = getElementInterior(vehicle), getElementDimension(vehicle) -- verificar se tao no mesmo mundo if vint == int and vdim == dim then -- verificar se n tem ngm dentro if not getVehicleController(vehicle) then -- verificar posicao local dist = getDistanceBetweenPoints3D(x,y,z, vx,vy,vz) if (smallestDistance == nil) or (dist < smallestDistance) then smallestDistance = dist closestVehicle = vehicle end end end end if not closestVehicle then outputChatBox("Nenhum veículo desocupado foi encontrado", thePlayer, 255,0,0) return end local vx,vy,vz = getElementPosition(closestVehicle) setElementPosition(thePlayer, vx, vy, vz +3) outputChatBox("Teleportado para o veículo mais próximo#ffffff "..vx..", "..vy..", "..vz, thePlayer, 0,255,0, true) end addCommandHandler("ircarroproximo", irCarroProximo, false, false) se tiver alguma dúvida não hesite @SciptNovato -
@SciptNovato como ficaram os arquivos? Nesse ultimo print falta alguns ', olhe: Tem que ser: <script src="server_S.lua" type="server"/> <script src="client.lua" type="client" cache="false"/> de acordo com os nomes dos arquivos. E o min client version é assim q bota: <min_mta_version client="1.5.9-9.21118.0" server="1.5.9-9.21118.0"/> Pode botar um print("oi") no final de cada arquivo para ver na consola se eles foram carregados.
-
@copo sobre o 1o script: o addCommandHandler parece bem. Quando a função abrir for executada por ele, vai tentar verificar "painel == false". Não faço ideia de onde vem essa variável, suponho que nunca foi declarada. Quando uma variável não existe, o valor dela é nil e não false. Logo você pode verificar "if painel == nil then" ou "if not painel then". Aí ele vai adicionar o onClientRender. E quando for fazer o comando novamente para esconder o painel, a variável vai estar a true como você setou, então vai executar o que vem depois do "else", removendo assim o onClientRender. Sobre o 2o script: Você estava quase, mude esse "if exibir_bulssola = false then" para "if not exibir_bussola then" (bussola ta mal escrito e também faltava um = na comparação) Sobre o 3o script: N faço ideia o que você está tentando fazer. Essa função apenas seta algumas propriedades de arma sempre que é chamada. Você teria que mudar isso
-
No worries. You can always change the SPAZ properties serverside to improve the weapon
-
Marker para teletransportar para interior nao funciona
FernandoMTA replied to Doongogar's topic in Programação em Lua
Eu testei o seu código e realmente não estava acontecendo nada ao entrar no marker, então eu mudei: local entrarInterior = createMarker(2231.294921875,-2414.8959960938,12.65, "cylinder", 1, 255, 255, 255, 50) function entrarLocal(thePlayer, matchingDimension) if (getElementType(thePlayer) == "player") and (matchingDimension) and (not getPedOccupiedVehicle(thePlayer)) then setElementPosition(thePlayer, 941.87628173828, 2115.2114257812, 1011.0302734375) setElementInterior(thePlayer, 1) end end addEventHandler("onMarkerHit", entrarInterior, entrarLocal) - Coloquei getPedOccupiedVehicle em vez de isPedInVehicle pois essa função está obsoleta - adicionei matchingDimension que é um argumento do onMarkerHit - botei o event handler no marker mesmo, em vez de root + verificar o source depois - aumentei ligeiramente a coordenada Z do marker: de 12.54 para 12.65 e passou a funcionar. Realmente o marker estava muito para baixo e não estava detetando o player. Espero ter ajudado @SciptNovato -
Marker para teletransportar para interior nao funciona
FernandoMTA replied to Doongogar's topic in Programação em Lua
Esse script é de tipo "server" no meta.xml, certo? Pois o evento onMarkerHit é serverside. Para clientside seria onClientMarkerHit. @SciptNovato