Giter VIP home page Giter VIP logo

altv-log's Introduction

alt:V WebView Logging system

Created by Ravenous, forked from Dzeknjak's Chat .


logs

Description

Simple logging system for alt:V that helps visualize better what's going on with your server.

Installing Dependencies / Installation

  • NodeJS 13+
  • An Existing or New Gamemode
  • General Scripting Knowledge

Afterwards, simply add the name of this resource to your server.cfg resource section.

resources: [ altv-log, ... ]

Then simply clone this repository into your main server resources folder.

Ensure your package.json includes this property:

"type": "module"

Usage

To use this you first need to add it as a dependency to any resource you want to use in. Pick the resource you want to use and add this to your resource.cfg

deps: [altv-log]

Now either on the server or client side, import log and then you can start logging. The logs will display in the bottom right corner of the game but also in the respective consoles on client/server.

import log from 'altv-log'

log('Hello World')

altv-log's People

Contributors

ravenous47 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.