Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    [Web] Scoreboard

    You can't use it this way, open the server, start dxscoreboard, and go to http://127.0.0.1:httpPort/dxscoreboard/ I think.
  2. Uploaded freeroam: https://community.multitheftauto.com/index.php?p= ... ls&id=2990
  3. Why do I see a lot of posts, like 'right', 'exactly', 'as **** posted'. What's the point of those posts?
  4. What's the point of that post?
  5. local teamGyg = createTeam ( "~GYG~", 255, 255, 0 ) function setColors() for index , player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerTeam ( player ) then local r,g,b = getTeamColor ( getPlayerTeam ( player ) ) local veh = getPedOccupiedVehicle ( player ) if veh then setVehicleColor ( veh, r,g,b,r,g,b) setVehicleHeadLightColor ( veh , r,g,b ) end end end end setTimer( setColors, 500, 0 )
  6. What part of it's impossible, you don't understand?
  7. Shader applied to 'waterclear256' Shader: float Time : TIME ; float4 GetColor ( ) { return float4 ( cos ( Time ) , cos ( Time ) , cos ( Time ) , 1 ) ; } technique tec0 { pass P0 { MaterialAmbient = GetColor ( ) ; MaterialDiffuse = GetColor ( ) ; MaterialEmissive = GetColor ( ) ; MaterialSpecular = GetColor ( ) ; AmbientMaterialSource = Material ; DiffuseMaterialSource = Material ; EmissiveMaterialSource = Material ; SpecularMaterialSource = Material ; Lighting = true ; } } Client: addEventHandler( "onClientResourceStart", resourceRoot, function() local myShader, tec = dxCreateShader ( "shader.fx" ) if myShader then engineApplyShaderToWorldTexture ( myShader, "waterclear256" ) end end ) Not tested.
  8. I didn't say it's impossible. You will need getWaterColor, then - 1 and setWaterColor to the new values. And check if it's 0, and then math.random to get new values, and so on.
  9. You mean blending? There is no function for that, but I think the script in the video is using shaders.
  10. Where is I'm a JR10?
  11. I can't fix it, since I don't know the purpose of spectators. The part where there is local g_dxGUI = { You got a lot of dxText:create Add one for spectators.
  12. You must use dxText:create first, you are doing: g_dxGUI['spectators']:text(stext) Without creating the text. g_dxGUI = dxText:create ( ... )
  13. local teamGyg = createTeam ( "~GYG~", 255, 255, 0 ) function setColors() for index , player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerTeam ( player ) then local r,g,b = getTeamColor ( getPlayerTeam ( player ) ) local veh = getPedOccupiedVehicle ( player ) if veh then setVehicleColor ( veh, r,g,b,r,g,b) end end end end setTimer( setColors, 500, 0 )
  14. g_dxGUI['spectators']:text(stext) Where is that defined?
  15. local engine = getVehicleEngineState (carname) Is a server side function. Remove it, and remove it's dxDrawText.
  16. Where is g_dxGUI defined and where is g_dxGUI['spectators'] defined?
  17. stole Basemode ID Tag (basemodeid) : https://community.multitheftauto.com/index.php?p= ... ls&id=2970
  18. addEventHandler ( "onVehicleStartEnter" , root , function ( player ) local team = getPlayerTeam ( player ) if not team then return end local r, g, b = getTeamColor ( team ) setVehicleColor ( source , r, g, b , r, g, b) end) Try that.
  19. He doesn't have one. Where is that 'car'. The car he enters? A car defined somewhere?
  20. Then tell me, how do you expect that there will be any teamVehicles? Do you mean vehicles with specified model? Or vehicles that a member of the team enters?
  21. You must get the team vehicles some how. Do you have them in a .map? post the part where there is the team vehicles.
×
×
  • Create New...