Main Menu

Recent posts

#21
General Chat / Re: Server.xml Tweaks
Last post by Vortrex - December 26, 2024, 08:03:48 PM
You can see all configuration options here:
https://wiki.gtaconnected.com/ServerConfiguration

Most of the options related to sync and element streaming is toward the bottom of the main list on that page.
#22
General Chat / Server.xml Tweaks
Last post by Willa_Doo - December 26, 2024, 06:58:00 PM
Hello all.

I was curious if there were any tweaks to the Server.xml file that would improve the sync between players when hosted on a personal computer / server. Should there be any other tweaks of modifications to the file that should be known please let them be known.

Anything helps
#23
Scripting Help / client.player.position
Last post by tucson913 - December 21, 2024, 11:05:50 AM
Hi all!

I have problem with the player position.

I wrote a simple vehicle spawn command and I get this error message:
QuoteTypeError: client.player is null

The client.player exists only on client side? Or how can I get the player position?
Thank you!

Code:
addEventHandler('OnPlayerCommand', (event, client, command, parameters) => {

    console.log(`(Command) ${client.name} has used the command '/${command} ${parameters}'.`);
   
      switch(command){
        case "v":
            case "veh":
                case "vehicle":
                    var veh = gta.createVehicle(parseInt(parameters), client.player.position);
                    addToWorld(veh);
                    client.player.warpIntoVehicle(veh, 0);
        break;

        default:
            message("UNK CMD");
        break;
      }
});

#24
Suggestions / Re: New scripting language. Pa...
Last post by jack1989 - December 17, 2024, 04:33:36 PM
"The new scripting language related to Pawno sounds like an exciting development! It could open up more opportunities for customization, efficiency, and creativity in game development. For those familiar with Pawno, this could streamline scripting and offer advanced features for server management. Website Exploring its potential could lead to some incredible projects!"






#25
Advertisements / Connected Roleplay
Last post by Vortrex - December 07, 2024, 05:45:40 PM

Connected Roleplay
The official roleplay server of GTA Connected!

Discords
GTA III  •  GTA Vice City  •  GTA IV  •  Mafia 1

Connect
Click one of the games below to connect to the server!
GTA III   •   GTA Vice City   •   GTA IV   •   Mafia 1

Connect
  • Public jobs
  • Clans with custom ranks, permissions, pay, titles, and more
  • Custom inventory system where everything is an item. Food, weapons, devices, etc
  • All items can be dropped, given, used, picked up, or stored in certain places
  • Ownable vehicles/houses/businesses, and more
  • Stock your business with any items you want, and set custom prices
  • No hard cap to how many things you can own
  • Security features like 2FA, email alerts for login attempts, and more
  • Animations for extra RP goodness
  • Community-provided translations for GUI and server messages
  • Double paychecks on weekends!
  • Too many other things to list here
  • Also available on Mafia Connected
Connect
Add the servers to your favorite list for easy connecting!
#26
Scripting Releases / Re: [JS] Gamemode for fun time...
Last post by Vortrex - November 29, 2024, 01:50:15 PM
Quote from: Toejam on November 04, 2024, 04:12:22 PMTell me, does GTA Connect support the drive-by option? When a passenger, while in a car, can shoot from it, like gangs?
Not with scripting, no.
#27
Scripting Help / Re: Pay 'n' Spray and Shops fo...
Last post by Vortrex - November 29, 2024, 01:46:50 PM
Enable singleplayer features and scripts using the following in server.xml:
<cvar name="singleplayer" value="1" />
<cvar name="scripts" value="1" />
#28
Scripting Help / Re: skin changer
Last post by Vortrex - November 29, 2024, 01:45:13 PM
Quote from: volvofan on June 24, 2024, 10:30:47 PMYour script does not work for me in GTA 3. I just get: TypeError: localPlayer is null for the line localPlayer.skin = skinId;.
It seems like there isn't any script yet for skin-changing here: https://github.com/VortrexFTW/v-essentials
Maybe in the future?

Yes, I'll make one.
#29
Scripting Help / Re: problem function
Last post by Vortrex - November 29, 2024, 01:44:29 PM
Strange. The function does exist.
#30
Suggestions / Re: New scripting language. Pa...
Last post by Vortrex - November 29, 2024, 01:39:40 PM
New scripting languages are possible, but our efforts are focused on other features and fixes right now. We'll take it into consideration.

As for textdraws, you can use a GUI library like MexUI or the HTML stuff to script a SAMP-like GUI system.