-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need Export to hide the map #6
Comments
@NeiZeOne Like an export to hide the minimap? Or one to hide the main map, setting it back to default? |
@NickReagan Like an export to hide the minimap [ocrp] |
I will work on this for you. |
Added new 'hideminimap' and 'showminimap' exports([suggestion](ocrp#6)) and changed to latest fx version.
Added new 'hideminimap' and 'showminimap' exports([suggestion](ocrp#6))
Added. 22de116 |
thank you very much, but what is now the triggerevent to hide it cant find it |
@NeiZeOne RegisterCommand('toggleminimap', function()
minimaphidden = not minimaphidden;
if minimaphidden then
exports.OCRP_postal_map.showminimap()
else
exports.OCRP_postal_map.hideminimap()
end
end) Keep in mind the OCRP_postal_map is just the base resource name. It must be whatever the folder is called wither that be postal_map, etc. exports.(resource_name).showminimap()
exports.(resource_name).hideminimap() |
Also keep in mind these are client side exports so must be called in a client side script. So client.lua, etc. |
Need Export to hide the map
The text was updated successfully, but these errors were encountered: