Logo
Explore Help
Sign In
ModdingRX/TmpMenu
1
0
Fork 0
You've already forked TmpMenu
mirror of https://github.com/Mr-X-GTA/YimMenu.git synced 2025-06-18 07:07:32 +08:00
Code Issues Actions 1 Packages Projects Releases Wiki Activity
TmpMenu/src/hooks/protections/receive_pickup.cpp

16 lines
374 B
C++
Raw Normal View History

Optimizations (#2649) * fix(Respawn): fix respawn in SP * fix: re-enable bigobj * fix: update creator's stack size * fix: use BOOLs instead of bools * fix(gitignore): hide .pyc files
2023-12-29 16:07:00 +00:00
#include "hooking/hooking.hpp"
namespace big
{
bool hooks::receive_pickup(rage::netObject* object, void* unk, CPed* ped)
{
if (g.protections.receive_pickup)
{
Add more translation keys (#3024)
2024-05-03 23:29:24 +08:00
g_notification_service.push_error("PROTECTIONS"_T.data(), "BLOCKED_PICKUP"_T.data());
Optimizations (#2649) * fix(Respawn): fix respawn in SP * fix: re-enable bigobj * fix: update creator's stack size * fix: use BOOLs instead of bools * fix(gitignore): hide .pyc files
2023-12-29 16:07:00 +00:00
return false;
}
return g_hooking->get_original<hooks::receive_pickup>()(object, unk, ped);
}
refactor!: Rewrite of the old notification service (#2866) The main goal was improving the readability of the original code however some ugliness remains. - Swapped from pointer singleton to instance singleton - Actually make use of the alpha logic that used to be present - Added a counter to notifications to indicate if something is being spammed - Notification timeouts reset if they're sent to the queue again
2024-03-23 00:04:49 +01:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.4 Page: 57ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API