Mr.Mostafa Posted July 3, 2019 Share Posted July 3, 2019 سلام عليكم الكود هادا لما اصدم سيارة يطلع ال f لكن ما يطلع اسم المود , وش المشكلة ؟ *كود احمد* function onPreEvent( sourceResource, eventName, eventSource, eventClient, luaFilename, luaLineNumber, ... ) local args = {...} if eventName == "onClientVehicleDamage" then local resname = sourceResource and getResourceName(sourceResource) print("f") print(getResourceName(sourceResource)) end end addDebugHook("preEvent", onPreEvent) Link to comment
MrBiG Posted July 9, 2019 Share Posted July 9, 2019 (edited) وعليكم السلام ورحمة الله print ( tostring ( getResourceName ( sourceResource ) ) ) Edited July 9, 2019 by MrBiG المشكلة 2 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