Main Menu

Recent posts

#91
Archive / Re: Read weapon ammo from slot...
Last post by Vortrex - August 23, 2021, 08:16:01 PM
This has been added. Topic locked
#92
General Chat / Re: The official discord can't...
Last post by xiaobai - August 17, 2021, 12:18:10 AM
The official discord can't be added

The official discord can't be added

The official discord can't be added

The official discord can't be added

The official discord can't be added

The official discord can't be added

The official discord can't be added

The official discord can't be added
#93
General Chat / The official discord can't be ...
Last post by xiaobai - August 17, 2021, 12:17:37 AM
The official discord can't be added
#94
General Chat / Re: Need information about rel...
Last post by Vortrex - August 09, 2021, 09:40:35 PM
Hello, and welcome to GTA Connected!



GTA Connected is still actively updated. The dates are available on the discord in the #announcements channel. Jack always makes an announcement when an update is released. For the future, just know that we don't schedule regular updates. Instead we release when we feel we've added/fixed enough to justify one. It's just played by ear, so to speak. Sometimes we release within days (or less) of the last, sometimes several months for the really big updates.
#95
Scripting Help / Re: skin changer
Last post by djebzer - August 08, 2021, 07:21:08 PM
Hey, sorry for the late answer but it might help others.

If you want to do that on GTA III, GTA Vice City or GTA San Andreas you can simply edit the player skin by doing the code below.

I will use a skin ID from GTA:SA that you can find  .



I will make a simple function triggered when you join the server:



Client-side (JavaScript)
[spoiler]
Code (js) Select

// The 'OnPlayerJoined' event is triggered once the player joined the game. (See][/spoiler]

If you want to do it for GTA:IV, it is kinda different since the model has to be requested & loaded to the engine first.

You can use native functions to do that, I will use Niko Bellic's skin ID (hash) for this example that you can find  [url=https://wiki.gtaconnected.com/Resources/GTAIV/PedSkinshere[/url].



[i]Client-side (JavaScript)[/i]
[spoiler][code=js]
// This function creates a command handler that will let you trigger this function uppon writing '/skin' in-game. (See][/spoiler]

If you want to expand the skin changer for larger uses, you can store all skins in a variable as a table and loop through it to search entries. Here is a small example:



[i]Client-side (JavaScript)[/i]
[spoiler][code=js]
const SKINS_LIST = [
   'Carl Johnson',
   'The Truth',
   'Maccer',
   'Taxi Driver',
];

function setSkin(id, name) {
   let skinId = Number(id);
   localPlayer.skin = skinId;
   message('Your skin has been changed to ' + name + '!', COLOUR_LIME);
}

addCommandHandler('skin', (cmd, params) => {
   // Find the skin by ID (number)
   let id = parseInt(params);
   if (SKINS_LIST[id]) {
      let skinName = SKINS_LIST[id];
      return setSkin(id, skinName);
   }
   
   // Find the skin by the name
   for (const skin of SKINS_LIST) {
      if (params.toLowerCase() === skin.toLowerCase()) {
         let skinId = SKINS_LIST.indexOf(skin);
         return setSkin(skinId, skin);
      }
   }
   
   message('Invalid ID/Name!', COLOUR_RED);
});
[/spoiler]

GTA Connected's Discord server[/url] if you want quick responses for further help![/b][/size]
#96
General Chat / Need information about release...
Last post by ZX_Lost_Soul - July 31, 2021, 08:43:42 AM
I think the site lacks information about release dates of updates.



I'm new here and when I went to the site I could not even understand the project is being developed or not in 2021.



There are version histories on the site, but there are no dates in it.



It is important for new users to see that the project is alive and development continues.
#97
General Chat / Even GTA 4 1.0.4.0 GFWL Multip...
Last post by Yilmaz04 - June 27, 2021, 10:11:44 AM
I just managed to make GFWL work on patch 4, and with some help of ZolikaPatch, playing multiplayer with patch 7 and 8 users got possible on patch 4. But I still don't understand why GTA Connected does not work on patch 4. I tried bypassing the patch 4 not supported error but no hope, GTAC simply checks executable version by file size. Is there an experimental way to try GTA C on patch 4 or can you (GTA C team) add support for patch 4?
#98
General Chat / [GTA SA] Crash
Last post by HoRiiZeN - June 23, 2021, 08:41:26 PM
So I installed GTA Connected and tried to join a server, but the game crashed.

I tried disabling Modloader, removed Cleo, I even downloaded a fresh copy of GTASA but this didn't solve the problem. I looked up in GTA Connected files for a log and there i found something about access violation ( didn't understand what it means )and this code 0xC0000005, so I googled that up, but no one had  the same issue with GTA connected, I figure out somehow that the problem has something to do with the audio files I thought to myself maybe I need to download the original sounds of the game even though it's a bit heavy (3gb), cause I had no other choice. After I installed it, It worked like a charm!

I find it strange because this wasn't mentioned in the website or installation instructions, & both SAMP and MTA are working just fine on the ripped version of GTA SA (600mb).

I hope that GTA connected will support it too in the future.
#99
Scripting Releases / Re: R* Modes Essential Resourc...
Last post by BDawg - June 21, 2021, 04:05:57 PM
Fixed the xml for resource iv-lobby (gamemode start/join tutorial text). It only really worked if you've played on Jack's Rockstar Gamemodes server beforehand.
#100
General Chat / Re: Gta IV 1.0.4.0 support
Last post by alex2000 - May 28, 2021, 11:54:24 AM
May I ask how come 1.0.4.0 isn't supported?