-
Posts
43 -
Joined
-
Last visited
-
Days Won
2
Posts posted by NickScripter
-
-
Fixed it by setting root directory permission to 755.
-
Hello everyone!
I'm having trouble configuring the External Web Server using Nginx.
I followed the MTA Wiki tutorial on how to install and configure Nginx properly. However, I am not able to resolve the 403 error.I put permissions on all files in the resource-cache at 755 and it didn't work either.
Does anyone know what I can do to resolve this error?
I'm using Debian 10 x64Thanks
-
Combo Introdução PREMIUM Nick Scripter
Sabia que a primeira coisa que os players reparam no seu servidor é a introdução?? Por isso, decidi fazer um super sistema para o seu servidor ficar mais completo do que nunca!
Vídeo Demonstativo
Imagens
Spoiler
Funções:- Painel de Login Personalizado
- Whitelist (prova após o registro) Para evitar players Anti-RP no seu servidor.
- Modo Anti-lag no cadastro. Ativando essa função, os players ganham mais FPS.
- Criação de personagem MASCULINO e FEMININO para atender todos os jogadores(as) da sua cidade!
- Emissão de RG para registrar seus dados antes de entrar na cidade
- Introdução do servidor que mostra até 10 telas de locais que você pode escolher, junto com titulo e texto.
- Edit para configurar o local de Spawn após a finalização da introdução.
---------------------------------------------------------------------
Adquira já o Combo PREMIUM via INBOX da página Nick Scripter e deixe o seu servidor com a sua cara!
Valor: R$100,00
-
On 15/09/2020 at 01:29, Lord Henry said:
Uma sugestão:
A animação de plantando a semente poderia ser aquela de plantar bomba. Que ele abaixa e fica manuseando algo.
Dai a animação de colheita poderia ser essa que está sendo usada pra plantar a semente.
Boa sugestão, Henry!
-
Olá pessoal!!
Hoje venho trazer pra vocês um script que pode ser o script perfeito para você adicionar ao seu servidor de Roleplay!
Está disponível a nova versão do Sistema de Drogas Avançado com diversas novidades!!
-------------------------------------------------------------Funções:
- Todas as drogas possuem efeitos ao serem usadas.
- A potência do efeito é aleatória, podendo bater uma brisa rápida e fraca ou uma muito forte e duradoura.
- 5 tipos de Drogas: Maconha, Cocaina, Crack, Lança Perfume e Bala.
- Sistema de Plantação, colheita e processamento de Maconha.
- Sistema de Tráfico (/traficar) para vender drogas a outros players.
- Inventário reformulado leve e dinâmico para guardar as drogas.
- Sistema protegido por ACL (Somente pode plantar quem está na ACL)
- Script Edit completo para personalizar as configurações do MOD a seu gosto.
- Comando administrativo /setdroga id droga qnt para setar drogas a um player.
- E MUITO MAIS!!!Vídeo Demonstrativo
Imagens
SpoilerProcesso de plantação de Maconha
Após cavar o buraco, jogar a semente no chão, a maconha floresce e você precisará coleta-la pra processar.
Após colher a maconha, você precisará levar até o galpão para a maconha ser processada.
Após processar a maconha, você pode consumi-la através do inventário de drogas (/drogas) ou vende-la para outro player através do comando /traficar.
(Efeito da maconha)
(Efeito do Crack)
Painel de venda de drogas que aparece para os players através do comando /traficar.
Inventário de drogas (/drogas)
NPC Traficante das outras drogas (Somente pode acessar o NPC quem está na ACL pré-definida no Edit)
Edit completo para personalizar de acordo com a sua preferência.
Adquira já via INBOX da página do Facebook Nick Scripter MTA
Valor: R$60,00Se gostou do Post, não se esqueça de reagir ao post pra me incentivar a trazer mais mods pra vocês!!
-
1
-
-
----/////////------ --Lado do Cliente ----/////////------ function ligarMotor() triggerServerEvent("motor",getLocalPlayer()) end --Seta o Motor Como Desligado ao Entrar + Bind para Ligar/desligar o motor addEventHandler("onClientVehicleEnter",getRootElement(),function() if(getPedOccupiedVehicleSeat(localPlayer) == 0 then outputChatBox("#FFFF00Para Ligar/Desligar o Motor Aperte [ i ]",r,g,b,true) triggerServerEvent("motor",getLocalPlayer()) bindKey("i","down",ligarMotor) else return end ----//////--- --Seta o Motor Como Desligado ao Sair ----//////--- end) addEventHandler("onClientVehicleStartExit",getRootElement(),function() if(getPedOccupiedVehicleSeat(localPlayer) == 0 then unbindKey("i","down",ligarMotor) triggerServerEvent("motor",getLocalPlayer()) triggerServerEvent("certezza",getLocalPlayer()) else return end end)
Tente assim.
-
6 minutes ago, \\Virus// said:
bom Mt obrigado vou testar aqui e ver se funciona!
não funcionou man, continua com o mesmo bug, quando alguem esta em um veiculo assim com eu e sai/entra do carro ambos os carros desligam, ele n tá agindo individualmente ;-;
mas obg pela ajuda
Recomendo você tentar usar essa função que falei acima no client em OnClientVehicleEnter e OnClientVehicleStartExit, para chamar o triggerServerEvent apenas quando for o passageiro 1 para evitar de que outros passageiros chamem essa função. Lembrando que terá que trocar o source por localPlayer
-
51 minutes ago, \\Virus// said:
olá , bom dia/boa tarde/boa noite/ estou com um problema com o meu script de Ligar/desligar motor com os "triggerServerEvent"."o script faz com que, quando um player entra no carro ele começa desligado, e o player tem que pressionar [ i ] para ligar o veiculo,porém por algum motivo bizarro quando um player está em um veiculo e outro entra/sai de outro veiculo os dois veículos desligam e não consigo identificar o problema, por isso estou pedindo ajuda aq ;-;"
Script:
----/////////------ --Lado do Cliente ----/////////------ function ligarMotor() triggerServerEvent("motor",getLocalPlayer()) end --Seta o Motor Como Desligado ao Entrar + Bind para Ligar/desligar o motor addEventHandler("onClientVehicleEnter",getRootElement(),function() outputChatBox("#FFFF00Para Ligar/Desligar o Motor Aperte [ i ]",r,g,b,true) triggerServerEvent("motor",getLocalPlayer()) bindKey("i","down",ligarMotor) ----//////--- --Seta o Motor Como Desligado ao Sair ----//////--- end) addEventHandler("onClientVehicleStartExit",getRootElement(),function() unbindKey("i","down",ligarMotor) triggerServerEvent("motor",getLocalPlayer()) triggerServerEvent("certezza",getLocalPlayer()) end) ------------------------------------------------------------------------- ----/////////------ --Lado do Server ----/////////------ ---desliga e liga o motor baseado no input do cliente local function motorToggle() local theVehicle = getPedOccupiedVehicle(source) if (getVehicleEngineState(theVehicle) == true) then setVehicleEngineState(theVehicle,false) setVehicleLightState(theVehicle,0,1) setVehicleLightState(theVehicle,1,1) setVehicleLightState(theVehicle,2,1) setVehicleLightState(theVehicle,3,1) elseif (getVehicleEngineState(theVehicle) == false) then setVehicleEngineState(theVehicle,true) setVehicleLightState(theVehicle,0,0) setVehicleLightState(theVehicle,1,0) setVehicleLightState(theVehicle,2,0) setVehicleLightState(theVehicle,3,0) end end addEvent("motor",true) addEventHandler("motor",getRootElement(),motorToggle) --///--- --dá a certeza que o motor vai desligar ao sair (mesmo se ja estiver desligado) ---///-- local function certeza() local theVehicle = getPedOccupiedVehicle(source) if (getVehicleEngineState(theVehicle) == true) then setVehicleEngineState(theVehicle,false) setVehicleLightState(theVehicle,0,1) setVehicleLightState(theVehicle,1,1) setVehicleLightState(theVehicle,2,1) setVehicleLightState(theVehicle,3,1) end end addEvent("certezza",true) addEventHandler("certezza",getRootElement(),certeza)
se alguém puder me ajudar ficarei mt grato
Nesse caso, no Server, você precisa adicionar uma função para verificar qual o assento do jogador. Recomendo você usar getPedOccupiedVehicleSeat para verificar se o passageiro é o motorista (no caso, 0)
Ficaria então:
------------------------------------------------------------------------- ----/////////------ --Lado do Server ----/////////------ ---desliga e liga o motor baseado no input do cliente local function motorToggle() local theVehicle = getPedOccupiedVehicle(source) if getPedOccupiedVehicleSeat(source) == 0 then if (getVehicleEngineState(theVehicle) == true) then setVehicleEngineState(theVehicle,false) setVehicleLightState(theVehicle,0,1) setVehicleLightState(theVehicle,1,1) setVehicleLightState(theVehicle,2,1) setVehicleLightState(theVehicle,3,1) elseif (getVehicleEngineState(theVehicle) == false) then setVehicleEngineState(theVehicle,true) setVehicleLightState(theVehicle,0,0) setVehicleLightState(theVehicle,1,0) setVehicleLightState(theVehicle,2,0) setVehicleLightState(theVehicle,3,0) end end end addEvent("motor",true) addEventHandler("motor",getRootElement(),motorToggle)
-
1
-
-
Good job!
-
1
-
-
2 hours ago, Khadeer143 said:
Thats good to see gta V rpg server and also there is another GTA V freeroam already in mta sa
19 minutes ago, Tut said:I like it a lot, great recreation
A few things I would consider is the overall speed of vehicles and animations, for some scenes I would record in say, 0.8 or 0.6 game speed, just to get a more smooth movement.
For the camera I would use a camera tool instead of panning and cropping in post. It gives you more creativity space and I have personally used it for many years:
Thank you guys! Good tips Tut, next video i will use it =D
-
Hello everyone!
I made the GTA V trailer in MTA and I would like to share with you guys.
Hope you enjoy it!
If you enjoyed it, please react to the post
-
1
-
-
On 07/07/2020 at 02:35, Neeo said:
Parabéns ótimo post mesmo
Obrigado!! Espero você na cidade
-
Thank you guys! =D
-
The first 3 persons who use the code NSCR will have 10% discount on the buy!
-
Hi everyone! I want to offer for sale a Advanced Medical System that can be the perfect DLC for your Roleplay server.
Basic Informations
- Includes the Hospital Interior.
- Patient and Vehicle Panel with several options.
- With <36 health, the Player get a Hurt Walkstyle and needs to go to the Hospital and look for a Medic to heal him. (Or set the Player HP to > 36)
- With < 30 health, the Player get unconscious for 10 minutes, needing to call the ambulance with the '/medic' command.
- Release the Stretcher on ground with '/release' command.
- Pickup the stretcher with '/pickup' command.
- To be able to revive the patient at the accident site, you will need to use the Defibrillator. You will have 5 chances to try to revive the patient.
If not, the patient will die.
- After placing the Patient in the ambulance and taking him to the hospital, you will take him to the ICU (Intensive Care Unit) room to have surgery.
- After completing the surgery on the patient, you will be taken to the recovery room for final treatment and then released.
- After the Patient has recovered, he will be given a wheelchair, in which he will stay for 2 minutes, not being able to jump and hit while in the chair.
- '/debug id' command for Admin ACL to reset System variables for a doctor.
- Command '/heal id' for Admin, SuperModerator or Moderator ACL for a fast player heal.
- Debugscript CLEAR without Errors or Warnings
(The vehicle skin is not included)
These images are from the BETA version and may not represent the final version of the product.
Requirements
ID System (Included on the resource package)
The resource is compiled
Buy it
The first 3 persons who use the Promotion Code NSCR will have 10% discount
Payment with Paypal
Buy it fast and safe here: https://payhip.com/b/vcW7
Contact
Facebook: facebook.com/NickScripterMTA
E-MAIL: [email protected]
-
2
-
-
1 hour ago, Lord Henry said:
Bom tópico. A maioria só deixa o IP e uma breve descrição, mas você soube aproveitar seu espaço e mostrar várias coisas legais do servidor, parabéns.
Apenas deixei as imagens dentro de spoilers para evitar o spam.
Obrigado, Henry. Fico feliz por vocês terem gostado =D
-
4 hours ago, ~#BlackSCR said:
Servidor aparentemente bem organizado! Boa sorte brother.
Muito obrigado. Estamos ai na luta desde 2010 tentando fazer o cenário brasileiro ir pra frente. Acredito que consegui chegar no nivel de desenvolvimento do servidor que o cenário BR de MTA merece =D
-
2 hours ago, [M]ister said:
Finalmente uma divulgação decente de servidor... com imagens/descrição/originalidade. Parabéns, boa sorte com o projeto!
Obrigado mano!
-
- Popular Post
- Popular Post
Thug Life Roleplay v1.0
Conexão
- [[--[Nome na lista] 『Thug Life Roleplay』 『FiveM-RP』
- [IP THUG LIFE] mtasa://104.156.245.223:22003--]]
Informações
O Servidor Thug Life Roleplay, fundado em 2010 por André Felipe no SA-MP, retornou. Porém agora, para o MTA!
O servidor foi desenvolvido por Nick Scripter, durante o período de um ano. Várias funções foram adicionadas durante esse período, tudo foi
gravado e divulgado através do Discord do Thug Life e o meu canal do Youtube. As prints e vídeos a seguir, são da versão Beta, feita durante esse processo de 1 ano e não podem representar as
mesmas funções na versão final.
Espero que vocês curtam o servidor, que está acessível para todos, devido a função Anti-Lag implementada. Ao criar sua conta, você é perguntado se quer ativar
a função Anti-lag! Te garante 10 FPS no minimo...
Funções do servidor:
Sistema de cadastro by Nick Scripter
Ao entrar no servidor e se registrar pela primeira vez, você será submetido a um questionário para saber se está apto ou não de acordo com as
regras do servidor Thug Life Roleplay. Após passar a prova, você irá criar o seu personagem e personalizar da forma com que você preferir.
Existe a funcionalidade Anti-lag para otimizar o seu MTA e rodar com a maior quantidade possivel de FPS que o seu MTA alcança.
O servidor possui um sistema de Americanos que são NPCs que andam pela cidade, motos, carros, pedestres, avioes, helicopteros e barcos.
Todos otimizados e não dao qualquer interferência na performance do jogo. A cidade sempre fica movimentada e cheia de vida.
Servidor foi pensado nos minimos detalhes para trazer uma experiência inédita e gloriosa na história do MTA Brasil!!!
Aguardamos vocês na nossa cidade. Fique com as prints do servidor Thug Life =D
SpoilerSistema de Drogas avançado e Vídeo Bonus by Nick Scripter
SpoilerPainel Policial iPad Pro by Nick Scripter
SpoilerSistema de inventário by Nick Scripter
SpoilerSistema de Skins by Nick Scripter
SpoilerLoja de Roubos by Nick Scripter
SpoilerSistema de Level by Nick Scripter
SpoilerSistema de SAMU Avançado by Nick Scripter
SpoilerSistema de Morte by Nick Scripter
SpoilerSistema de Pixação by Desconhecido e editado por Nick Scripter
SpoilerVídeos Bonus
Informações do servidor
[[--[Nome na lista] 『Thug Life Roleplay』 『FiveM-RP』 [IP THUG LIFE] mtasa://104.156.245.223:22003--]]
Se você gostou da publicação, deixe um coração para mostrar seu reconhecimento para com que eu faça mais conteúdos sobre o MTA.
Dá muito trabalho para fazer, mas faço porque gosto!! Espero que tenham curtido =D
-
4
-
On 25/05/2020 at 11:26, Lukas NQB said:
Isso é um "trabalho" de criação de armas, porém antes de criar armas ele precisa criar as peças, sendo assim o mesmo tem que ir em determinados locais pré-definidos, aonde ele vai comprar uma certa quantidade de materiais, ele só vai poder comprar 1 vez em cada ponto de venda depois devera retornar a HQ aonde haverá um marker que vai fazer essa divisão aonde a cada 10 materiais ele transforma em 1 peça.
Realizei o teste acima porém está me retornando um erro.
setElementData(localPlayer, "pPecas", getElementData(localPlayer, "Materials")/10)
attempt to perform arithmetic on a boolean value
Se possível me de um exemplo de como ficaria esse código em table, isso vai me dar uma base e uma noção para me aprofundar mais e evoluir.
Isso acontece pois o Element "pPecas" ou "Materials" está em false ao invés de numerico.. você precisa definir o valor deles para conseguir fazer a divisão.
-
I managed to fix it! Thanks for your RadioBox tip, you saved me
!!
-
1
-
-
13 minutes ago, ReZurrecti0n said:
FecharProva -- What is this? A Variable? Its not doing anything... Why is this here or what do you want it to do?etapas[localPlayer] = true -- This line itself is actually just fineAbrirProva -- What is this? A Variable? Its not doing anything... Why is this here or what do you want it to do?
AbrirProva - Opens the DX
FecharProva - Closes the DX
-
Thanks for you reply! The radio buttons fit better in the system that i want
I'ts returning a error when i start the script
'=' expected near 'etapas' --Error line in function Prova(button) etapas[localPlayer] = true
More explained Script
Client:
local etapas = {}; -- Step of the questions local acertou = {}; -- right answer table local Pergunta = "" -- Question local textotitulo = "" -- Title Text local texto1 = "" -- Option 1 text local texto2 = "" -- Option 2 text local texto3 = "" -- Option 3 text local texto4 = "" -- Option 4 text function AbrirProva() -- Open DX if isEventHandlerAdded("onClientRender", getRootElement(), ProvaRender) then return end addEventHandler ( "onClientGUIClick", prosseguir, Prova ) addEventHandler("onClientRender", root, ProvaRender) showCursor(true) end --addCommandHandler("testedss", AbrirProva) addEvent("NSCR:AbrirProva", true) addEventHandler("NSCR:AbrirProva", root, AbrirProva) function FecharProva() -- Close DX if isEventHandlerAdded("onClientRender", getRootElement(), ProvaRender) then removeEventHandler("onClientRender", root, ProvaRender) removeEventHandler("onClientGUIClick", root, Prova) showCursor(false) setElementVisibleTo(localPlayer, "prosseguir", false) setElementVisibleTo(localPlayer, "opcaoA", false) setElementVisibleTo(localPlayer, "opcaoB", false) setElementVisibleTo(localPlayer, "opcaoC", false) setElementVisibleTo(localPlayer, "opcaoD", false) end end function Prova(button) local quantidade = acertou[localPlayer] if button == "left" then if etapas[localPlayer] == false then FecharProva etapas[localPlayer] = true AbrirProva elseif etapas[localPlayer] == true then if Pergunta == false then FecharProva Pergunta = 1 AbrirProva elseif Pergunta == 1 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 2 AbrirProva elseif Pergunta == 2 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 3 AbrirProva end elseif Pergunta == 3 then if source == opcaoD then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 4 AbrirProva end elseif Pergunta == 4 then if source == opcaoD then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 5 AbrirProva end elseif Pergunta == 6 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 7 AbrirProva end elseif Pergunta == 7 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 8 AbrirProva end elseif Pergunta == 8 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 9 AbrirProva end elseif Pergunta == 9 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva if quantidade >= 6 then -- If you hit more than 6, you passed outputChatBox ( "[TLRP] #34eb3dVocê passou na prova com "..quantidade.." acertos. Parabéns!!", 255, 255, 255, true ) acertou[localPlayer] = 0 etapas[localPlayer] = false; triggerServerEvent(localPlayer, "NSCR:TerminouProva", localPlayer) else -- fail message outputChatBox ( "[TLRP] #ff0000Você falhou na prova com "..quantidade.." acertos e foi kickado. (Maximo de erros: 6)", 255, 255, 255, true ) kickPlayer(localPlayer) end end end end end function ProvaRender() -- DX if Pergunta == "1" then -- Sets the DX Text textotitulo = "O que é Roleplay?" texto1 = "A- Cidade do MTA Roleplay" texto2 = "B- Simulação de tiro" texto3 = "C- Simulação da vida real" texto4 = "D- Gamemode do GTA ONLINE" elseif Pergunta == "2" then textotitulo = "O que é RDM?" texto1 = "A- Quando prende um meliante" texto2 = "B- Roubar alguem perto da policia" texto3 = "C- Matar um jogador sem motivo" texto4 = "D- Atropelar um jogador sem motivo" end elseif Pergunta == "3" then textotitulo = "O que é VDM?" texto1 = "A- Quando morre afogado" texto2 = "B- Fugir da delegacia de policia" texto3 = "C- Matar um jogador sem motivo" texto4 = "D- Atropelar um jogador sem motivo" end if etapas[localPlayer] == false then -- Intro DX acertou[localPlayer] = 0 dxDrawImage(711, 406, 507, 354, ":[Script]Identidade/Img/prova.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Testando conhecimento do RP", 805 - 1, 421 - 1, 1085 - 1, 459 - 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805 + 1, 421 - 1, 1085 + 1, 459 - 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805 - 1, 421 + 1, 1085 - 1, 459 + 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805 + 1, 421 + 1, 1085 + 1, 459 + 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805, 421, 1085, 459, tocolor(255, 255, 255, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 - 1, 512 - 1, 1178 - 1, 648 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 + 1, 512 - 1, 1178 + 1, 648 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 - 1, 512 + 1, 1178 - 1, 648 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 + 1, 512 + 1, 1178 + 1, 648 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749, 512, 1178, 648, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 - 1, 658 - 1, 1178 - 1, 739 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 + 1, 658 - 1, 1178 + 1, 739 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 - 1, 658 + 1, 1178 - 1, 739 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 + 1, 658 + 1, 1178 + 1, 739 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745, 658, 1178, 739, tocolor(255, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawImage(849, 203, 236, 193, ":[Script]Identidade/Img/logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) setElementVisibleTo(localPlayer, "prosseguir", true) elseif etapas[localPlayer] == true then -- Questions DX setElementVisibleTo(localPlayer, "opcaoA", true) setElementVisibleTo(localPlayer, "opcaoB", true) setElementVisibleTo(localPlayer, "opcaoC", true) setElementVisibleTo(localPlayer, "opcaoD", true) dxDrawImage(849, 203, 236, 193, ":[Script]Identidade/Img/logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(711, 406, 507, 354, ":[Script]Identidade/Img/perguntas.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText(""..textotitulo.."", 854 - 1, 422 - 1, 1091 - 1, 472 - 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854 + 1, 422 - 1, 1091 + 1, 472 - 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854 - 1, 422 + 1, 1091 - 1, 472 + 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854 + 1, 422 + 1, 1091 + 1, 472 + 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854, 422, 1091, 472, tocolor(229, 107, 25, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 - 1, 509 - 1, 1011 - 1, 559 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 + 1, 509 - 1, 1011 + 1, 559 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 - 1, 509 + 1, 1011 - 1, 559 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 + 1, 509 + 1, 1011 + 1, 559 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774, 509, 1011, 559, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 - 1, 565 - 1, 1011 - 1, 615 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 + 1, 565 - 1, 1011 + 1, 615 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 - 1, 565 + 1, 1011 - 1, 615 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 + 1, 565 + 1, 1011 + 1, 615 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774, 565, 1011, 615, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 - 1, 625 - 1, 1011 - 1, 675 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 + 1, 625 - 1, 1011 + 1, 675 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 - 1, 625 + 1, 1011 - 1, 675 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 + 1, 625 + 1, 1011 + 1, 675 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774, 625, 1011, 675, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 - 1, 690 - 1, 1011 - 1, 740 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 + 1, 690 - 1, 1011 + 1, 740 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 - 1, 690 + 1, 1011 - 1, 740 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 + 1, 690 + 1, 1011 + 1, 740 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774, 690, 1011, 740, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) end end addEventHandler("onClientResourceStart", resourceRoot, function() prosseguir = guiCreateButton(878, 760, 157, 41, "Prosseguir", false) guiSetProperty(prosseguir1, "NormalTextColour", "FF31FC02") opcaoA = guiCreateRadioButton(749, 492, 75, 53, "", false, false) opcaoB = guiCreateRadioButton(749, 549, 75, 53, "", false, false) opcaoC = guiCreateRadioButton(749, 608, 75, 53, "", false, false) opcaoD = guiCreateRadioButton(749, 671, 75, 53, "", false, false) end )
Server:
function TerminouProva() -- Final Step triggerClientEvent(source, "DNL:AbrirRG", source) -- Continues the registration spawnPlayer(source, 1481.9635009766, -1782.9182128906, 21.828456878662, 2.0302429199219) end addEvent("NSCR:TerminouProva", true) addEventHandler("NSCR:TerminouProva", root, TerminouProva)
Waiting your reply! Thanks!!
-
Hello! I'm trying to make a system where the player needs to answer a few questions before registering.
I'm having trouble doing the part where the player selects a CheckBox an answer and clicks the Confirm button.
can anybody help me?
'etapas' means the step of the menu (false is the intro menu and true is the questions menu)
Client
etapas = {}; acertou = {}; function Prova(button) local quantidade = acertou[localPlayer] if button == "left" then if etapas[localPlayer] == false then FecharProva etapas[localPlayer] = true AbrirProva elseif etapas[localPlayer] == true then if Pergunta == false then FecharProva Pergunta = 1 AbrirProva elseif Pergunta == 1 then if source == opcaoC then if guiCheckBoxGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 2 AbrirProva elseif Pergunta == 2 then if source == opcaoC then if guiCheckBoxGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 3 AbrirProva end elseif Pergunta == 3 then if source == opcaoC then if guiCheckBoxGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva if quantidade >= 2 then outputChatBox ( "[TLRP] #34eb3dVocê passou na prova com "..quantidade.." acertos. Parabéns!!", 255, 255, 255, true ) acertou[localPlayer] = 0 etapas[localPlayer] = false; triggerServerEvent(localPlayer, "NSCR:TerminouProva", localPlayer) else outputChatBox ( "[TLRP] #ff0000Você falhou na prova com "..quantidade.." acertos e foi kickado. (Maximo de erros: 3)", 255, 255, 255, true ) kickPlayer(localPlayer) end end end end end
Error:
'=' expected near 'etapas' --Error line: etapas[localPlayer] = true
Thanks!!!!
[SELL] Advanced Drug System
in Resources
Posted · Edited by NickScripter
Hi everyone! I want to offer for sale a Advanced Drug System that can be the perfect DLC for your Roleplay server.
The Advanced Drug System is a system designed to bring realism to your city. This Mod allows you to be a drug dealer.
The system works by ACL protection, ensuring the security and efficiency of the Mod, selecting
the people who will have access to the system.
The drug dealer can sell up to 5 different types of drugs:
- Marihuana
- Cocaine
- Crack
- Crystal
- Ecstasy
Each drug has a different psychedelic effect when used and the time it gets stoned is random, which can be a quick or long wave.
Marijuana plantation system to be able to plant and process marijuana.
Illegal drug store exclusively for those at ACL, with the option to buy Cocaine, Crack, Ecstasy and Crystal.
Command /selldrugs to create a Marker and start selling drugs to nearby players.
Key bind to open the Drug Inventory, configurable in Edit.
Edit script to customize the main Mod settings.
Useful commands:
- /setdrugs id drugname quantity - Set drugs for a player. (Example: / setdrugs 1 marijuana 50) (Permission only for ACL Admin and Console)
Name of the drugs: marijuana crack cocaine ecstasy crystal.
- /drugs - Opens the drug inventory.
- /selldrugs - Command for a trafficker use to open the drug store.
- /plantmarijuana - Starts the planting of marijuana on the farm
-------------
Screenshots of the Mod:
Edit script for you to customize the Mod to your liking.
Drugs Inventory
After smoke weed
The effect of marijuana creates random objects without collision.
Cocaine effect
Illegal Drug Store (Exclusive for players in the drug dealer ACL)
Panel selling drugs to other players
Marijuana planting process
Requirements
ID System (Included on the resource package)
This resource is compiled
Buy it
Payment with Paypal using PayHip and get the Download file
Buy it fast and safe here:
https://payhip.com/b/29uR
Or send $30 to [email protected] with Paypal
and i will send the Mod File to your E-mail.
Other products:
Advanced Medical System MTA Forum
Contact
Website
Facebook Page
E-MAIL: [email protected]