Jump to content

Milkbottle

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Milkbottle

  1. Hey, i was wondering if anyone has an idea for writing a c# noclip script. I dont really now how to set the camera so your flying with it around.
  2. Hey, i want to save the Social Club ID from a player in my DB but i dont know how to get the ID. I tried this from the wiki but i didnt get it to work. https://wiki.rage.mp/index.php?title=GetPlayerSocialClubId.
  3. Hello Community, I am currently coding with C# and i have a problem. I dont know how i can play an animaiton to a ped when a player comes close, so the Ped is playing an interaction Animaiton if the player comes close. I dont know how to do this and i would really appreciate it if i could get some help. Server Side [RemoteEvent("OnPlayerPressF")] public void OnPlayerPressFNPC1(Player player) { if (!Accounts.IsPlayerLoggedIn(player)) return; Vector3 npcPosition = new Vector3(-1288.5276, 301.5308, 64.92535); if (player.Position.DistanceTo(npcPosition) < 1.5f) { player.SendNotification("~g~Test"); } } Client Side mp.peds.new ( mp.game.joaat("cs_barry"), new mp.Vector3(-1288, 301, 64), -88.5, 0); mp.keys.bind(0x46, true, function() { if(mp.player.local.isTypingInTextChat) return; mp.events.callRemote('OnPlayerPressF'); })
  4. Hey, i am new to Ragemp coding and i am trying to get this code to work. At the Moment i need to type /freeze [Player Name] [true/false] but I want that i can type /freeze [ID] [true/false] [Command("freeze", "/freeze a player ")] public void CMD_FreezePlayer(Player player,Player target, bool freezestatus) { Accounts account = player.GetData<Accounts>(Accounts.Account_Key); if (!account.IsPlayerAdmin((int)Accounts.AdminRanks.Supporter)) { player.SendNotification("~r~You are not an Admin"); return; } NAPI.ClientEvent.TriggerClientEvent(target, "PlayerFreeze", freezestatus); string freezeText = (freezestatus) ? "freezed" : "unfreezed"; NAPI.Util.ConsoleOutput(player.Name + " has " + target.Name + " freezed/entfreezed " + freezestatus); }
×
×
  • Create New...