Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Ye . Change triggerServerEvent line to: triggerServerEvent("KillAttacker", source, source )
  2. Server if vehicleID == 520 and getPlayerTeam(source) then if getTeamName(getPlayerTeam(source)) == 'Red team' then texture = 'Red' elseif getTeamName(getPlayerTeam(source)) == 'Blue team' then texture = 'Blue' else texture = "None" end return triggerClientEvent(source, 'applyHydraTexture', source, vehicle, texture) end Client myShader = dxCreateShader( "hello.fx" ) red = dxCreateTexture("hydrabody256-red.png") blue = dxCreateTexture("hydrabody256-blue.png") addEvent("applyHydraTexture", true) addEventHandler("applyHydraTexture", root, function(vehicle, tex) local thePlayer = source local theVehicle = vehicle if thePlayer and theVehicle then if tex == 'Red' then engineApplyShaderToWorldTexture( myShader, "hydrabody256",getPedOccupiedVehicle(thePlayer) ) dxSetShaderValue(myShader, "gTexture", red) elseif tex == 'Blue' then engineApplyShaderToWorldTexture( myShader, "hydrabody256",getPedOccupiedVehicle(thePlayer) ) dxSetShaderValue(myShader, "gTexture", blue) else return end end end )
  3. or: If empty then ( change it so tat is adds items again, loop through the table then add them all again. Remember to clear it. ). Get gridlist's row, and loop ( for i=0, gridlistrow do ) then get the text of column if it's there then keep it else remove it. And for edit change, onClientGUIChanged
  4. local marker = createMarker(2064.46924,-1831.39221,13, "cylinder",2,255,255,0) addEventHandler("onMarkerHit",marker, function(thePlayer) if isElement( thePlayer ) and getElementType( thePlayer ) == "player" and getPedOccupiedVehicle( thePlayer ) then local veh = getPedOccupiedVehicle(thePlayer) fixVehicle(veh) end end)
  5. Buy a VPS from OVH or Delta Hosting and run on it.
  6. I realy don't get it too. Any examples? Simple one can help many people who are noobs in shaders.
  7. Anubhav

    Scale > 1

    This is same with me so I don't map. If there is a fix I would be happy too. Please any mapper answer to help alot of people out!
  8. Anubhav

    Backpack Help!

    No, I think he is talking about DayZ backpack --- What do you mean by you want it?
  9. I think there's a bug in MTA. I'm not sure, that's why I'm posting here. ( sorry if it's wrong section ). I clicked on MTA ( Ended all process ) and it starts + message comes. That instance one. I clicked on mta one time to select and another time to load. It still starts and the error remains how it was.
  10. No need to laugh. You are just laughing on other's work. He's a beginer, and has learned alot.
  11. function setTurfOwners() local realTable = sortTable() for i, v in ipairs(realTable) do local r, g, b = exports.AGGroups:getGroupColor ( v[3]) local rE = radar[v[1]] local turfColor = toJSON({r, g, b}) if (rE) then setRadarAreaColor(rE, r, g, b, 200) end if (t_owner[v[1]]) then dbExec(db, "UPDATE theturfs SET owner=?, color=? WHERE name=?", tostring(v[3]), tostring(fromJSON(turfColor)), tostring(v[1])) break else dbExec(db, "INSERT INTO theturfs VALUES (?, ?, ?)", tostring(v[1]), tostring(v[3]), tostring(turfColor)) -- Error t_owner[v[1]] = v[3] break end t_owner[v[1]] = v[3] end end
  12. Anubhav

    The last reply

    ok. ok . ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .ok. ok .
  13. We're performing maintenance on our board right now. Please check later today.
  14. function godmodeHandler () cancelEvent () end addEvent ("enableGodMode",true) addEventHandler ("enableGodMode",getRootElement(), function() if (source == getLocalPlayer()) then addEventHandler ("onClientPlayerDamage",source,godmodeHandler) addEventHandler( "onClientRender", root, zonetxt ) end end) addEvent ("disableGodMode",true) addEventHandler ("disableGodMode",getRootElement(), function() if (source == getLocalPlayer()) then removeEventHandler ("onClientPlayerDamage", source,godmodeHandler) removeEventHandler( "onClientRender", root, zonetxt ) end end) function zonetxt( ) dxDrawText("", 47, 770, 290, 770, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText("Safe Zone", 88, 757, 202, 873, tocolor(0, 0, 0, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Safe Zone", 88, 755, 202, 871, tocolor(0, 0, 0, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Safe Zone", 86, 757, 200, 873, tocolor(0, 0, 0, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Safe Zone", 86, 755, 200, 871, tocolor(0, 0, 0, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Safe Zone", 87, 756, 201, 872, tocolor(42, 255, 0, 255), 1.20, "bankgothic", "left", "top", false, false, false, false, false) triggerServerEvent(localPlayer,"onColShapeHit",localPlayer) end
  15. Add me. anubhav.agarwal80
×
×
  • Create New...