Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. I am not helping you. Its not your script how can you expect us to do these things? You are just asking for help and trying nothing by yourself. I am not helping you anymore like this.
  2. Show us your function where u binded the infernus.!
  3. local sWidth,sHeight = guiGetScreenSize() local Width,Height = 395,910 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) local alpha = 255 local mode = "fade" local img = "img/login_bg.png" addEventHandler ( "onClientRender", root, function ( ) if ( mode == "fade" ) then if ( alpha <= 10 ) then img = "img/login_bgfinal.png" mode = "build" else alpha = alpha - 5 end else alpha = alpha + 5 if ( alpha > 255 ) then alpha = 255 end end dxDrawImage ( 0, 0, 1920, 1200, img, tocolor ( 255, 255, 255, alpha ) ) end )
  4. local sWidth,sHeight = guiGetScreenSize() local Width,Height = 395,910 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) local alpha = 255 local mode = "fade" local img = "img/login_bg.png" addEventHandler ( "onClientRender", root, function ( ) if ( mode == "fade" ) then if ( alpha <= 10 ) then img = "img/login_bgfinal.png" mode = "build" else alpha = alpha - 1 end else alpha = alpha + 1 if ( alpha > 255 ) then alpha = 255 end end dxDrawImage ( 0, 0, 1920, 1200, img, tocolor ( 255, 255, 255, alpha ) ) end )
  5. I sold this resource instead of releasing at community. Requesting /lock!
  6. What do you mean?
  7. .... I had replaced it with source and idk what happend. Thanks for marking
  8. function weaponSwitchBack(previousWeaponID, currentWeaponID) local weapon1 = getElementData(source, "currentweapon_1") if not weapon1 then return end local ammoData1, weapID1 = getWeaponAmmoType(weapon1) local x, y, z = getElementPosition(source) local rx, ry, rz = getElementRotation(source) if previousWeaponID == weapID1 then if elementWeaponBack[source] then setElementID(source, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end elementWeaponBack[source] = createObject(getWeaponObjectID(weapID1), x, y, z) setObjectScale(elementWeaponBack[source], 0.875) if elementBackpack[source] then attachElementToBone(elementWeaponBack[source], source, 3, 0.19, -0.31, -0.1, 0, 270, -90) else attachElementToBone(elementWeaponBack[source], source, 3, 0.19, -0.11, -0.1, 0, 270, 10) end elseif currentWeaponID == weapID1 then setElementID(source, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) if isElement(elementWeaponBack[source]) then destroyElement(elementWeaponBack[source]) end elementWeaponBack[source] = false end end addEventHandler("onPlayerWeaponSwitch", getRootElement(), weaponSwitchBack)
  9. Anubhav

    player

    How to make player pass through a player? Thinking from a long time about it.
  10. Anubhav

    exports :3

    Solved request a lock. EDIT: That was the problem Sam1ler, just I looped with a table tat din't exist LOL.
  11. Anubhav

    exports :3

    Help please. its very urgent!
  12. Anubhav

    exports :3

    I've problems using one export. Meta: server.lua function isPlayerSupporter(s) for v, k in ipairs(supportAcc) do -- supportAcc defined as a table. Nothing wrong here. if getAccountName(getPlayerAccount(s)) == k then return true end end end Call always gets failed. I am using this: if exports.SGNmisc:isPlayerSupporter(s) -- s is defined and this is a part of a script. This is where call gets failed.
  13. Point it correctly then.
  14. Anubhav

    help

    Add me at skype, anubhav.agarwal87. We'll deal the price.
  15. addEvent("ib", true) addEventHandler("ib", root, function() local x, y, z = getElementPosition ( source ) Vehicle = createVehicle (443, x+2, y, z ) warpPedIntoVehicle ( source, Vehicle) setElementData ( source, "destroy", Vehicle ) client1 = createPed(36, 2851.8000488281,-1911.4000244141,11.10000038147,318.001373) local arrow1 = createMarker ( 2851.8000488281,-1911.4000244141,13, "arrow", 1, 255, 255, 0, 170 ) marker1 = createMarker ( 2854.3000488281,-1911,10, "cylinder", 1, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", marker1, onHit,false) end ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 420 ) then warpPedIntoVehicle ( client1, Vehicle) end end end
  16. Anubhav

    help

    None will make you for free.
  17. Its with ground then. None can help you.
  18. addEvent("ib",true) addEventHandler("ib",root, function () local x, y, z = getElementPosition ( source ) Vehicle = createVehicle (443, x+2, y, z ) warpPedIntoVehicle ( source, Vehicle) setElementData ( source, "destroy", Vehicle ) local client1 = createPed(36, 2851.8000488281,-1911.4000244141,11.10000038147,318.001373) local arrow1 = createMarker ( 2851.8000488281,-1911.4000244141,13, "arrow", 1, 255, 255, 0, 170 ) marker1 = createMarker ( 2854.3000488281,-1911,10, "cylinder", 1, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", marker1, onHit,false) end ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 420 ) then warpPedIntoVehicle ( thePlayer , Vehicle) end end end
  19. onClientGUIClick on gridlist would work?
  20. Why are we discussing that here? Anyways I did alot of it. Maybe I'll need help. I may decide it to sell in bitcoins.
  21. Click on the button on Earth with a cross. Then click on that object.
  22. Reinstall graphic drivers and those things. Don't work? That means that your graphic card/RAM/ROM is not good.
  23. addEvent("ib", true) addEventHandler("ib", root, function() marker1 = createMarker(...) addEventHandler("onMarkerHit", marker1, onHit, false) end ) function onHit(hitElement) if getElementType(hitElement) == "player" then warpPedIntoVehicle(hitElement, Vehicle) end end
  24. No problem.
  25. vip = {} function VIPMENUTRIGGER ( thePlayer , commandName ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent ( thePlayer, "GUIVIP", thePlayer) if isElement(vip[thePlayer]) then destroyElement (CRIADO) end else outputChatBox ( "Voce nao e vip, para comprar fale com alguem da staff",thePlayer) end end addCommandHandler ( "vip", VIPMENUTRIGGER ) function vehiclecar (id) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then local x,y,z = getElementPosition ( source ) vip[source] = createVehicle ( id, x + 3, y, z + 1 ) warpPedIntoVehicle(source, criado) setElementModel(source, id) outputChatBox("[VIP] Veiculo criado",source,255,255,0,false) end end addEvent( "carr", true ) addEventHandler( "carr", getRootElement(),vehiclecar )
×
×
  • Create New...