DirkScripts Logo

Login With FiveM

Login

πŸ“š Library
β€Ί
Modules
β€Ί

gizmo

Gizmo

ℹ️ Client Module - FiveM only

lib.gizmo

Open a 3D manipulation gizmo on an entity. The player can move, rotate, and scale the entity using the gizmo handles.

lua
local handle = lib.gizmo(entity)

handle.onLeave(function()
    print('Gizmo closed')
end)

-- Or close it programmatically
handle.close()
ParameterTypeRequiredDescription
entitynumberyesEntity handle to manipulate

Return Value

Returns a table with:

FieldTypeDescription
onLeavefunction(cb)Register a callback for when the gizmo is closed
closefunction()Close the gizmo programmatically

The gizmo supports three modes: translation (move), rotation, and scale. Players can switch between modes using the gizmo controls.

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.