Skip to content

onClientPlayerWasted doesn't returns valid parameters when dying in vehicle explosion #2273

@sacr1ficez

Description

@sacr1ficez

Describe the bug
Client-side event doesn't return valid data, while it's counter-part at server-side does it correctly.

To reproduce

  1. Paste code (from below) in client & server-script.
  2. Die in vehicle explosion.
  3. Profit.

Code:

-- Client

function onClientPlayerWasted(...)
	local t = {...}

	iprint("Client: "..inspect(t))
end
addEventHandler("onClientPlayerWasted", root, onClientPlayerWasted)

-- Server

function onPlayerWasted(...)
	local t = {...}

	iprint("Server: "..inspect(t))
end
addEventHandler("onPlayerWasted", root, onPlayerWasted)

Expected behaviour
It should return valid data.

Screenshots
obraz

Version
Client/server version: v1.5.8-release-20884

Additional context
/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions