PatrickChucky
Members-
Posts
17 -
Joined
-
Last visited
Everything posted by PatrickChucky
-
Hello everyone! I got a problem. I can't select windows using the "World Object" Tool / I can't remove windows using the "World Object Remover" tool. I used the "E" (The red cursor) and nothing. Can anyone help me?
-
Thank you a lot Its working Finally
-
Olá Bem estou a ter um problema com os objectos de SA:MP no MTA. É o seguinte, eu consigo usa-los e mapear no MTA Map-editor com eles, mas se eu colocar no meu server de MTA eles não funcionam. Tem alguma maneira de os fazer aparecer? Deixo aqui as prints. E sim é para usar em MTA e não em SA:MP, SA:MP não chega nem aos calcanhares do MTA, apenas gostei dos novos objectos do SA:MP. No map-editor: No meu server de MTA:
-
Hello I have a problem, I don't know if is possible, but I want to know if is possible insert SA:MP Object in MTA Servers. I can use them in the Map-editor, but if I run the mapping in my MTA server it doesn't work. And Yes, is to use in MTA not in SA:MP, SA:MP suck, but the new objects are very useful. Here are the prints. In the map editor: In the server:
-
You're right, put everything server side and its working. Thanks everyone for your help. Peace. PatrickChucky
-
Still the same. exports.players:giveMoney( getLocalPlayer(), nMoney ); This is what is not working, but i have no idea why, i have the the includes in meta file...
-
This is the code i have, i just thought it was irrelevant, this is client side. function onPayDay () local money = math.random( 400, 800 ) local player = getLocalPlayer() local currentMoney = getPlayerMoney( player ) outputChatBox(" ") outputChatBox("|||------------ Pay Day ------------|||", 70, 200, 0) outputChatBox(" ") outputChatBox("Saldo actual -| #EEDDAA"..currentMoney, 250, 250, 250, true) outputChatBox("Ganho -| #EEDDAA"..money, 250, 250, 250, true) outputChatBox("Novo saldo -| #EEDDAA"..currentMoney + money, 250, 250, 250, true) outputChatBox(" ") outputChatBox("|||------------------------------------|||", 70, 200, 0) exports.players:giveMoney( player, money ) givePlayerMoney( player, money ) end addEvent( "isTimeToPayDay", true) addEventHandler( "isTimeToPayDay", getRootElement(), onPayDay) Server side i have this. function payDay () local time = getRealTime() local minutes = time.minute local seconds = time.seconds if minutes == 00 and seconds == 0 then triggerClientEvent("isTimeToPayDay", getRootElement()) end end addCommandHandler( "paycheck", function ( playerSource, commandName ) triggerClientEvent("isTimeToPayDay", getRootElement()) end ) addEventHandler("onResourceStart", resourceRoot, function () setTimer(payDay, 1000,0) end) I don't understand what you mean with this... Thanks for helping.
-
Hey guys, Im making a paycheck script and i cant figure out how to make the givemoney ( exported from another resource ) work. I included it in the meta file already, is there anything else i should do? I'm using Paradise Roleplay btw. Here's the code. function onPayDay () local money = math.random( 400, 800 ) local player = getLocalPlayer() local currentMoney = getPlayerMoney( player ) outputChatBox(" ") outputChatBox("|||------------ Pay Day ------------|||", 70, 200, 0) outputChatBox(" ") outputChatBox("Saldo actual -| #EEDDAA"..currentMoney, 250, 250, 250, true) outputChatBox("Ganho -| #EEDDAA"..money, 250, 250, 250, true) outputChatBox("Novo saldo -| #EEDDAA"..currentMoney + money, 250, 250, 250, true) outputChatBox(" ") outputChatBox("|||------------------------------------|||", 70, 200, 0) exports.players:giveMoney( player, money ) -- This should give money to the player and update the database too. givePlayerMoney( player, money ) -- This just gives him money, whenever he dies or leaves the server this money is gone. end Thanks in advance, PatrickChucky
-
ohhhh, thats why then, so ill have to make the script myself right? isnt there any other way?
-
whenever i turn off the server it is supposed to save the tags right? it wont work...
-
hey, i cant figure out how to make it save and load the tags, can you make a tutorial or try to explain please? id really apreciate that, thanks.
-
Hi everyone, I've been trying to discover this but i couldnt. Can someone tell me how would this show up the the database? "'" .. exports.sql:escape_string( toJSON( weapons ):gsub( " ", "" ) ) .. "'" thats inserting in the db, this is getting from the db local weapons = fromJSON( char.weapons ) if weapons then for weapon, ammo in pairs( weapons ) do giveWeapon( source, weapon, ammo ) end end Can someone explain me this please? Thanks in advance.
-
Oh well, firstly sorry for double post. I figured out how to do it and fixed it, but thanks anyways, you can close this topic. Props. Patrick Chucky
-
Read it again please. I'm newbie at THIS programming language, i program in many other languages. Can you please help me though? i just want to know where to put the files since the folders layout for mta 1.1 changed alot. Thanks, PatrickChucky
-
Hi guys, I'm pretty new at programming for this platform, and i found a gamemode to start with, Paradise Roleplay, but its for v 1.0 of MTA and it's on 1.1 right now, i tried to convert it to the new version, but there's no way I can. I wonder if someone could help me with that. Thanks in advance,
-
Ola a todos eu sou o PatrickChucky sou de Portugal e sou mapper. Já mapeio a algum tempo, mas nunca tinha decidido mostrar aqui no forum alguns dos meus maps. Vou começar por mostrar um dos meus mais velhos mas também dos mais complexos e melhores. Em breve postarei mais https://www.youtube.com/watch?v=UXQBTGxsZo8
-
Hello everyone I am MTA Mapper. This is one of my best maps is a old map, better coming soon. Hope you enjoy https://www.youtube.com/watch?v=UXQBTGxsZo8