Fabioxps Posted August 23, 2018 Share Posted August 23, 2018 local fonts = { dxCreateFont(...), dxCreateFont(...), } Is it necessary to use this code? addEventHandler( "onClientResourceStop", resourceRoot,function() for i=1, #fonts do destroyElement(fonts[i]) end end) or sources are destroyed without needing to call destroyElement Link to comment
Skylarker Posted August 23, 2018 Share Posted August 23, 2018 The resource-creator destroys all its child elements when stopped. 2 Link to comment
qaisjp Posted August 24, 2018 Share Posted August 24, 2018 Quote Is it necessary to use this code? Nope. Any elements a resource creates are automatically destroyed when the resource is stopped. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now