Esetleg feltennéd ide, hogy esetleg segíteni tudjunk esetleg?
addEventHandler(\"onClientClick\", getRootElement(),function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld)-- 1if exports[\"serverFunctions\"]:isMouseWithinRangeOf( (displayWidth / 2) - (registerTextWidth / 2), registerTextWidth, (displayHeight / 2) - ( registerTextHeight / 2) + 130, registerTextHeight ) then -- 2elseif exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - ( rulesBackButtonWidth / 2) - rulesBackButtonWidth, rulesBackButtonWidth, (displayHeight / 2) - (rulesBackButtonHeight / 2) + 120, rulesBackButtonHeight ) then -- 3elseif exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - (rulesBackButtonWidth / 2) + rulesBackButtonWidth, rulesBackButtonWidth, (displayHeight / 2) - ( rulesBackButtonHeight / 2) + 120, rulesBackButtonHeight) then -- 4elseif exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - ( registerBackButtonWidth / 2) - registerBackButtonWidth, registerBackButtonWidth, (displayHeight / 2) - (registerBackButtonHeight / 2) + 120, registerBackButtonHeight ) then endend)
Teljesen mindegy, hogy melyik ágat veszed ki? Vagy mindig ugyan azt vetted ki?
addEventHandler(\"onClientClick\", getRootElement(),function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld)-- 1if exports[\"serverFunctions\"]:isMouseWithinRangeOf( (displayWidth / 2) - (registerTextWidth / 2), registerTextWidth, (displayHeight / 2) - ( registerTextHeight / 2) + 130, registerTextHeight ) then end-- 2if exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - ( rulesBackButtonWidth / 2) - rulesBackButtonWidth, rulesBackButtonWidth, (displayHeight / 2) - (rulesBackButtonHeight / 2) + 120, rulesBackButtonHeight ) then end-- 3if exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - (rulesBackButtonWidth / 2) + rulesBackButtonWidth, rulesBackButtonWidth, (displayHeight / 2) - ( rulesBackButtonHeight / 2) + 120, rulesBackButtonHeight) then end-- 4if exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - ( registerBackButtonWidth / 2) - registerBackButtonWidth, registerBackButtonWidth, (displayHeight / 2) - (registerBackButtonHeight / 2) + 120, registerBackButtonHeight ) then endendend)
Próbáld meg így: addEventHandler(\"onClientClick\", getRootElement(),function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld)-- 1if exports[\"serverFunctions\"]:isMouseWithinRangeOf( (displayWidth / 2) - (registerTextWidth / 2), registerTextWidth, (displayHeight / 2) - ( registerTextHeight / 2) + 130, registerTextHeight ) then end-- 2if exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - ( rulesBackButtonWidth / 2) - rulesBackButtonWidth, rulesBackButtonWidth, (displayHeight / 2) - (rulesBackButtonHeight / 2) + 120, rulesBackButtonHeight ) then end-- 3if exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - (rulesBackButtonWidth / 2) + rulesBackButtonWidth, rulesBackButtonWidth, (displayHeight / 2) - ( rulesBackButtonHeight / 2) + 120, rulesBackButtonHeight) then end-- 4if exports[\"serverFunctions\"]:isMouseWithinRangeOf((displayWidth / 2) - ( registerBackButtonWidth / 2) - registerBackButtonWidth, registerBackButtonWidth, (displayHeight / 2) - (registerBackButtonHeight / 2) + 120, registerBackButtonHeight ) then endendend)