pmms
pmms copied to clipboard
fix: `attempt to index a nil value (field 'options')`
This PR resolves issue: #71
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.