Commit Graph

31 Commits

Author SHA1 Message Date
Claude
82525ea32c Add color-coded toggle labels and remove old notifications
- Toggle items now show state in label with GTAConnected color tags
- Example: "God Mode: <#00FF00>ON" or "God Mode: <#FF0000>OFF"
- Labels update dynamically when clicked
- Remove rainbow notification system on left side
- Remove old ON/OFF indicator boxes from menu
- Keep status indicator at bottom for active toggles
2026-01-14 12:07:43 +00:00
Claude
35053497c8 Add theme system and status indicator for mod menu
- Add 8 theme options (Black, Red, Blue, Green, Purple, Pink, Gold, Gray)
- All menu elements now respect the selected theme color
- Add status indicator at bottom of screen showing active toggles in green
- Active toggles display as "God Mode | Super Run | etc." at screen bottom
- Replace hardcoded red colors with dynamic theme-based colors
- Add "Mod Menu Theme" submenu under Settings in main menu
2026-01-14 11:56:44 +00:00
Claude
76271ca6b4 Fix vehicle spawning - use Vec3 and correct signed hash values
- Fix createCar to use Vec3 instead of separate x,y,z coordinates
  (GTAConnected requires Vec3 for second parameter)
- Fix all vehicle hashes to use signed 32-bit integers
  (Previous code incorrectly used 0x prefix with decimal numbers)
- All hash values verified against GTAConnected wiki
2026-01-14 02:12:13 +00:00
iDisaster
8873811055 Merge branch 'readme.md' into claude/enhance-gta-server-9Dezg 2026-01-14 06:02:35 +04:00
Claude
8471b19824 Fix vehicle model hashes and improve vehicle spawning
- Fixed incorrect vehicle hashes (turismo, comet, nrg900, coquette, feltzer)
- Fixed typo: "stalion" -> "stallion"
- Added more GTA IV vehicles: Super GT, Buccaneer, Ruiner, Faction,
  Rancher, Bobcat, Freeway, NOOSE, Tour Maverick, Dinghy, Squalo
- Updated vehicle spawn code to use separate x,y,z coordinates
- Added better error logging for vehicle spawning
- Verified hashes against GTAMods wiki
2026-01-14 02:00:06 +00:00
iDisaster
b74c35e033 Refactor vehicle model list with categories
Updated vehicle model list with categorized comments for better organization.
2026-01-14 05:50:12 +04:00
iDisaster
72a9365b9c Update print statement from 'Hello' to 'Goodbye' 2026-01-14 05:49:35 +04:00
iDisaster
51a200e244 Merge pull request #6 from iDisaster/claude/enhance-gta-server-9Dezg
Claude/enhance gta server 9 dezg
2026-01-13 19:13:38 +04:00
Claude
937fd103ab Fix network player list and enhance Red/Black UI theme
- Fix network player list serialization by using pipe-separated strings
  instead of arrays (fixes "Failed to read network arguments" error)
- Enhanced phone blocking with multiple native calls
- Redesign UI with deep black background and pulsing red accents
2026-01-13 14:29:58 +00:00
Claude
fff1896848 Redesign UI: Revolution ModMenu with eye-melting animations
UI Overhaul:
- Renamed to "REVOLUTION ModMenu (Beta)"
- Rainbow cycling glow border around entire menu
- Animated gradient header with color transitions
- Pulsing glowing title text
- Slide-in animation when opening menu
- Smooth fade-out when closing

Visual Effects:
- Rainbow colored outer glow that pulses
- Animated border colors cycling through spectrum
- Selection bar pulses and moves with animation
- Submenu arrows animate when selected
- Items have subtle hover/selection glow

Toggle Indicators:
- ON: Green pulsing background with bright green text
- OFF: Red background with red text
- Clear visual distinction between states

Notifications:
- Slide-in animation from left
- Rainbow colored border
- Smooth fade-out

Phone Fix:
- destroyMobilePhone() to remove any active phone
- scriptIsUsingMobilePhone(true) to prevent creation
- setPlayerControlForPhone() to disable input
- Properly re-enables controls when menu closes
2026-01-13 14:15:48 +00:00
iDisaster
941ec3e723 Merge pull request #5 from iDisaster/claude/enhance-gta-server-9Dezg
Claude/enhance gta server 9 dezg
2026-01-13 18:05:17 +04:00
Claude
0e0a001fff Add self options and fix network player list
Self Options (new):
- Invincible toggle (setCharInvincible + setCharProofs)
- Super Run toggle (setCharMoveAnimSpeedMultiplier at 3x)
- No Ragdoll toggle (setPedCanRagdoll + switchPedToAnimated)

