Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/16/18 in Files

  1. Version 1.0.0

    1020 downloads

    This script adds the colored xenon headlights feature from Arena War DLC. Installing Put coloredhlights into your server's client_packages directory, then add require('coloredhlights'); to client_packages/index.js. Using Set the headlightColor shared variable of a vehicle to the headlight color ID you want. Command example: // /hcolor 10 should make your vehicle's headlights pink mp.events.addCommand("hcolor", (player, _, colorId) => { if (player.vehicle) { player.vehicle.data.headlightColor = Number(colorId); } else { player.outputChatBox("You're not in a vehicle!"); } }); Headlight Colors Since Rockstar didn't make headlight colors RGB, you can only use a set of numbers as color IDs. 0 = White 1 = Blue 2 = Light Blue 3 = Green 4 = Light Green 5 = Light Yellow 6 = Yellow 7 = Orange 8 = Red 9 = Light Pink 10 = Pink 11 = Purple 12 = Light Purple Color IDs higher than 12 will force xenon headlights to use their default color. Notes Since this script toggles the xenon headlights mod (toggleMod 22), it may not work with your car customization script. Color IDs lower than 0 and color ID 255 will disable the feature (revert headlights back to normal from xenon) until you set a valid color again.
    2 points
  2. Version 1.0.0

    137 downloads

    A library to easier manage CEF windows. Creating a CEF Window Function is based on Promise because I need this in my own resources. Promise return a CEF window object. cef window name (string) url (string) parameters to exec (array) - take a look on Executing a function into a CEF Window for parameters cefManager.createCef(cef window name, url, parametersToExec).then(cef => {}) cefManager.createCef('hud', 'package://rage/browsers/hud/index.html').then(cef => {}) Executing a function into a CEF Window Again function is based on Promise but returns nothing. cef window name (string) [function name (string), args how much you need(number, string, boolean etc.)] cefManager.executeCef(cef window name, [function name, args]).then(() => {}) cefManager.executeCef('hud', ['console.log', mp.players.length]).then(() => {}) Checking if CEF with name exists cef window name (string) cefManager.existsCef(cef window name) const exists = cefManager.existsCef('hud') Get CEF window object cef window name (string) cefManager.getCef(cef window name) const cef = cefManager.getCef('hud') Get CEF window current URL cef window name (string) cefManager.getCurrentCefURL(cef window name) const url = cefManager.getCurrentCefURL('hud') Get CEF window URL which was set in creating CEF window cef window name (string) cefManager.getCefURL(cef window name) const url = cefManager.getCefURL('hud') Reload CEF window Again Promise cef window name (string) ignore cache (boolean) - true to ignore cache (Browser::reload) cefManager.reloadCef(cef window name, ignore cache) cefManager.reloadCef('hud', true).then(() => {}) ps. no support from me for this library, if something works bad fix it.
    1 point
  3. Version 1.9 without sql db

    13546 downloads

    Hello, it's my old version LSFIVEM gamemode v1.6 Detailed before: https://forum.lsfivem.com/index.php?forums/Новости.20/ Installing 1. Download archive and extract to rage:mp server folder 2. Set config mysql in packages/roleplay/mysql.js 3. Insert SQL from archive to datebase 4. Enjoy, but need do it other registration form (across web) Date Build: 26 december 2017 Good Luck.
    0 points
×
×
  • Create New...