Coder Social home page Coder Social logo

mythic_phone's Introduction

PUT THE YARN.LOCK IN THE UI MAIN FOLDER AND REPLACE OTHERWISE THE PHONE WILL FACE ISSUES

Mythic Phone | WIP

This is a custom phone written for Mythic RP. It is replacing an existing port of GCPhone after having loads of issues with trying to successfully port. This is very much a Work In Progress and you should not even look into using this unless you're prepared to do a shitload of work.

Dependencies

This is a WIP resource so this dependency list is very likely to expand as features are added.

Things to Replace

local tPlayer = exports["mythic_base"]:FetchComponent("Fetch"):Phone(data.number) ---> local tPlayerId = exports["utils"]:getIdentifierByPhoneNumber(data.receiver) tPlayer:GetData("source") ---> local tPlayerSourceID = ESX.GetPlayerFromIdentifier(tPlayerId).source

TODO

Text Messages: Unread messages Indicator at the bottom

Calls: E to hold G to hangup dont work

Testing

Calls : Mute Hangup Call : Contacts History Answer Talking Delete

Messages : Send Receive Delete Call

Contacts : Add Delete Edit Call Message Search

Comments

Due to the scope of this project expanding I've ended up adding in some various resources to aid in making the files that need to be included for the phone to funciton in-game end up minified and compressed into as few files as possible but while retaining readability and breaking up the code into logical sections. So due to this you'll need a few things in order to get this working from the source alone.

  • JS - Due to how I have the JavaScript structured I have opted to setup webpack to minify the files into a single file. This makes it far easier to add content in the future and not have to mess around with importing as well as ensures the file that's being included in the manifest file will always be the one that has all the data for it. Not sure if there's any sort of major performance issues. When you clone the repo, cd into the html folder and use command yarn if you have yarn or npm install if you're using npm and it will install all the required dependencies. After that run yarn run build or npm run build and it will build the minified build.js file needed.

Note: You can in theory just change the manifest to include the regular JS files as well as add them being included in the HTML file and it'll work. But I will not give any guarantee that it'll work doing so. It's also using ES6 modules so you may end up with errors because of that.

You not shit with webpack? Feel free to get the stupid thing to work & pack all depedencies needed and make a pull request. Because I cannot for the life of me get that dumbshit to work

Libraries Used


Screenshots

Home

Home Screen Home Screen

Contacts

Contacts App Contacts App Contacts App Contacts App Contacts App Contacts App

Phone

Phone App Phone App Phone App

Messages

Messages App Messages App Messages App Messages App

Twitter

Twitter App Twitter App

mythic_phone

mythic_phone's People

Contributors

dependabot[bot] avatar sicklyability avatar trevorglick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.