Coder Social home page Coder Social logo

easydrift's Introduction

EasyDrift

A simple drift counter

Image

EasyDrift is a simple drift counter that also provides a multitude of events and functions to integrate the system with your own HUD

  • Drag and drop if you don't want to loose time !
  • Fixed a popular issue on drift counter where low fps would get less score
  • Easy integration with your own HUD
  • Pre made HUD inspired by forza

image

Events (Client side)

EasyDrift provides a list of events to use to integrate the system with your framework or HUD. Want to give money as a reward to your players after a great drift? It's possible! Each event name can be changed in the resource's config file.

Event Default event name Argument passed
Start drifting drift:start none
Stop drifting drift:finish 1: final score
Enable counter drift:enable none
Disable counter drift:disable none
Toggle counter drift:toggle none

Some events are also available to retrieve information

drift:GetCurrentDriftScore Get the current drift score

-- Exemple usage
TriggerEvent("drift:GetCurrentDriftScore", function(score)
    print("My score is: ", score) 
end)

drift:IsDrifting Get if the player is drifting or not

-- Exemple usage
TriggerEvent("drift:IsDrifting", function(isDrifting)
    print("Am i drifitng ? ", isDrifting) 
end)

drift:IsEnabled Check counter is enabled

-- Exemple usage
TriggerEvent("drift:IsEnabled", function(isEnabled)
    print("Is the counter enabled ? ", isEnabled) 
end)

Advanced developer

A global export is also available allowing you to access all the variables / functions of the code from another resource. I don't recommend to use this if you are not sure of what you are doing. Export name GetModules

-- Exemple usage
local Modules = exports[‘EasyDrift’]:GetModules()
print(Modules.DriftCounter.CurrentPoints)

Support

Want some support or request something to be added ? Come here !

Discord2

easydrift's People

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.