Search the Community
Showing results for tags 'erro painel'.
-
Eu tava fazendo um painel que quando a pessoa clicava no botão tocava musica so que começou a bugar então resolvir pedir ajudar aqui ja que você se mt pro em programação Script: function showPanellr(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("surpresa")) then ---So Mude "PCC" Grupo que vai poder abrir o painel ! triggerClientEvent(thePlayer, "painelrota", getRootElement()) end end function onResStartlr() for index, player in ipairs(getElementsByType("player")) do bindKey(player, "k", "down", showPanellr)------"K" Botao Para Abrir O Painel end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResStartlr) function onPlayerJoinlr() bindKey(source, "k", "down", showPanellr)------"K" Botao Para Abrir O Painel end addEventHandler("onPlayerJoin", getRootElement(), onPlayerJoinlr) function cleanAlllr(player) for index, player in ipairs(getElementsByType("player")) do unbindKey(player, "k", "down", showPanellr)------"K" Botao Para Abrir O Painel end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), cleanAlllr) veh = {} function playTheSound() soundinside = playSound3D("natal.mp3", source, 255, 255, 255,true) setElementInterior(soundinside, 2) setElementDimension(soundinside, 5) setSoundVolume(soundinside, 1) setSoundMinDistance(soundinside, 17) setSoundMaxDistance(soundinside, 100) soundout = playSound3D("natal.mp3", source, 255, 255, 255,true) setSoundVolume(soundout, 1) setSoundMinDistance(soundout, 17) setSoundMaxDistance(soundout, 100) end Erro: WARNING: [managers]\PainelSurpresa\server.lua:3: Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean]
- 2 replies
-
- erro painel
- painel erro
- (and 5 more)