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 1 year ago • 2 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

Could you send code ?

Freeetz avatar Nov 01 '24 22:11 Freeetz

Could you send code ?

https://github.com/Z3rio/pmms/tree/master You can already access it via this PR.

Z3rio avatar Nov 05 '24 21:11 Z3rio