15% OFF for new customers: NEWCUSTOMERBrowse resourcesPremium FiveM resources in ROXI styleView collectionInstant Tebex delivery after purchaseSetup docs15% OFF for new customers: NEWCUSTOMERBrowse resourcesPremium FiveM resources in ROXI styleView collectionInstant Tebex delivery after purchaseSetup docs15% OFF for new customers: NEWCUSTOMERBrowse resourcesPremium FiveM resources in ROXI styleView collectionInstant Tebex delivery after purchaseSetup docs15% OFF for new customers: NEWCUSTOMERBrowse resourcesPremium FiveM resources in ROXI styleView collectionInstant Tebex delivery after purchaseSetup docs
ROXI ScriptsROXI ScriptsClean FiveM Resources
HomeResourcesDocumentation
HomeResourcesDocumentation
ROXI Scripts

ROXI Scripts

0%

ROXI ScriptsROXI ScriptsClean FiveM Resources

Clean FiveM resources with modern UI, practical setup, and secure server-side logic.

Powered byTebex

Products

  • All Resources
  • ESX Resources
  • QBCore Resources
  • Qbox Resources

Resources

  • Documentation
  • Discord Support

Legal

  • Terms of Service
  • Privacy Policy
  • Refund Policy

© 2026 ROXI Scripts

ROXI Scripts is not affiliated with Rockstar Games, Take-Two Interactive, or Cfx.re.

Currency:
/
RoxiReports
  • Overview
  • Installation
  • Configuration
  • SQL & Tables
  • Discord Bridge
  • Workflow
RoxiCrosshairs
  • Overview
  • Installation
  • Configuration
  • SQL & Tables
  • Exports
DocsExports
RoxiCrosshairs

Exports

Client and server exports for controlling active crosshair state.

RoxiCrosshairs Exports

Use exports when another trusted resource needs to temporarily hide the crosshair or control the active crosshair from server logic.

Client exports

  • SetCrosshairEnabled(enabled)
  • IsCrosshairEnabled()
  • SetCrosshairVisible(visible)
  • GetActiveCrosshair()
  • RefreshCrosshair()

Server exports

  • GetActiveCrosshair(source)
  • SetActiveCrosshair(source, crosshairId)
  • ClearActiveCrosshair(source)

Client example

exports["RoxiCrosshairs"]:SetCrosshairEnabled(false)
Wait(5000)
exports["RoxiCrosshairs"]:SetCrosshairEnabled(true)

Server example

local ok = exports["RoxiCrosshairs"]:SetActiveCrosshair(source, 12)
if not ok then
  print("Crosshair was not found or is not visible to this player")
end

Integration notes

  • Do not trust client-side requests for ownership-sensitive changes.
  • Use server exports for active crosshair changes when possible.
  • Call refresh after external preference changes so NUI receives the current config.

Related Docs

  • Overview
  • Installation
  • Configuration

Related Resources

  • Browse all resources
  • Ask in Discord
PreviousSQL & Tables
Need help?Join Discord