Jump to content

Gravestone

Members
  • Posts

    467
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Gravestone

  1. DELETE: https://community.multitheftauto.com/in ... ls&id=3440 Reason: 2 script files which include nothing just the server's IP and name. DONE
  2. Post it here: https://forum.multitheftauto.com/viewforum.php?f=177
  3. You have posted in the wrong section. Your topic needs to be posted here: https://forum.multitheftauto.com/viewforum.php?f=177
  4. Is there anyway I can allow players to scroll weapons on jetpack? I enabled all the weapons on jetpack but now I want to enable scrolling too.
  5. Khadeer khan aik copy cat hai jis ke dimagh main apne ideas nahin hain. Baki 10 saal kai bachoon ki tarhan ye bhi Grafuroam ka clone bana raha hai. Khadeer bhai main apko suggest karta hoon apne ideas ka koi server bhanao.
  6. Oh, then what should it be like?
  7. Guys, this guy is creating a clone server of Grafuroam like other kids. I would suggest not to help him to avoid getting your reputation in the community ruined.
  8. Can you provide us with a screenshot of the debug?
  9. You mean certain objects created by the maps? No. That's not possible since the next running gamemode map stops the previous running game mode maps.
  10. Gravestone

    help

    setElementData
  11. Gravestone

    help

    I've tried the code, it works fine.
  12. Gravestone

    help

    First, add a code to every resource to save the data onResourceStop. When you're done, then add this code to a resource which has the right to command.shutdown: addCommandHandler ( "safeshutdown", function ( player, command, ... ) if ( hasObjectPermissionTo ( player, "function.shutdown" ) ) then local reason = table.concat({...}," ") local resources = getResources() for i,v in ipairs(resources) do stopResource(v) shutdown ( reason or "" ) end end end )
  13. If you're trying to save username, creating an XML file is the best way to do so.
  14. The first argument of bindKey is the element to bind the key of. Try this: bindKey(localPlayer, "aim_weapon", "both", function(key, state) local weapon = getPedWeapon(localPlayer) if weapon ~= 0 and weapon ~=1 and weapon ~= 34 then if state == "down" then addEventHandler("onClientRender", root, drawCrosshair) else removeEventHandler("onClientRender", root, drawCrosshair) end end end )
  15. Since you are new to the forum, after asking for help, you need to provide us with the code which you are having problems with.
  16. Try using getPedWeapons
  17. And who was I telling it to?
  18. onPlayerWasted's first parameter is the total ammo of the player who died so you by writing source in there, you were trying to fetch information about the ammo's total ammo and account name which is impossible lol. So here's the fixed code. function hp() ammo = getPedTotalAmmo(source) weapon = getPedWeapon(source) playeraccount = getPlayerAccount ( source ) setAccountData(playeraccount,"weapon",weapon) setAccountData(playeraccount,"ammo",ammo) end addEventHandler("onPlayerWasted",getRootElement(),hp) addEventHandler("onPlayerSpawn",getRootElement(), function () local playeraccount = getPlayerAccount ( source ) local weapon = getAccountData(playeraccount,"weapon") local ammo = getAccountData(playeraccount,"ammo") giveWeapon(source,weapon,ammo) end)
  19. Define element through getPedOccupiedVehicle.
×
×
  • Create New...