Network Options (fixed):
- Auto-refresh player list when entering network menu
- Show player count in menu header
- Direct teleport to player action (no submenu)
- Server now sends target position directly for teleport
- Added debug logging for player list retrieval
- Show helpful message when no players found
2026-01-13 14:03:59 +00:00
Claude
8e7d49a48c Add advanced vehicle, world, and weapon features
Vehicle Options:
- Drive on water toggle (keeps car floating on water)
- Rainbow color toggle (cycles through car colors)
- Drift mode toggle (adds sliding physics)
- Neon lights with color selection (light coronas under car)
- Fly mode toggle (anti-gravity flying car)
- Vehicle shoots RPG toggle (auto-fires rockets)

World Options:
- Rainbow sky toggle (cycling sky colors)
- Sky color selection menu (red, blue, green, purple, etc.)

Weapons:
- Explosive ammo toggle (bullets cause explosions)

Added HSV to RGB conversion for smooth rainbow effects.
2026-01-13 09:59:44 +00:00
Claude
6492a84196 Fix vehicle/skin model loading and remove broken preventDefault
- Request model before spawning vehicles to prevent crashes
- Wait for model to load using hasModelLoaded before createCar
- Request model before changing skins to fix all skins being Niko
- Remove event.preventDefault which is not supported in GTAConnected
- Use destroyMobilePhone native to block phone when menu is open
- Add try/catch around toggle natives for error resilience
2026-01-13 09:49:17 +00:00
Claude
33cbef2eb4 Fix mod menu issues: vehicle spawn, god mode, skins, and phone
- Fix vehicle spawning to use Vec3 for position parameter
- Warp player into spawned vehicle automatically
- Fix skin change to use player index 0 for changePlayerModel
- Fix suicide using explodeCharHead native
- Fix god mode using setCharInvincible native properly
- Fix vehicle god mode using setCarCanBeDamaged native
- Rename "Indestructible" to "God Mode" in vehicle options
- Fix nitro boost using vehicle velocity instead of force
- Add ExecuteTeleportToPlayer handler for network teleport
- Disable phone when menu is open using setPlayerControlForTextChat
- Block UP arrow from triggering phone while menu is open
2026-01-13 09:42:47 +00:00
iDisaster
5529e8ebc3 Merge pull request #4 from iDisaster/claude/enhance-gta-server-9Dezg
Claude/enhance gta server 9 dezg
2026-01-13 13:30:21 +04:00
Claude
3443ed5a17 Fix vehicle spawning and reduce notification duration
- Use natives.createCar(hash, x, y, z, true) for vehicle spawning
- Add vehicleHashes map with correct GTA IV model hashes
- Reduce notification duration from 3000ms to 1000ms
- Quick fade starting at 700ms for snappier UI
2026-01-13 09:29:14 +00:00
Claude
97efbf6a8e Rewrite modmenu to use client-side natives for all actions
Server-side:
- Remove all spawn checks and spawn code
- Relay actions to clients via network events

