Jump to content

Truen

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Truen

  1. Actually, it changes when you add it. I meant how can I prevent this? What causes this?
  2. 🌟 Welcome to IX ROLEPLAY - Where Roleplay Meets Innovation IX ROLEPLAY is a premium Turkish RageMP server offering an immersive roleplaying experience with custom-built systems and active community engagement. 🔥 KEY FEATURES: - Custom economy system with dynamic market - Advanced job system with unique progression - Detailed character customization - Premium vehicle handling and modifications - Active and helpful staff team - Regular events and competitions - Balanced economy with anti-cheat measures - Custom phone system - Faction system with unique features - Family System 🌐 Join Our Community: - Website: https://ixroleplay.com - Discord: https://discord.gg/ixrp 📌 SERVER INFORMATION: - Location: Turkey - Language: Turkish (Primary), English (Supported) ------------------- 🌟 IX ROLEPLAY - Premium Türk Roleplay Deneyimi IX ROLEPLAY, özel sistemleri ve aktif yönetim kadrosuyla Türkiye'nin yenilikçi RageMP sunucusudur. 🔥 ÖZELLİKLER: - Dinamik market sistemiyle özel ekonomi - Gelişmiş meslek sistemi - Detaylı karakter özelleştirme - Premium araç fizikleri ve modifikasyonları - Aktif ve yardımsever yetkili kadrosu - Düzenli etkinlikler ve yarışmalar - Dengeli ekonomi ve hile koruması - Özel telefon sistemi - Benzersiz özelliklere sahip fraksiyon sistemi - Aile sistemi 🌐 Topluluğumuza Katılın: - Website: https://ixroleplay.com - Discord: https://discord.gg/ixrp 📌 SUNUCU BİLGİLERİ: - Lokasyon: Türkiye - Dil: Türkçe (Ana), İngilizce (Desteklenen) #IXRP #RageMP #Roleplay #TurkishRP #Gaming
  3. class PlayerPointing { private isPointing: boolean = false; private keyPressed: boolean = false; private player: PlayerMp = mp.players.local; constructor() { this.init(); } private init() { mp.keys.bind(72, false, this.handleKeyPress.bind(this)); mp.events.add('render', this.update.bind(this)); } private async startPointing() { try { const dict = 'anim@mp_point'; mp.game.streaming.requestAnimDict(dict); while (!mp.game.streaming.hasAnimDictLoaded(dict)) { await mp.game.waitAsync(0); } // Hide weapon mp.game.invoke('0x7FEAD38B326B9F74', this.player.handle, false); this.player.setConfigFlag(36, true); mp.game.invoke('0x2D537BA194896636', this.player.handle, "task_mp_pointing", 0.5, 0, dict, 24); mp.game.streaming.removeAnimDict(dict); } catch (error) { console.log('Start pointing error:', error); } } private stopPointing() { try { mp.game.invoke('0xD01015C7316AE176', this.player.handle, "Stop"); if (!this.player.isInAnyVehicle(true)) { // Show weapon mp.game.invoke('0x7FEAD38B326B9F74', this.player.handle, true); } this.player.setConfigFlag(36, false); this.player.clearTasks(); } catch (error) { console.log('Stop pointing error:', error); } } private handleKeyPress() { if (!this.keyPressed) { if (!this.isPointing && this.player.isOnFoot()) { this.keyPressed = true; this.isPointing = true; this.startPointing(); } else if (this.isPointing || !this.player.isOnFoot()) { this.keyPressed = true; this.isPointing = false; this.stopPointing(); } } } private update() { if (this.keyPressed && !mp.keys.isDown(72)) { this.keyPressed = false; } if (mp.game.invoke('0x921CE12C489C4C41', this.player.handle) && !this.isPointing) { this.stopPointing(); } if (mp.game.invoke('0x921CE12C489C4C41', this.player.handle) && this.player.isOnFoot()) { const camPitch = mp.game.cam.getGameplayRelativePitch(); const camHeading = mp.game.cam.getGameplayCamRelativeHeading(); let adjustedPitch = Math.max(-70.0, Math.min(42.0, camPitch)); adjustedPitch = (adjustedPitch + 70.0) / 112.0; let adjustedHeading = Math.max(-180.0, Math.min(180.0, camHeading)); adjustedHeading = (adjustedHeading + 180.0) / 360.0; const coords = this.player.getOffsetFromInWorldCoords( Math.cos(camHeading) * -0.2 - Math.sin(camHeading) * (0.4 * adjustedHeading + 0.3), Math.sin(camHeading) * -0.2 + Math.cos(camHeading) * (0.4 * adjustedHeading + 0.3), 0.6 ); const ray = mp.raycasting.testPointToPoint( new mp.Vector3(coords.x, coords.y, coords.z - 0.2), new mp.Vector3(coords.x, coords.y, coords.z + 0.2), this.player.handle, 7 ); mp.game.invoke('0xD5BB4025AE449A4E', this.player.handle, "Pitch", adjustedPitch); mp.game.invoke('0xD5BB4025AE449A4E', this.player.handle, "Heading", adjustedHeading * -1.0 + 1.0); mp.game.invoke('0xB0A6CFD2C69C1088', this.player.handle, "isBlocked", ray ? 1 : 0); } } } export default new PlayerPointing();
  4. beast!
  5. My Error: TypeError: Cannot read property 'graphics' of undefined mp.game.graphics.startScreenEffect("DeathFailNeutralIn", 5000, false); My Code İs Here: function playerDeathHandler(player, reason, killer) { const deathName = player.name; if (killer) { const killerName = killer.name; mp.players.broadcast(`${killerName} killed ${deathName}. Reason: ${reason}`); } else { mp.players.broadcast(`${deathName} Öldü. Sebep: ${reason}`); } if(reason == 341774354) { mp.players.broadcast(`${deathName} died in a chopper!`); return; } } mp.events.add("playerDeath", playerDeathHandler); mp.events.add("playerDeath", (player, reason, killer) => { mp.game.graphics.startScreenEffect("DeathFailNeutralIn", 5000, false); });
  6. let fuelCords = [ {x: 261.078, y: -1266.621, z: 28.407}, {x: 1180.527, y: -325.744, z: 68.437} ]; for (let i = 0; i < fuelCords.length; i++) { const element = fuelCords[i]; mp.blips.new(72, new mp.Vector3(element.x, element.y, element.z), { name: 'Benzinlik', color: 51, shortRange: true, }) }
×
×
  • Create New...