Skip to content
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
wants to merge 151 commits into from
Closed

Comma errors #32

wants to merge 151 commits into from

Conversation

itsJarrett
Copy link

This pull request fixes the comma errors in blip_helper.lua.

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.
Main changes are that this version now works with FX server (only tested on 374)

New socket server
- Now uses the "deniszykov.WebSocketListener" library for that shiz (kinda fixes #4)
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)
TGRHavoc and others added 26 commits November 21, 2017 00:52
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).
Moved where the null checks are in the internal functions. This makes sure that the `MakeSurePlayerExists` doesn't get passed a null value.
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.
@itsJarrett itsJarrett changed the title Comma error Comma errors Nov 22, 2018
@TGRHavoc TGRHavoc closed this in db39357 Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants