Jump to content

addDebugHook


Recommended Posts

سلام عليكم

الكود هادا لما اصدم سيارة يطلع ال 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...