Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Anubhav

    Vehicle aim

    Sorry for bumping, but still I don't get this aiming vector. How should I get it?
  2. No, you just need to follow these steps. 1. Get the texture name 2. Get the original texture and edit it 3. dxCreateTexture + dxSetShaderValue I think these were they
  3. Just a example open = fileOpen(yourarguments) local read = fileRead( open ) fileWrite( open, read.."yolo" )
  4. You can make new weapons using shaders.
  5. Anubhav

    I need help!

    getElementData(source, "gang") Replace every line like that with ( in server.lua ) getElementData(source, "gangs")
  6. Use getTeamName( getPlayerTeam( source ) ) Why? It is because getPlayerTeam returns the userdata of team and you are comparing userdata with string. Instead, get the team team name using getTeamName
  7. Start runcode and run this in /crun. /crun showChat( true ) not sure, but might work
  8. Some sort of this shit = { "yo", "yo2" } When it's at yo it will return 1 and when at yo2 it will return 2. Remember ipairs is only for indexed tables. And v will show the value yo and yo2.
  9. linux.multitheftauto.com Make sure you have 64 bit CentOS or any other O.S Then click on the x64 download pack, then install it!
  10. Anubhav

    Crashing!

    http://upload.mtasa.com/u/409562450/dumps.rar_
  11. Try re-installing MTA?
  12. Anubhav

    Crashing!

    Version = 1.4.1-release-7060.0.000 Time = Tue Feb 10 08:25:56 2015 Module = C:\WINDOWS\SYSTEM32\KERNELBASE.dll Code = 0xE06D7363 Offset = 0x00012F71 EAX=0028EF00 EBX=081E7FF7 ECX=00000003 EDX=00000000 ESI=603DC164 EDI=C0F3DFDC EBP=0028EF58 ESP=0028EF00 EIP=75402F71 FLG=00000216 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B that's the crash info. I'm always crashing in a server only, which is mine locked. ( not local ). And when I use guieditor and select a memo my screen hangs then I set the laptop on hibernate and see that mta has crashed. Please help me!
  13. Hey blind man, open your eyes. Do you even know what he is saying? No offence, but that is not at all A SHADER. He wants to apply a shader not a mod..
  14. I don't recommend absoulte position at all. Relative is ok, but the best is guiGetScreenSize method. You can go on wiki, this feature can be done on GUI's. Just set the GUI's Position Code to center. How? 1. Right click on gui 2. Click on set position code 3. Go to Presets and select Center 4. CliCk done
  15. Anubhav

    [HELP] Please

    addEvent("onZombieWasted") addEventHandler( "onZombieWasted", getRootElement(), function (killer) killerName = getPlayerName(killer):gsub( "#%x%x%x%x%x%x", "" ) weapon = getPedWeapon(killer) wr, wg, wb = getPlayerNametagColor(killer) exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=162,g=2,b=2},"Zombie"},getRootElement(),wr,wg,wb ) end)
  16. True dat.. If you want modules buy x32. I'm so unfortunate I bought a x64 Ubuntu.
  17. Sure, Dealman 1. When I press M to start then stop the radar is hidden forever. 2. It doesn't show maps. ( I mean which I mad in map editor then I started that as a resource, then I pressed M )
  18. I know it's in beta, but it's too buggy. ._.
  19. Anubhav

    [help]Drugs

    server x, y, z = 1, 1, 1 -- lv positiion change ti function lsjobser () car = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, car) markerLS = createMarker (1784.78, -1702.06, 12.50, "cylinder", 2, 255, 0, 0, 255) blipLS = createBlipAttachedTo (markerLS, 40) end function MarkerHit ( hitPlayer, matchingDimension ) carls = createVehicle (440, x, y, z) warpPedIntoVehicle(source, carls) markerLS = createMarker (x, y, z, "cylinder", 2, 255, 0, 0, 255) blipLS = createBlipAttachedTo (markerLS, 40) end addEvent ("givePlayerJobLS", true) addEventHandler ("givePlayerJobLS", root, lsjobser) function moneyLS (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 3000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+2) destroyElement(markerLS) destroyElement(blipLS) destroyElement(car) end end addEventHandler( "onMarkerHit", root, moneyLS ) function lvjobser () carlv = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, carlv) markerLV = createMarker (1074.43, 1292.71, 9.82, "cylinder", 2, 255, 0, 0, 255) blipLV = createBlipAttachedTo (markerLV, 40) end addEvent ("givePlayerJobLV", true) addEventHandler ("givePlayerJobLV", root, lvjobser) function moneyLV (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 6000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+4) destroyElement(markerLV) destroyElement(blipLV) destroyElement(carlv) end end addEventHandler( "onMarkerHit", root, moneyLV ) function sfjobser () carSF = createVehicle (440, 2460.52, -2004.38, 13.54) warpPedIntoVehicle(source, carSF) markerSF = createMarker (-2052.80, 144.87, 27.83, "cylinder", 2, 255, 0, 0, 255) blipSF = createBlipAttachedTo (markerSF, 40) end addEvent ("givePlayerJobSF", true) addEventHandler ("givePlayerJobSF", root, sfjobser) function moneySF (attacker) if (attacker) and (attacker ~= source) then givePlayerMoney(attacker, 10000) setPlayerWantedLevel(attacker, getPlayerWantedLevel(attacker)+6) destroyElement(markerSF) destroyElement(blipSF) destroyElement(carSF) end end addEventHandler( "onMarkerHit", root, moneySF ) client GUIEditor_Label = {} transWindow = guiCreateWindow(182,134,482,342,"Drug Transport Window",false) guiSetVisible(transWindow, false) destiLabel = guiCreateLabel(19,33,450,55,"Choose your destination",false,transWindow) lsButtonRadio = guiCreateRadioButton(21,104,437,19,"Los Santos, +2 Wanted Stars and 3000 if you made it",false,transWindow) lvButtonRadio = guiCreateRadioButton(20,149,437,19,"Las Venturas, +4 Wanted Stars and 6000 if you made it",false,transWindow) sfButtonRadio = guiCreateRadioButton(20,193,437,19,"San Fierro, +6 Wanted Stars and 10000 if you made it",false,transWindow) acceptButton = guiCreateButton(103,267,113,37,"Accept",false,transWindow) closeButton = guiCreateButton(241,266,108,37,"Close",false,transWindow) local jobmarker = createMarker ( 2448.68, -1976.63, 12.54, "cylinder", 2, 255, 0, 0, 255 ) createBlipAttachedTo (jobmarker, 40) function onMarkerHit( player ) if localPlayer == player and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == "Criminal" then guiSetVisible( transWindow, true ) showCursor( true ) end end addEventHandler( "onClientMarkerHit", jobmarker, onMarkerHit ) function closeChangeJobWindow() if (source == closeButton) then guiSetVisible(transWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), closeChangeJobWindow) function lsjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lsButtonRadio)) then triggerServerEvent ("givePlayerJobLS",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lsjobcli, false ) function lvjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(lvButtonRadio)) then triggerServerEvent ("givePlayerJobLV",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, lvjobcli, false ) function sfjobcli() if (source == acceptButton) then if (guiRadioButtonGetSelected(sfButtonRadio)) then triggerServerEvent ("givePlayerJobSF",getLocalPlayer()) guiSetVisible(transWindow, false) showCursor(false) end end end addEventHandler("onClientGUIClick", acceptButton, sfjobcli, false )
  20. Anubhav

    PuTTY

    Fixed it myself today, I installed x64 mta server then it works perfect.
  21. Anubhav

    PuTTY

    When I attached to screen of mtasa, ctrl+c even doesnt work. I cant type anything without : CTRL A+D ( detach ). Any solution?
  22. Use my code and in server 2nd argument of addEventHandler should be root.
×
×
  • Create New...