Version 0.16.607.3592 ALPHA

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Version v0.16.607.3592 was released on Friday, July 10, 2015 UTC.

Changes in This Release

  • Added support for game version v393.

  • Removed support for game versions prior to v372.

  • World::GetAllPeds() now returns ALL peds (Every single (currently existing) one).

  • World::GetAllVehicles() now returns ALL vehicles (Every single (currently existing) one).

  • Added World::GetAllObjects(), which returns ALL objects (Every single (currently existing) one).

  • World::GetAllEntities() now returns ALL entities (Every single (currently existing) one).

  • Added World::GetEntities().

  • Added World::GetClosestEntity().

  • Values of console variables are now preserved across restarts, and can be set in RagePluginHook.ini.

  • Console command auto completer for models now reads models from RPF archives to show all installed vehicles, instead of just hardcoded ones (from v323).

  • Added class InitializationFile to read from, and write to initialization files (*.ini).

  • Fixed an issue in the SDK causing Visual Studio 2013 and earlier to not recognize Rage.PoolHandle.

  • Optimized DirectX hook for better compatibility with certain software, like Open Broadcaster Software.

  • Plugins are no longer reloaded when modified, by default.

  • Added optional parameter 'reloadWhenModified' to console command 'LoadPlugin'. If true, the loaded plugin will be automatically reloaded when modified.

  • Added console command 'UnloadPlugin'.

  • Changed return type of new Ped:PlayAmbientSpeech() overload from bool to void (It never returned anything).

  • Now shows an on-screen prompt when trying to load an unverified plugin, instead of requiring a second call to console command 'LoadPlugin'.

  • Added Game::DisplayNotification() overload to show a texture.

  • Console command 'ReloadAllPlugins' will now refuse to work when console variable 'WarnOnPluginLoad' is set to true.

  • Fixed plugins set to automaticaly reload on change, not preserving this wish for the reloaded plugin.

  • Removed game part from version info.

  • Added Quaternion::GetAxis().

  • Added Quaternion::GetAxes().

  • Added Entity::RightVector.

  • Added Entity::UpVector.

  • Console variable 'WarnOnPluginLoad' can no longer be set through console scripts, for security reasons.

  • Plugin verification now uses SHA-384 instead of MD5, for security reasons.

  • Version info is now scaled based on resolution, so it'll appear the same size on all resolutions.

  • Added Game::IsLoading.

  • Fixed mistake in XML comment on CryptographyHelper::GenerateSHA1Hash().

  • Added CryptographyHelper::GenerateSHA256Hash().

  • Added CryptographyHelper::GenerateSHA384Hash().

  • Added CryptographyHelper::GenerateSHA512Hash().

  • Added descriptions to all current console commands.

  • Console command 'CleanUp' now takes a plugin file name instead of plugin name.

  • Added parameter 'shouldDelete' to console command 'CleanUp' to delete entities instead of dismissing them.

  • Fixed console command 'SpawnAndWarp' not warping the player into vehicles, if the requested model was already in memory.

  • Fixed a crash when using Vehicle::HandlingData on v372.

  • Added Vehicle::CurrentGear.

  • Added Vehicle::NumberOfGears.

  • Added Vehicle::DriveForce.

  • Added Vehicle::TopSpeed.

  • Added Vehicle::IsPoliceVehicle.

  • Fixed Game::GetClipboardText() (And by extension, the console) freezing the game due to a compiler optimization bug.

  • Optimized Entity::IsValid.

  • Added World::PedCapacity.

  • Added World::VehicleCapacity.

  • Added World::ObjectCapacity.

  • Fixed NativeFunction::Natives failing to resolve some native names correctly. Eg. GetGroundZFor3DCoord was resolved to GET_GROUND_ZFOR3D_COORD instead of GET_GROUND_Z_FOR_3D_COORD.

  • Added support for void* when calling natives.

  • Fixed pointers passed as IntPtr to natives, being passed as NULL.

  • Added Game::IsControllerConnected().

  • Added Game::IsControlJustPressed().

  • Added Game::IsControlJustReleased().

  • Added Game::DisableControlAction().

  • Added Game::AllocateMemory(), as a wrapper for VirtualAlloc.

  • Added Game::FreeMemory(), as a wrapper for FreeAlloc.

  • Fixed logging system overwriting existing log, instead of appending.

  • Added Vehicle::GetPreviousPedOnSeat() to get the Ped that was previously on the specified seat.

  • Added Vehicle::Deform() to apply deformation to a vehicle.

  • The "Execute" button in the "Execute code" dialog can now be clicked by pressing Ctrl+Shift+Alt+Enter.

  • Changed maximum number of simultaneous suggestions in the auto completion menu to 40.

  • Deprecated parameterless Group constructor (Plugins should be updated to not use this constructor. It will be removed in the next version).

  • Added new Group constructor taking a Ped to be the leader.

  • Fixed Group::Leader not working correctly.

  • Fixed Group::Members not working correctly.

  • Fixed Group::Count not working correctly.

  • Added World::GetAllGroups().

  • Added XML comment to Group class.

  • Added PoolHandle::ToString().

  • Fixed "Execute code" plugins showing wrong line and columns in exceptions.

  • Fixed "Execute code" plugins not showing compile errors.

  • Added experimental support for DirectX 10 GPUs.

  • Fixed console command auto completion for Ped and Vehicle not working.

  • Added native name CLEAR_ALL_BROKEN_GLASS.

  • Added native name SET_GAMEPLAY_OBJECT_HINT.

  • Added native name IS_MEDICAL_DISABLED.

  • Added native name DOES_PED_HAVE_AI_BLIP.

  • Added native name GET_ALLOCATED_STACK_SIZE.

  • Added native name SET_FADE_OUT_AFTER_DEATH.

  • Added native name SET_FADE_OUT_AFTER_ARREST.

  • Added native name REGISTER_ENUM_TO_SAVE.

  • Added native name GET_LOCAL_PLAYER_AIM_STATE.

  • Added native name IS_PED_VAULTING.

  • Added native name GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS.

  • Added native name GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS.

  • Added native name SET_PED_DEFENSIVE_AREA_DIRECTION.

  • Added native name SET_PED_CAN_ARM_IK.

  • Added native name SET_PED_CAN_TORSO_IK.

  • Added native name SET_PLAYER_WEAPON_DEFENSE_MODIFIER.

  • Added native name SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER.

  • Added native name SET_PLAYER_MELEE_WEAPON_DEFENSE_MODIFIER.

  • Added native name SET_PLAYER_VEHICLE_DEFENSE_MODIFIER.

  • Added native name SET_PLAYER_PARACHUTE_PACK_TINT_INDEX.

  • Added native name GET_PLAYER_PARACHUTE_PACK_TINT_INDEX.

  • Added native name TASK_FOLLOW_NAV_MESH_TO_COORD_ADVANCED.

  • Added native name TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS.

  • Added native name TASK_GO_TO_COORD_ANY_MEANS_EXTRA_PARAMS_WITH_CRUISE_SPEED.

  • Added native name TASK_GUARD_ASSIGNED_DEFENSIVE_AREA.

  • Added native name SET_DRIVE_TASK_DRIVING_STYLE.

  • Added native name ADD_VEHICLE_SUBTASK_ATTACK_COORD.

  • Added native name SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON.

  • Added native name GET_IS_VEHICLE_PRIMARY_COLOUR_CUSTOM.

  • Added native name GET_IS_VEHICLE_SECONDARY_COLOUR_CUSTOM.

  • Added native name GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX.

  • Added native name SET_DISABLE_VEHICLE_PETROL_TANK_DAMAGE.

  • Added native name CAN_SHUFFLE_SEAT.

  • Added native name GET_NUM_MOD_COLORS.

  • Added native name GET_NUM_VEHICLE_WINDOW_TINTS.

  • Added native name SET_VEHICLE_ENGINE_CAN_DEGRADE.

  • Added native name GET_VEHICLE_BODY_HEALTH.

  • Added native name SET_VEHICLE_BODY_HEALTH.

  • Added native name ADD_DOOR_TO_SYSTEM.

  • Added native name REMOVE_DOOR_FROM_SYSTEM.

  • Added native name DOES_ANIM_DICT_EXIST.

  • Added native name REQUEST_NAMED_PTFX_ASSET.

  • Added native name HAS_NAMED_PTFX_ASSET_LOADED.

  • Added native name SET_PED_INFINITE_AMMO_CLIP.

  • Added native name DRAW_DEBUG_CROSS.

  • Added native name DRAW_BOX.

  • Added native name GET_SAFE_ZONE_SIZE.

  • Added native name SET_PARTICLE_FX_NON_LOOPED_COLOUR.

  • Added native name NETWORK_CAN_BAIL.

  • Added native name NETWORK_SEND_TEXT_MESSAGE.

  • Added native name NETWORK_DO_TRANSITION_QUICKMATCH_WITH_GROUP.

  • Added native name NETWORK_BAIL_TRANSITION.

  • Added native name NETWORK_HAS_INVITED_GAMER_TO_TRANSITION.

  • Added native name NETWORK_HAS_INVITED_GAMER.

  • Added native name NETWORK_IS_CHATTING_IN_PLATFORM_PARTY.

  • Added native name NETWORK_PLAYER_IS_BADSPORT.

  • Added native name NETWORK_GET_NUM_PARTICIPANTS.

  • Added native name NETWORK_IS_HOST_OF_THIS_SCRIPT.

  • Added native name NETWORK_AM_I_MUTED_BY_GAMER.

  • Added native name NETWORK_IS_GAMER_BLOCKED_BY_ME.

  • Added native name NETWORK_AM_I_BLOCKED_BY_GAMER.

  • Added native name NETWORK_CLAN_GET_MEMBERSHIP_DESC.

  • Added native name NETWORK_CLAN_REMOTE_MEMBERSHIPS_ARE_IN_CACHE.

  • Added native name NETWORK_GET_PRIMARY_CLAN_DATA_START.

  • Added native name NETWORK_GET_PRIMARY_CLAN_DATA_NEW.

  • Added native name SC_EMAIL_MESSAGE_PUSH_GAMER_TO_RECIP_LIST.

  • Added native name GET_HASH_NAME_FOR_COMPONENT.

  • Added native name GET_HASH_NAME_FOR_PROP.

  • Added native name GET_VARIANT_COMPONENT.

  • Added native name GET_SHOP_PED_OUTFIT.

  • Added native name GET_NUM_DLC_VEHICLES.

  • Added native name GET_NUM_DLC_WEAPONS.

  • Added native name GET_NUM_DLC_WEAPON_COMPONENTS.

  • Added native name NETWORK_EARN_FROM_IMPORT_EXPORT.

  • Added native name NETWORK_BUY_HELI_STRIKE.

  • Added native name NETWORK_SPENT_BULL_SHARK.

  • Added native name NETWORK_SPENT_HIRE_MUGGER.

  • Added native name NETWORK_SPENT_HIRE_MERCENARY.

  • Added native name NETWORK_SPENT_BUY_OFFTHERADAR.

  • Added native name NETWORK_SPENT_BUY_REVEAL_PLAYERS.

  • Added native name NETWORK_SPENT_BUY_PASSIVE_MODE.

  • Added native name NETWORK_SPENT_PROSTITUTES.

  • Added native name NETWORK_SPENT_ARREST_BAIL.

See Also

Other Resources