-
Posts
186 -
Joined
Everything posted by RenanPG
-
Don't forget to give admin rights on ACL.
-
Read the code again.
-
I have a radar with blips support, i can give you an example just pm me. https://fbcdn-sphotos-g-a.akamaihd.net/ ... 6019_o.jpg
-
not because dxDrawCircle will only work with Rendering dxDrawCircle make a loop with lines every frame rendering, DNL291 are right and that's why lag.
-
Try using images.
-
To get the team name use: local teamName = getTeamName(getPlayerTeam(player)) You used just getTeamName, you need to specify the team element.
-
--// Client addEventHandler("onClientPlayerVehicleExit", getRootElement(), function() cancelEvent() end)
-
#Samy: Nice very job. Do you speak my language?
-
Discussing for a simple thing like this ...
-
Because this event doesn't exist, you must use "onPlayerLogin" on server-side and trigger to client. --// Server addEventHandler("onPlayerLogin",getElementRoot(), function() triggerClientEvent(source,"onPlayerLogged",source) end ) --// Client addEvent( "onPlayerLogged", true ) addEventHandler( "onPlayerLogged", localPlayer, function() --stuff end )
-
Use fetching, gets better performance.
-
You make me laugh it's so hard to edit the name of author in meta.xml ? come on. As far i remember, LekRoots(Sr.Zika) created this ... http://blog.servzika.net/2014/03/hud-braun-v100.html
-
This is the cheapest brazilian host that i know, for this price only in openvz(overselling): http://www.host1plus.com/vps-hosting/ PS. Here is the Portuguese section.
-
[SOLUTION] Dns and IP - MTA:SA 1.4.1
RenanPG replied to #RooTs's topic in Site/Forum/Discord/Mantis/Wiki related
Great idea. I hope we can use in future versions. -
This events: addEventHandler ( "onColShapeHit", Col, function ) addEventHandler ( "onColShapeLeave", Col, function ) https://wiki.multitheftauto.com/wiki/OnColShapeHit https://wiki.multitheftauto.com/wiki/OnColShapeLeave
-
function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end Do you put this in your code?
-
It wouldn't make a difference. Explain why this is please? I run my tables all with a , at the end and it just works fine? Have no difference, but logically the last value don't need comma.
-
addEventHandler("onClientRender", root, function() local height = 3 local weight = 20 local veh = getPedOccupiedVehicle(localPlayer) local x, y, z = getElementPosition(veh) local rx, ry, rz = getElementRotation(veh) local ax, ay = getPointFromDistanceRotation(x, y, weight, (-rz) - 180) setCameraMatrix(ax, ay , z+height, x, y, z) end) function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end i didn't tested, adjust
-
local ads = { 'AD1', 'AD2', 'AD3', 'AD4', 'AD5' -- Don't forget to keep the last one without comma. } addEventHandler("onPlayerChat", root, function(msg) for index, v in ipairs(ads) do if string.find(msg,v) then cancelEvent() banPlayer ( source, false, false, true ) end end end )
-
Como utilizar o httpdownloadurl
RenanPG replied to imCEASER's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Para isso, é melhor usar uma hospedagem, Dropbox só consegue faze de arquivos individuais. http://www.hostinger.com.br/hospedagem-web, e os Resources coloque via FTP na pasta http do host, dai todos os resources são baixados por um único endereço. -
Nice job, I'm proud to have participated.
-
What code do you use? ANSI or UTF
-
Nenhuma empressa que vende VPS/Host de baixo custo tem proteção boa. No caso da tkshost.com até com RDP-KILL da pra derrubar, Tenso.
-
Try this: Use server-side function ban() local accname = getAccountName(source) if ( accname == "Name Here" ) then banPlayer(source) end end addEventHandler("onPlayerLogin", root, ban)