Coder Social home page Coder Social logo

gta5-native-caller's Introduction

GTANatives

GTA 5 Library for PS4 to create desktop tools. This library allows you to call over 2000 native functions that can be found here Nativedb

..

How to use

  • Inject the PS4API.BIN whether 4.05 or 4.55
  • Reference the GTANative.dll to your project
  • Call the Natives after the connection established

Brief Examples

Initialize PS4API to pass it to the RPC.Enable(PS4API);

PS4API PS4 = new PS4API();
PS4.ConnectTarget("192.168.0.0");
PS4.AttachProcess();
RPC.Enable(PS4); // must be called after AttachProcess();

Call some natives function

Vector3 vec = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), true);
PED.CREATE_RANDOM_PED(vec.X, vec.Y, vec.Z);
VEHICLE.EXPLODE_VEHICLE(VEHICLE.GET_LAST_DRIVEN_VEHICLE(), true, false);
VEHICLE.SET_VEHICLE_FORWARD_SPEED(VEHICLE.GET_LAST_DRIVEN_VEHICLE(), 100f);
WEAPON.SET_PED_INFINITE_AMMO_CLIP(PLAYER.PLAYER_PED_ID(), true);
TIME.SET_CLOCK_TIME(23, 59, 59);

*More can be found here Natives.cs

Note

For now only works on 1.0 version of GTA if you need to use this with higher update make sure you update Native Table Address by passing it to the second argument.

RPC.Enable(PS4API, native_table_address);

Credits

  • Alexander Blade
  • 2much4u
  • Everyone

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.