SAMPProjects / Open-SAMP-API

An open source API for GTA SA:MP
GNU Lesser General Public License v3.0
63 stars 15 forks source link

How to get the api memory addresses? #36

Open Kilowog01 opened 7 years ago

Kilowog01 commented 7 years ago

I'm a beginner in C ++, I wanted to create a simple program, without the api, without dlls and everything. I analyzed IsChatOpen, AddChatMessage, SendChat and could not find these addresses.

agrippa1994 commented 7 years ago

This API calculates the addresses via memory patterns (see https://github.com/SAMPProjects/Open-SAMP-API/blob/master/src/Open-SAMP-API/Game/SAMP/PatternTable.hpp)

I created an API for SA:MP that works only with code injection a while ago. The addresses in this repository are as far as I know not valid anymore but you can give a try on that. https://github.com/agrippa1994/CPP-SAMP-API