Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/28/21 in Files

  1. Version 1.0.2

    258 downloads

    Attach a player to bmx, cruiser or scorcher bike optional downloads: https://de.gta5-mods.com/vehicles/lowrider-bike-add-on-replace https://de.gta5-mods.com/vehicles/forever-28-inches-bike-add-on-extras Installing extract attachedBike folders to packages/attachedBike and client_packages/attachedBike if you allready have a index.js in your client_packages: add "require('attachedBike')" Usage Press "G" - Attach/Unattach player to/from bike Spawn a Cruiser: /bike Spawn a Bmx: /bike bmx Spawn a Scorcher: /bike scorcher optional mod bikes: /bike yj28 /bike lowriderb Notes GitHub: https://github.com/Yoegibby/ragemp-attachedBike
    2 points
  2. 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
×
×
  • Create New...