Anubhav

Members
  • Content count

    2,465
  • Joined

  • Last visited

Community Reputation

9 Neutral

4 Followers

About Anubhav

  • Rank
    Shooter

Details

  • Gang
    A-team

Recent Profile Visitors

1,489 profile views
  1. Can't download files on local server

    So?
  2. I can download from other online servers. Only from local server cannot download, it times out later on. https://pastebin.mtasa.com/583515500
  3. destroyElement..

    where are you setting the element data?
  4. Report community resources here!

    delete https://community.mtasa.com/index.php?p=resources&s=details&id=11373 https://community.mtasa.com/index.php?p=resources&s=details&id=9581 DONE
  5. addCommandHandler("checkplayervehicle", function(source, cmd, target) if not (target) then outputChatBox("/checkplayervehicle [Player]") return false end local target, targetName = exports["serverCore"]:findPlayer(source,target) if target then local targetAccount = getAccountName(getPlayerAccount(target)) local playercar1 = executeSQLQuery("SELECT Model FROM vehicleSlot1 WHERE PlayerName = ?",targetAccount) if #playercar1 > 1 then outputChatBox(getVehicleNameFromModel(playercar2[1].Model),source) else outputChatBox("slot 1 empty",source) end local playercar2 = executeSQLQuery("SELECT Model FROM vehicleSlot2 WHERE PlayerName = ?",targetAccount) if #playercar2 > 1 then outputChatBox(getVehicleNameFromModel(playercar2[1].Model),source) else outputChatBox("slot 2 empty",source) end end end )
  6. How to change sniper scope

    It isn't complex actually...?
  7. how to add markers

    createMarker createBlipAttachedTo
  8. kick a player is not working?

    Add "resource.admin" to "Admin" ACL group. That should do the trick.
  9. screenX, screenY problem

    For every lower height, try to increase the Y by some value to have the same size. It will have same size, and it should fit. You have to find the some value tho.
  10. How to change sniper scope

    I assume drawing the image while the person in aiming sniper through isPedAiming (useful function), and then adding a picture which has the same diameter circle should do. You could add some frames in it to make it look more better
  11. Getting, and inserting data to MySQL!

    Very hard to give proper answers isn't it? Lol. The syntax for INSERT is incomplete and wrong because it is incomplete. And by the way you do not poll dxExecs..... Anyways, there is a good tutorial on this. Go there and check the first post with db functions.
  12. Randomly Teleport Tp PvP places

    function spawn( player ) local rnd = math.random( 1, #spawns ) setElementPosition( player, spawns[rnd][1], spawns[rnd][2], spawns[rnd][3] ) setElementPosition( player, 0 , 0, spawns[rnd][4] ) end addCommandHandler("pvp",spawn)
  13. How to pass server Timer to client ?

    How about using getTimerDetails, and setting those details in a table in setElementData? Server timers are different from client sided timers Client sided timers usually depend on FPS.
  14. [Help] Some script

    https://wiki.multitheftauto.com/wiki/OnPlayerScreenShot trigger client event with imageData of that create the file client side
  15. Anti-zombie player

    function katana(attacker, weapon, bodypart, loss) if getElementData(attacker, "zombie", true) then if getPedWeapon(attacker) == 8 then setElementHealth(source, getElementHealth(source) - 40) end end end addEventHandler("onPlayerDamage", getRootElement(), katana)