
komal
Members-
Content Count
27 -
Joined
-
Last visited
Community Reputation
6 NeutralAbout komal
-
Rank
Advanced Member
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
what about if you destroy the player can you try the code for me, if working ? addEventHandler( "onPlayerWasted", getRootElement( ), function() setCameraMatrix(source,vector3(getElementPosition(source)),vector3(getElementPosition(source))) destroyElement(source) end )
-
that because the camera follow the Vehicle you need unfollow the camera try the code if this work ... addEventHandler( "onPlayerWasted", getRootElement( ), function() setCameraMatrix(source,vector3(getElementPosition(source)),vector3(getElementPosition(source))) end )
-
you need applie the shader to the txd , i know you dont understand in shader so i build simple script how this work . https://community.multitheftauto.com/index.php?p=resources&s=details&id=16502
-
use smoke_flare sa-mp https://community.mtasa.com/index.php?p=resources&s=details&id=1292
-
your problem here local players = getElementsByType("players") replace it to: local players = getElementsByType ( "player" )
-
Coming soon !
-
how can i try it ?
-
because mta debug use the Lua debug librarya so Lua only write file line + function error without resource name you can fix your debugscript view with the script addEventHandler ("onClientDebugMessage",getRootElement(), function(message,level,file,line) outputDebugString ("\n ==============================================") outputDebugString (message) outputDebugString ("file :" .. file) outputDebugString ("line :" .. line) end)
-
why you dont use player join event in server side ? function playerjoinToserver() addEventHandler ( "onPlayerJoin", getRootElement(),playerjoinToserver) https://wiki.multitheftauto.com/wiki/OnPlayerJoin ==== this is your full code client function text() dxDrawText("Alive Players[#334455"..home_alive.."#ffffff/"..tagColor..enemy_team.."#ffffff]",sX,sY*0.03,sX*0.2,sY*0,tocolor(255,255,255,generalAlpha),clanwar_data_fontSize*1.2,clanwar_data_font,"center","center",false,false,false,true) end addEventHandler("onC
-
your worng is in client side here if enemyTeam then <<<<<<<<<<<<<<<<<< your should write your team name with getTeamFromName("write your team here") your full codes shoud be like that Client side : local colour = {} local tagColor local teams = {} colour.r = 128 colour.g = 128 colour.b = 128 function updateTeamSettings(cmd,R,G,B) if not tonumber(R) or not tonumber(G) or not tonumber(B) then return end R,G,B = tonumber(R),tonumber(G),tonumber(B) if
-
you can use MTA NPC Traffic or this https://www.mta-resource.ru/load/resource/id/853
-
you cant use return pulsa try with the code --server: function getPulsa(phone) local phoneSettings = mysql:query_fetch_assoc("SELECT * FROM `phones` WHERE `phonenumber`='"..mysql:escape_string(tostring(phone)).."' LIMIT 1") local pulsa = 0 if not phoneSettings then outputChatBox("ERROR", source, 255, 0, 0) else pulsa = tonumber(phoneSettings["pulsa"]) or 0 triggerEvent ( "printData", root, pulsa ) end end addEvent("getPulsa", true) addEventHandler("getPulsa", root, getPulsa) --clien
-
setTeamColor Server-only function https://wiki.multitheftauto.com/wiki/SetTeamColor to fix it use https://wiki.multitheftauto.com/wiki/TriggerServerEvent server file function changeclr ( tesm,r,g,b ) setTeamColor ( team,r,g,b )end addEvent( "changeclr", true ) addEventHandler( "changeclr", resourceRoot,changeclr ) client your full code + function updateTeamColour() triggerServerEvent ( "changeclr", resourceRoot,team[2], colour.r, colour.g, colour.b ) end addEventHandler("onClientPlayerJoin", getRootElement(), u
-
objects ?