New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comma errors #32
Closed
Closed
Comma errors #32
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When the socket server is stopped, the JArrays are cleared.
Added the files for the FiveM server to interact with the live map library.
Secure websockets are now done over a self-signed certificate. If you want to use SSL properly, I suggest using your own cert.
Changed the O'Neil ranch icon to an animal instead of the jail icon
Making it easier to add custom data to player such as their job. Also moved from the player name being the identifier.
"blip_helper.lua" is used to translate the blip type that GTA uses (integers) to the type the interface uses (strings).
Added events to allow developers to - Add blipss to the map - Add data to players (strings and floats)
My comments were wrong... They're now correct.
Holy mother of... Documentation !!!
Pretty much all the Console.WriteLine's have been changed to Debug,WriteLine and I've removed the file writer. The websocket server now defaults back to the insecure websocket protocol when the certificate couldn't be loaded.
Apparently it's going to be required in future so, I'm going to add it now
Vehicle data is now attached to the player object and sent over websockets.
Data sent to the websocket is now split by the space character, allows for additional arguments to be passed in case it's needed in future.
This will allow the script to use the latest natives on the server and client
Started to change the code over so that it will be compatiable with the latest FX-Server This means I've had to change the websocket library to one that is PCL compatiable.
You can now remove players or ttheir data from the object that is sent via websockets.
Added a "log hierarchy" so that the console doesn't get spammed with text if the user doesn't want it to.
Added a file to make it easy to reverse a weapon's hash to get it's name. Also, something for the server owners to mess with f they want :P
Yeah.. I kind of forgot to register them, now they can actually be used :D
Added the default live_map client file. This keeps track of the following: - Player position - Vehicle (if in one) - License Plate (if in vehicle) - Weapon (uses a reverse hash function to get the name)
Before, the access-control-origin was only being written when sending the blips, this fixes that so, the iterface can see any errors.
Thanks to glitch for pointing out my spelling mistakes (hence the "Fixed small mistake" and "Shhh." commits).
Fix typo in readme
Changes: - Replaced all `GetPlayerPed(-1)` with `PlayerPedId()` - Added `["Location"]` to the Blip DataSet, providing a default value. - The Location data will be shown on all player blips and will look like this: "Glory Way, East Vinewood (Los Santos)" (street name, area name, city/county) Example: https://vespura.com/hi/i/f00941500bb.png - Added `GetLabelText()` to the current vehicle model name blip dataset, this means the vehicle names will no longer show up as: "DOMINATOR2" but instead as: "Pisswasser Dominator".
The location strings were localised to the client thiis ment that Chinese players would be sending Chinese strrings to the interface. I might add this back in but, it would require another file like the "reverse_weapon_hash" file for location data. This would allow the server owners to translate the locations to their prefered language.
Car names can now be reversed to their English names. You can change this by modifying the "reverse_car_hashes.lua" file. Also added a check to the reverse hash functions to make sure the hash being passed is a string.
The client.lua now uses the reverseVehicleHash function to get a "nice" vehicle name.
Vehicles that are spawned in are given the plate " FIVE M " so, now the map detects this and marks the plate with "(Spawned In)". Also, added "schwarze" to the hash table for the vehicles.. Turns out R* missed the r on the end :/
"Location" is a new data point sent to the interface. Should only be updated if the street, area or zone have changed when updating the new position.
The checker now runs every 30 minutes regardless of whether it's the latest version or not.
TGRHavoc
approved these changes
Jun 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request fixes the comma errors in
blip_helper.lua
.