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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.