pmms icon indicating copy to clipboard operation
pmms copied to clipboard

fix: `attempt to index a nil value (field 'options')`

Open Z3rio opened this issue 8 months ago • 0 comments

This PR resolves issue: #71

image

Recreation

You can recreate this error by running the following code on your server-side:

local src = source
local ped = GetPlayerPed(src)

if ped then
	exports.pmms:startByNetworkId(NetworkGetNetworkIdFromEntity(ped), {
		url = "SOME URL",
		duration = 3,
		range = 5
	})
end

Solution

This is solved via actually passing down the options to the pmms:play event and sendMediaMessage function.

Z3rio avatar Jun 07 '24 13:06 Z3rio