MyNameIsJeff

Displaying Variable Hash Based on JSON File?

Recommended Posts

I'm relatively new to JavaScript coming from PHP/HTML/CSS development (mostly websites) so I'm still on the path to figuring out some of the functions JavaScript offers. So far I've gotten a good head start thanks to a lot of you helpful content creators posting scripts and helping me break them down.

I am now trying to get a player killed script going where I want the logs to show the killer, dead player, and the reason.
I've got the code down, however, I can't figure out how to collect data from a JSON file and convert it into a variable which can be used in the playerDeathHandler function...

Trying to use this as the database for reasons:
https://wiki.rage.mp/index.php?title=Causes_of_death

Can anyone spare any insight on this? Much appreciated!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.