This utilizes an iframe, meaning sites that are blocking cross-origin iframes will ultimately fail.
With this feature, a config option is added to the nui config allowing for users to specify a home page URL to default to.
* feat(): add animation and call service & controllers
- run animations on interval so we don't lose animations when walking through doors
- move cl_call.ts to a class
* fix(animation/service): make everything private except for open/closePhone and start/endPhoneCall
* feat(phone) Disable walking when an input is focused
* refactor(phone) renamed var & replaced copy paste code
Instead of copying the code it now uses a custom hook
* refactor(phone/input): removed useMemo from hook
* style(phone/input): changed indentation to spaces & added de-structured import
Renamed the event so its more clear what it does and added a bool to denote when it's being disabled or not. This was attached to `isPhoneOpen` which wasn't reliablly working. Its now done within `showPhone` and `hidePhone`.
The wait was changed from `1000` to `100` in the event the phone is opened before the wait is over. Makes it more smooth as there is no longer a small duration where the mouse moves the camera.
Removed the enable of control actions as it wasn't needed.
This changes how multicharacter support is implemented entirely.
Instead there are now events for creating a new player & unloading a player. These should be called whenever a character is switched. Documentation will be added for `npwd:newPlayer` & `npwd:unloadPlayer`
This changes how multicharacter support is implemented entirely.
Instead there are now events for creating a new player & unloading a player. These should be called whenever a character is switched. Documentation will be added for `npwd:newPlayer` & `npwd:unloadPlayer`
config -> ResourceConfig for readability and the resource config in NUI is now being referenced consistently from state so it can be referenced at runtime and not compile time.
Also removes the need to copy the config before using `cp`
Fixed an issue with infinite rerendering on app routes by making it a Pure component.
Adds `why-did-you-render` for development use.
Co-authored-by: Taso <[email protected]>
This updates our craco config to match our current custom webpack build rather than having to eject. This also bumps several of our dependencies that were outdated for React 17.
* chore(phone/settings): Removed unused state
* cleanup(phone/photos): Added type safety to photo state
* tweak(phone/marketplace): Added type safety to marketplace state
* chore(phone/match): Removed unnecessary console.log
* tweak(phone/messages): Added type safety to messages state
Also fixed ESLint warning for exported anonymous hook in useMessages.ts
* tweak(phone/match): Added type safety to match state
* tweak(phone/dialer): Cleanup & type safety for state
Renamed some types to better represent their data
* cleanup(phone/gen): Added NUI event enums for phone events
* tweak(phone/contacts): Type safety for contacts state & variable rename
Renamed and type variable in setFilteredContacts to better represent its use
* tweak(phone/gen-state): Added type-safety to gen phone global state
* tweak(phone/settings): Type safety for settings state
* tweak(phone/photos): Tweaked type for photo referral
* fix(phone/notification-comp): Fix reference to old theme config
* chore(phone/hooks): Remove keyboard service
Removed as this was unused and ESLint was not happy with it
* chore(phone): Cleaned up eslint warnings
No more warnings hooray!
* tweak(phone): Set time in dev mode
* fix(phone): Remove useNuiService that appeared somehow
* fix(phone/gallery): Fixed missing import for gallery
* Revert removing the keyboard service as this is built upon in another PR
This reverts commit 82d12255a84e918da087d988b599af98ce1fe54d.
* fix(phone/keyboard): Add useKeyboardService hook back to Phone.tsx
* fix(phone/gallery): Fix and standardized GalleryPhoto type
Tweaked root package.json scripts to better improve dev experience.
* Install npm dependencies for both packages using `yarn bootstrap` in root directory
* Build both NUI and game scripts using `yarn build` in the root directory.
* Precommit git hook references script rather than global pretty-quick
* basic framework for match/tinder
* working version of swiping
* working version of profile editing
* introducing backend
* working matching system
* working profile updating
* fix all linting issues
* updated events to Enum
* working profile generation
* documentation updates
* general PR feedback
* working profile loading, matches show matchedAt
* slight modification to event strings
* added sql imports
* Remove msg notifications when opening one | Dont alert notifications when inside that conversation
* Fix msg events
* Fix goToConversation util
* Fix nuiEvents for messages
* chore(scripts/twitter): Refactored twitter to use event enums
* chore(scripts/marketplace): Refactored marketplace to use event enums
* chore(scripts/messages): Refactored messages to use event enums
* chore(scripts/contacts): Refactored contacts to use event enums
* chore(scripts/calls): Refactored calls to use event enums
* chore(scripts/notes): Refactored notes to use event enums
* chore(scripts/photos): Refactored photos to use event enums
* chore(scripts/bank): Refactored bank to use event enums
* chore(scripts/phone): Refactored phone to use event enums
* chore(events): Removed old events object
* refactor(phone/nui-events): Attached NUI events to respective enum
* tweak(event-enums): Added npwd prefix to all events
* tweak(phone/serve): Added craco to override CRA without eject
Also bumped react-scripts to 4.0.1, with seemingly no issues
* fix(typings/twitter): Fixed method enums for twitter
* receive and process broadcasted tweets to the clients
* removing profile fetch and cleaning up unused functions
* defend against null profile
* move defenseive check to top pof notifications
* fix bug where delete was visible for non owners
* remove polling implementation
You can now reset your settings to default using the action in the Settings App
Setting schema validation has been added that will temporarily reset to default settings if
the JSON string contains unexpected values. A alert will pop up informing the user
that they should reset to default settings using the action in the settings app,
as a permanent solution.
* Handle offline messages | Fetch messages when broadcasted | Fetch message groups
* Fetch messages on notification click
* Dont fetch groups if duplicate group
* Only submit new message on click submit
* Fix infinite loading when duplicated group is creatded
* Fix infinite loading when group already existed
* Make code prettier
* Centralize fetch messages on goToConversation
* Remove duplicated event
* Improve message groups mapping to include yourself for unreadCount + Fix redirection after adding contact + General improvements
* Remove conflicts
* Fix media paths
Time has been changed to a relative format. Locale specifics are pending
merge of #168.
Several typos have been fixed where "DAILER" was referenced instead of
"DIALER"
A translation key was added for when a user has no call history.
The input box has been unlocked so users can use their keyboard directly
rather than using the dial pad.
I wasn't sure what the comment was referring to, but changed this to a
standard top offset, and it fixed a issue with the transform being
screwed up between tweets.
* feat(phone/settings): Add streamer mode setting and PictureReveal component :)
* feat(phone/settings): Add PictureReveal streamer mode to twitter and improve its theme a bit
Reverted as to ensure current compatibility with messages app, messages
should be altered to deal with this in the future.
This reverts commit 258ea66746.
Added a regex replace to match the old signature for this function. Also
migrated messages to use the new util function rather than a locally
defined query
Attach a readonly username property to Player class
Implement setters/getters for Player class to ensure future
compatibility for servers who implement a character switching system
Attach a fetch argument to getIdentifierByPhoneNumber that will force a
DB query if player is not online
* Added missing locales
* Change places for readability
* Typo
* Moved APPS_CONTACT closer to its related locale
* Update en.json
* + Space
* + Space
* bh.json base
Added a base for the language. It's no longer missing translations but some of them are in English
* tr.json base
TR locale base (relocate + added missing locales in English while keeping old ones)
* sv.json base
Base for sv. Same as the ones before.
* ptbr.json base
Same as before
* pt.json base
* Update fr.json
* fr.json base
* Added sound locale
* Added sound locale
* Update es.json
* Update fr.json
* Update pt.json
* Update ptbr.json
* Update sv.json
* Update tr.json
* Fix number not generating on player join.
* Update import.sql
* Check for existing number
Kidz pretty much did this kek
* Added error catch to esx:playerLoaded
* Phone now shows all the time slide a bit if incoming call exists | can close alerts!
* Improve animation
* Improve call controls
* Make alerts not overflow | Call modal is navigable out :)
* Open modal when accepting call
* Cant navigate back from homepage
* Avoid call route if no call active + rename things
* Impprove main apps icons sizes
* hover effect to app icons :)
* Revert interface change
* fix(phone/dialer): resolve not calling when adding contacts
Co-authored-by: Christopher <[email protected]>
* Add floating notifications :O
* Add phone notifications and refactor calling ui
* This is unsafe
* Fix controls null check
* Remove go to alert
* Fix phone stuck after call
* Remove lazy mount for Phone
* Fix open/close cl_main
* Use effect for notification visibility
* Remove all alerts when phone closes
* Avoid re-render useNuiEvent
* It works now :c
* Add working notifications with only twitter for now
* feat(notification-bar): I didnt copy from NP
* feat(notifications): Collapse when no more notifications after closing one
* Improve overall messages styling code
* Improve Routing performance
* improve use keyboard hook
* Remove unused returns
* Button hover color :)
* Button hover color :) x2
* Added hover style to containedPrimary msg btn
* Replace custom components for custom theme providers for Messages and Contacts apps
* Improve createAppThemeProvider
* Improve createAppThemeProvider
* Final housekeeping for messages styles
* Change placeholder to label in Contacts app text fields
* Fix alerts style with navigation and fix calc copy alerrt
* Split Phone code for snackbar
* Add more options and style Context Menu
* Enable Sellout theme provider and make it work with light themes
* Add working notifications with only twitter for now
* feat(notification-bar): I didnt copy from NP
* Make default browser visibility true
* feat(notifications): Collapse when no more notifications after closing one
These changes are made in case source is not guranteed to remain the same
Due to how JS should operate, this shouldn't be an issue but this just ensures that
- Logs out to a file w/ relevant meta data
- Provides better readability for end user
This should help provide better troubleshooting for both
development and end users.
This also fixes any previous catches that were attempting to print stack traces,
causing the [object Object] message to appear.
Co-authored-by: Christopher Gjelten <[email protected]>
As we were parsing user input for \n in order to convert to <br> tags, a XSS vulnerability was introduced allowing for users to pass arbitrary script tags to be rendered in tweets.
The new route allows for other components to directly route to contacts/:id, where id is the contact id for a users given contacts. It also adds a getContact function accessible by the useConfig hook in case a contact needs to be retrieved using a contact id.
This is dynamically added to the bundle depending on the environment. In production, react-devtools will not be bundled. Build a development bundle using `yarn build:dev`
* feat(phone/debug): Inject debug data for development
* refactor(phone/debug): Refactored mock data to InjectDebugEvents
* fix(phone/debug) removed useless debug injections
Added an interface for the app configuration list and imported/used it in several places. Also found some cases where there were unused/unnecessary properties involved that didn't exist in this configuration.
about:Suggest a feature that you would like added/improved upon.
title:'Enhancement:TITLE'
labels:Enhancement
assignees:''
---
**Is your feature request related to a problem or design oversight? If so, please explain it.**
Provide evidence to help support your claim so we can better understand such as pictures or a video.
**What is your suggestion?**
Please include as much details as possible. Avoid vague suggestions such as "An app to order food with.". Include as much details as possible such as: "An app that will allow a player to order a food item of their choice and have a player/npc deliver it to them."
**Does your suggestion require any dependencies? (Jobs and Money are framework dependencies.)**
**Do you have any references to help us visualize your suggestion?**
Such as "Here is a link to a similar concept: https://www.youtube.com/watch?v=j5a0jTc9S10 "
Copyright (c) Kidz, ItsChip, ROCKY_southpaw, Kire and TasoOneAsia
All rights reserved.
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
Even if 'All rights reserved' is very clear :
Section 1 – Definitions.
You shall not use any piece of this software in a commercial product / service
You shall not resell this software
You shall not provide any facility to install this particular software in a commercial product / service
You are in no way allowed to redistribute this code until this private project has become public, unless given written consent by one of the copyright holders.
This copyright should appear in every part of the project code
Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
BY-NC-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution, NonCommercial, and ShareAlike.
Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
Licensor means the individual(s) or entity(ies) granting rights under this Public License.
NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.
Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
Section 2 – Scope.
License grant.
Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and
produce, reproduce, and Share Adapted Material for NonCommercial purposes only.
Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
Term. The term of this Public License is specified in Section 6(a).
Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
Downstream recipients.
Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
Other rights.
Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
Patent and trademark rights are not licensed under this Public License.
To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes.
Section 3 – License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
Attribution.
If You Share the Licensed Material (including in modified form), You must:
retain the following if it is supplied by the Licensor with the Licensed Material:
identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
a copyright notice;
a notice that refers to this Public License;
a notice that refers to the disclaimer of warranties;
a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
ShareAlike.
In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-NC-SA Compatible License.
You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
Section 4 – Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only;
if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
Section 5 – Disclaimer of Warranties and Limitation of Liability.
Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
Section 6 – Term and Termination.
This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 – Other Terms and Conditions.
The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
Section 8 – Interpretation.
For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
NPWD is our flagship and current running project. The team has been working on the project since August, 2020. This resource isn’t complete yet and currently has a pre-release. There is however no ETA for a stable release, yet. Feel free to test it out in a dev environment by following the installation guide.
This resource is highly configurable through the [config.json](./config.json). This JSON file holds configuration for the phone itself, for the apps running on it and peripheral information.
Written completely by the Project Error Dev Team in [React](https://reactjs.org/) with a [TypeScript](https://www.typescriptlang.org/) client/server environment.
| Locale | en | The language locale used by the app. See [fivem keybinds](https://docs.fivem.net/docs/game-references/controls/) for options |
| KeyTogglePhone | 288 (F1) | The keybind to open and close the app. See [fivem keybinds](https://docs.fivem.net/docs/game-references/controls/) for options |
| PhoneAsItem | false | whether or not the phone is an item in game |
| SwimDestroy | false | whether or not the phone will have a chance to be destroyed while swimming |
| RunRate | 10 | interval in seconds to check phone destruction |
| DestoryChance | 100 | Percent chance that phone destruction will occur |
| DestroyPhoneReCheck | 3 | Time in minutes before another phone destruction attempt will happen |
| notificationPosition.horizontal | right | Horizontal position of phone notifications. `left`, `center` or `right` |
| notificationPosition.vertical | bottom | Vertical positon of phone notifications. `top` or `bottom` |
| twitter.showNotifications | true | Whether or not to show twitter notifications |
| twitter.generateProfileNameFromUsers | true | Whether or not the server should automtically generate a player's profile name from their user in the database |
| twitter.allowEdtiableProfileName | true | Whether or not players can edit their profile name |
| twitter.allowDeleteTweets | true | Whether or not players can delete their own tweets |
| twitter.allowReportTweets | true | Whether or not players can report tweets. Optional discord integration. |
| twitter.characterLimit | 240 | Limit on how many characters tweets can contain |
| twitter.enableAvatars | true | Whether or not player's can select avatars for their twitter profile |
| twitter.enableEmojis | true | Whether or not player's can use emojis in tweets |
| twitter.enableImages | true | Whether or not player's can add images to tweets (external URLs) |
| twitter.maxImages | 3 | The maximum amount of images allowed in a tweet |
- Join the [Discord](https://discord.gg/HYwBjTbAY5) to follow current development of the project.
### Discord
## Documentation & Installation
It is possible to perform discord integration with the phone. To configure discord add the following variables to your `server.cfg` file:
- [Project-Error Docs](https://docs.projecterror.dev/#/) contains all the information regarding this resource. Please consult it for installation, dependencies, and other important information.
```
set discord_bot_token "YOUR_DISCORD_BOT_TOKEN"
set discord_channel_id "YOUR_DISCORD_CHANNEL_ID"
```
## Support
Current discord integrations with the phone:
No support is being provided currently for the resource as it is still in an unfinished state.
- Twitter: reporting tweets
Should you encounter any issues, please do the following:
- Check the [Git Kraken](https://app.gitkraken.com/glo/board/X9YZ_x_SVQEcMwpH) to see if the issue you're referring to is already tracked.
- Check the [State of Development](https://docs.projecterror.dev/#/npwd/state-of-dev?id=introduction) to see if the app is still a **WIP**.
- If the issue isn't on the Git Kraken and the app is finished, please open an issue.
- If the issue isn't on the Git Kraken and the app is **not** finished, please contact us in Discord.
## Development
We do not want issues opened that are due to the phone being **WIP** as this slows down development since we now have to address it more immediately.
This phone is a [React](https://reactjs.org/) project with a TypeScript client/server environment.
## Preview
### Prerequisites
[Latest Teaser Video (October 28th)](https://streamable.com/f1ri9r)
The development environment assumes you have the following prerequisites:
#### Apps (February 20th, 2021)
1. A windows environment and Powershell as your default terminal
1. [Git for windows](https://git-scm.com/download/win) installed
1. A fivem environment that is set up according to the [setting up a server instructions](https://docs.fivem.net/docs/server-manual/setting-up-a-server/) from the fivem documentation
Most of these apps have UI that does **not** represent the final product and are subject to change.
### Development Environment
#### Steps
1. Clone the repo into your `server-data/resources/[local]` folder
1. Go into the react project: `cd phone`
1. Install node dependencies: `yarn install`
2. Install `lint-staged` globally `npm i -g lint-staged
3. Add the `new-phone-who-dis` app to your `server.cfg`
4. Start your fivem server
#### Development iteration cycle:
- If iterating on client/server Lua make your change and then `ensure new-phone-who-dis` in the fivem server terminal
- If iteration on UI changes run the project with `yarn watch` which will monitor the JavaScript project and rebuild when you make code changes and then `ensure new-phone-who-dis` after making your change
- Avoid commiting `index.html` as the development version overrides the production version
A FiveM phone created with ReactJS, with the power from BTNGaming, kidz, ROCKY_shouthpaw and chip.
A FiveM phone created with ReactJS, with the power from TasoOneAsia, erik-sn (Kire), jfrader (kidz), r1OG, RockySouthpaw and itschip. Still missing commits from 99kr.
Loaded 100 of 614 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.