GithubHelp home page GithubHelp logo

GetID for new Scripts about gta-rp HOT 6 CLOSED

RoxiiCz avatar RoxiiCz commented on July 3, 2024
GetID for new Scripts

from gta-rp.

Comments (6)

sjlehtonen avatar sjlehtonen commented on July 3, 2024 2

I will make the bank system and incorporate it in the script when I have time.

from gta-rp.

sjlehtonen avatar sjlehtonen commented on July 3, 2024

I think you should use the Checkpoint class to do it by creating a new checkpoint like this:

Checkpoint checkpoint = new Checkpoint(new Vector3(xPos, yPos, zPos), this.CharacterEnteredSpot, this.CharacterExitedSpot, 1, 2.0f, 66, 179, 244);
Now you create the methods this.CharacterEnteredSpot and this.CharacterExitedSpot like this

public void CharacterEnteredSpot(Checkpoint spot, Character character)
{
     character.TriggerEvent("EVENT_ENTERED_ATM_SPOT");
}

You can find example for Checkpoint in FishingZone.cs

Now when player clicks the withdraw then you need to send an event to the server with the money amount. Look at the EventHandler.cs for that.

from gta-rp.

RoxiiCz avatar RoxiiCz commented on July 3, 2024

Thanks for your Help ATMs + Banksystem Done and everything is working included Database Save

BTW: Thanks for this Script its pretty nice and easy to understand. Good Job

from gta-rp.

Wolkefear avatar Wolkefear commented on July 3, 2024

hi there ! first much thanks for that script @Samppaa we are playing it in our small community so we are still searching for new updates ,. my question to @RoxiiCz is it possible to share the "atm & banksystem"
we re looking for every stuff that work with this scripts for better roleplay on our server

*have a nice day

from gta-rp.

RoxiiCz avatar RoxiiCz commented on July 3, 2024

Its hard to share because i've implemented all Functions to the existing Scripts

from gta-rp.

Wolkefear avatar Wolkefear commented on July 3, 2024

ah ok i understand .. thx :) gl hf with your project m8

from gta-rp.

Related Issues (20)

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.