Client-side:
- Add handlers that execute actions using GTA IV natives
- natives.forceWeatherNow(id) for weather
- natives.forceTimeOfDay(hour, min) for time
- natives.giveWeaponToChar for weapons
- natives.fixCar, natives.changeCarColour for vehicles
- Direct localPlayer property access for health/armor/position
2026-01-13 04:07:10 +00:00
Claude
e14706c0e6 Simplify server: only modmenu resource with auto-spawn
- Remove other resources from server.xml (freeroam, admin, etc.)
- Add auto-spawn on player join in modmenu server.js
- Players now spawn automatically at random location when joining
2026-01-13 03:57:35 +00:00
Claude
fb7640e5de Fix font creation: use correct createDefaultFont signature
- lucasFont.createDefaultFont(size, family, style) - style is string not bool
- Changed from (16.0, "Tahoma", false, false) to (16.0, "Arial", "Regular")
- Added fallback to try Tahoma if Arial fails
2026-01-13 03:52:37 +00:00
iDisaster
9f16024a49 Merge pull request #3 from iDisaster/claude/enhance-gta-server-9Dezg
Claude/enhance gta server 9 dezg
2026-01-13 07:46:15 +04:00
Claude
889c3e56e5 Fix mod menu: control locking and use default font
- Fix control locking: gui.showCursor(false, true) re-enables controls on close
- Use lucasFont.createDefaultFont instead of loading external TTF file
- Use graphics.drawRectangle with pixel coordinates for menu boxes
- Use toColour() for color integers
- Menu positioned at right side of screen (x=1050)
2026-01-13 03:45:07 +00:00
Claude
3c68c3a4a4 Rewrite mod menu drawing to use GTA IV natives with Vec2
- Move menu to right side of screen (x=0.73) to avoid chat
- Use normalized coordinates (0-1) for screen positions
- Use natives.drawRect(Vec2 pos, Vec2 size, r, g, b, a)
- Use natives.displayText(Vec2) with addTextComponentString/drawText
- Separate RGBA color components instead of toColour integer
- Fix text rendering with proper native text function sequence
2026-01-12 15:51:25 +00:00
Claude
7bc52ef9d4 Fix client-side drawing API to use Vec2 and graphics API
- Replace natives.drawRect with graphics.drawRectangle using Vec2 objects
- Replace natives text functions with font.render using Vec2 position
- Correct signatures: graphics.drawRectangle(null, Vec2, Vec2, colour...)
- Correct signatures: font.render(text, Vec2, width, align, justify, size, colour)
2026-01-12 15:41:25 +00:00
iDisaster
e1e5f67c88 Merge pull request #2 from iDisaster/claude/enhance-gta-server-9Dezg
Claude/enhance gta server 9 dezg
2026-01-12 19:21:28 +04:00
Claude
686f80d49c Fix server-side API errors: use toColour, Vec3, spawnPlayer, giveWeapon
- Replace color arrays with toColour() integer format for message/messageClient
- Replace position arrays with Vec3 objects for player/vehicle positions
- Use pos.x, pos.y, pos.z instead of pos[0], pos[1], pos[2]
- Fix client.spawn() to client.spawnPlayer(Vec3, heading, skin)
- Fix client.giveWeapon() to client.player.giveWeapon()

Fixed files: freeroam, admin, chat, world, teleport, vehicles, modmenu
2026-01-12 15:16:21 +00:00
Claude
fee097c7db Fix mod menu client-side drawing API errors
- Remove gta.setCursorEnabled (not available in GTAC)
- Use gui.showCursor with proper checks
- Fix drawing functions to use natives API with correct parameters
- Add fallback drawing methods with try-catch
- Use GTA IV native text/rect drawing functions
2026-01-10 23:28:55 +00:00
Claude
dad2741754 Add interactive mod menu with GUI for all players
Features:
- Press F5 to open/close the mod menu
- Self options: health, armor, weapons, god mode, skins
- Vehicle spawner: 50+ vehicles organized by category
- Vehicle options: repair, flip, colors, drift mode, handling
- Network options: player list, teleport to other players
- Teleport locations: 15+ Liberty City locations
- World options: time and weather control
- Weapons menu: individual and all weapons
- Fun options: launch, ragdoll, ped spawning

Menu navigation via arrow keys, Enter to select, Backspace to go back
2026-01-10 23:21:39 +00:00
iDisaster
ffcd3d8383 Merge pull request #1 from iDisaster/claude/enhance-gta-server-9Dezg
Add comprehensive GTA IV freeroam server with multiple resources
2026-01-11 03:14:31 +04:00
Claude
c24c883252 Add comprehensive GTA IV freeroam server with multiple resources
Features:
- Freeroam resource: Player spawning, basic commands, kill tracking
- Vehicles resource: 100+ GTA IV vehicles with spawn commands
- Admin resource: Full moderation (kick, ban, mute, freeze, etc.)
- World resource: Weather and time control
- Chat resource: Private messages, local chat, roleplay actions
- Teleport resource: 30+ Liberty City locations with waypoints
- Server configuration and comprehensive README documentation
2026-01-10 23:13:58 +00:00
iDisaster
5b763de35a Initial commit 2026-01-11 02:57:11 +04:00