Skip to content

tracid56/fivem-hypnonema

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hypnonema 🎬 🎥🍿

FiveM Cinema Resource

Hypnonema is a Cinema Resource for FiveM.

Hypnonema

Table of Contents

Features

  • Synchronized
  • Plays YouTube Videos
  • Volume calculation configurable (Attenuation, Min-Distance for now)
  • NUI Frontend
  • ACE-Permissions
  • (advanced) Scaleform placement configurable

Requirements

*Hint: There is a minimal http server for testing purposes included.

Setup

Copy the index.html inside wwwroot to a directory on your webserver and edit the __resource.lua so that hypnonema_url points to the location on your webserver.

hypnonema_url 'https://WEBSERVERADDRESS/hypnonema/index.html'

Place "hypnonema" folder inside your fivem resources directory and append following line to your server.cfg

start hypnonema

ACE-Permissions

By default only admins are allowed to execute the /hypnonema command. To permit additional users to make use of the command make sure to edit your server.cfg

add_ace identifier.steam:steamidhere "command.hypnonema" allow

HTTP-Server

Do not use this for production! If you are working locally or just for testing purposes, you may enable the minimal HTTP-Server with editing __resource.lua

-- the url to your webserver containing the corresponding html file for use in hypnonema (the file inside wwwroot)
hypnonema_url 'http://localhost:9414/'

-- whether to use the built-in http server or not. WARNING: FOR TESTING PURPOSES ONLY!
hypnonema_http_server 'true'
hypnonema_listen_addr '0.0.0.0'
hypnonema_http_port '9414'

(Optional) Example Map

There is an example map included, just copy the folder hypnonema-map to your resource directory and add start hypnonema-map to your server.cfg.

Usage

Type /hypnonema in chat to open the NUI-Frontend.

License

This project is licensed under the MIT License - see LICENSE file for details

Support

Please open an issue for support.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 52.6%
  • TypeScript 22.9%
  • HTML 16.2%
  • JavaScript 3.4%
  • Lua 3.1%
  • CSS 1.8%