Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/26/21 in all areas

  1. Version 1.1.0

    745 downloads

    Description: This resources provides the ability to create/control sound in 3D via custom API. A slightly redesigned version of the Sound API, with real synced 3d effect. API: // Client-side mp.game.audio.playSound3D(veh_id, url, range, volume, track_length) /* * veh_id: int(Required) [Vehicle RemoteID] * url: string (Required) [Links and local package:// protocol are supported] * range: int (Optional, Default: 60) * volume: int (Optional, Default: 1) [Range: 0 to 1] * track_length: int (Optional, Default: 180) [Current track length in seconds] */ /// EVENTS: // (Client) /* * EventName: audioFinish * params: soundID (Vehicle's RemoteID that is finished Playing) */ /* * EventName: audioError * params: soundID (Vehicle's RemoteID that had error), errorObject {code: 'error code', error: 'error description'} */ // (Server) /* * EventName: sound:create * params: id, (Vehicle's RemoteID) url, range, volume, track_length */ /* * EventName: sound:destroy * params: id (Vehicle's RemoteID) */ /* * EventName: sound:pause * params: id (Vehicle's RemoteID) */ /* * EventName: sound:resume * params: id (Vehicle's RemoteID) */ /* * EventName: sound:setVolume * params: id (Vehicle's RemoteID), volume */ // Example let vehicleId = mp.players.local.vehicle.remoteId; mp.game.audio.playSound3D(vehicleId, 'http://rfcmedia.streamguys1.com/MusicPulse.mp3', 20, 1, 60); mp.events.callRemote('sound:pause', vehicleId); mp.events.callRemote('sound:resume', vehicleId); mp.events.callRemote('sound:destroy', vehicleId); If you have any issues or suggestions, you know the usual routine. Credits: - Thanks to Captien for his 3D sound API. Media:
    1 point
  2. www.focus-rp.com discord.focus-rp.com A B O U T U S Focus Roleplay is server with 'old-school' text based gamemode and as such is first server of that type on Balkan continent. Our goal is to provide you an unforgettable roleplay experience. This project is led by a small group of very enthusiastic people who code from love and enjoy playing on roleplay server since 2009. Also, one of the our fundamental goal is that every new member of our community finds something for himself to enjoy and to grow as a roleplay player. Everyone is welcome! M E D I A INSTAGRAM FACEBOOK YOUTUBE O N E X - Y U
    1 point
  3. L O G I N & S E L E C T O R I N T E R F A C E PHOTOS IN SPOILER
    1 point
  4. 1.1 version comes by default when you install RAGE, also it doesn't need any bridge plugin.
    1 point
  5. Maybe because it is for version 1.0, but you're using 1.1 I guess, your code looks fine.
    1 point
×
×
  • Create New...