Prefixobjekt
Active member
- Joined
- Aug 1, 2014
- Messages
- 55
- Reaction score
- 0
Hi,
i need to make a function to show the samp cursur without opening the chat
i use this from s0b
problem: invisible cursor..
Problem is if im using this, cursor isnt shown, but the screen is frozen like chat is open and cursorposition is still changing if im moving my mouse.
any other methods?
anyone have same problem?
i need to make a function to show the samp cursur without opening the chat
i use this from s0b
problem: invisible cursor..
Code:
void toggleSAMPCursor(int iToggle)
{
if (g_SAMP == NULL) return;
if (g_Input->iInputEnabled) return;
void *obj = *(void **) (g_dwSAMP_Addr + SAMP_MISC_INFO);
((void(__thiscall *) (void *, int, bool)) (g_dwSAMP_Addr + SAMP_FUNC_TOGGLECURSOR))(obj, iToggle ? 3 : 0, !iToggle);
if (!iToggle)
((void(__thiscall *) (void *)) (g_dwSAMP_Addr + SAMP_FUNC_CURSORUNLOCKACTORCAM))(obj);
// g_iCursorEnabled = iToggle;
}
Problem is if im using this, cursor isnt shown, but the screen is frozen like chat is open and cursorposition is still changing if im moving my mouse.
any other methods?
anyone have same problem?