Fabioxps Posted August 23, 2018 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
Skylarker Posted August 23, 2018 Posted August 23, 2018 The resource-creator destroys all its child elements when stopped. 2
MTA Team qaisjp Posted August 24, 2018 MTA Team 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
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