GTA Connected scripts for GTA IV
- Look into creating an airstrike: https://github.com/EmmanuelU/xmc-mod-menu/blob/master/menu_functions.c#L1499-L1507
TODO Restructure files like this and test it.
- Move commands into client/commands
- Move functions into client/functions
- Move events into client/events
- Make this fully work on GTA 3, VC, SA, and IV.
- Separate out functions in shared/util.js - This will take a bit to do.
I have a crossgame_test.js file in the client and server folders that mostly works between GTA 3, VC, and SA, it also seems to work fine on GTA IV.
It has features like god mode, spawning vehicles, warping, and more to come. Mostly using the util.js from v-sandbox.
List of commands in radio_commands.js
- /mobileradio (This toggles the mobile radio on and off for the game.)
List of commands in weather_commands.js
- /weather (sunny, rainy, storm) This sets the weather in the game.
Files (client folder):
List of commands in blip_commands.js
- /toggleblip (This toggles the blip, currently set to test1 warp.)
List of commands in commands.js
- /spawn (Teleport to spawn)
- /clearwl (Clear wanted level)
- /maxwl (Give max wanted level)
- /weapon1 (Give weapon set 1)
- /opengarage (Open mission garage)
- /closegarage (Close mission garage)
- /startscript (Starts a game script, currently set to the computer in game.)
- /startcs (Start cutscenes, this is disabled)
- /scmtest (I think this is only for Vice City, GTA 3, and San Andreas.)
List of commands in fun_commands.js
- /gravon (Enable gravity for yourself)
- /gravoff (Disable gravity for yourself)
List of commands in message_commands.js
- /printhelp (Print a test help message)
List of commands in ped_commands.js
- /createped (This runs the createPed function in this file, it needs moved into functions.js)
List of commands in player_commands.js
- /god (Toggle invincibility on/off)
- /helmet (This should give the player a helmet, it doesn't work)
- /heal (Give the player max health and armour {100 health, 250 armour})
- /kill (This will kill the player instantly, runs the EXPLODE_CHAR_HEAD native)
- /coords (Display your current coords, move this into another file.)
- /sky (Teleport the player with +50 added to your current Z coord, put the player in the sky.)
- /setmaxwl (Set max wanted level, can be from 0 {Disabled} or 6 {Max Wanted level.})
List of commands in teleport_commands.js
- /goto (Teleport to a set of coordinates, also teleport your vehicle.)
- /warp (This runs the teleportPlayer function with the specified text for the warp.)
- This file has some misc functions, such as checking if the player is in a vehicle, warping the player with a vehicle if they are in one and fade in, warping player without vehicle and fade in, and a teleport function.
List of commands in vehicle_commands.js
- /fixveh (Fix current vehicle)
- /explodeveh (Blow up current vehicle)
- /removevehwindows (This is untested and possibly incomplete.)
List of warps
- spawn - Teleports you to the party island spawn
- parkinglot1 - Teleports you to parking lot #1.
- garage1 - Teleports you to garage #1 on the map.
- airport1 - Teleports you to the airport.
- hospital - Teleports you to the hospital that you can enter.
- prisonin - Teleports you inside the prison.
- prisonout - Teleports you outside the prison.
- island - Teleports you to happiness island.
- islandst - Teleports you to the statue on happiness island.
- swings1 - Teleports you to swingset #1 for the swingset glitch.
Credit to VortexFTW on github for most functions in shared/util.js, most of this came from the v-sandbox resource.