-
Posts
3,875 -
Joined
-
Days Won
67
Everything posted by DNL291
-
Coloque o resource na pasta C:\Program Files\MTA San Andreas 1.3\server\mods\deathmatch\resources\[gameplay] (pasta padrao). para inicia-lo, digite no Console do server start , se seu server já estiver ligado digite refresh no Console do server, em seguida inicie ele. Para saber como ele funciona leia na descrição do resource.
-
https://wiki.multitheftauto.com/wiki/Meta.xml Basta traduzi-lo.
-
-
local Marker = createMarker ( -28.599609375, 163.8994140625, 1.3999999761581, "cylinder", 1.60000002, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[2], true) showCursor(true) end end) function createFarm() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[2] = guiCreateWindow(18,307,367,431,"",false) guiSetAlpha(GUIEditor_Window[2],1) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[3] = guiCreateButton(22,377,88,42,"Work",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(246,383,86,39,"Exit",false,GUIEditor_Window[2]) GUIEditor_Memo[2] = guiCreateMemo(16,32,339,216,"=====|Farm Job|=====\nWelcome to the farm job\nthe farm job is about farm stuff \nso when you start go get the parcel of Seed\nand it's located on your map then go\nto the farm and drop the seed onto every arrow when you done wait 5 sec to get the plant\ngrown and go get the combine harvester and collect your crops when you done collecting \nhit the checkpoints and you get \n1200$\n\n=====|Farm Job|=====",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[2],true) guiSetVisible(GUIEditor_Window[2], false) end addEventHandler("onClientResourceStart", root, createFarm) function exiting() if ( source == GUIEditor_Button[4] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) elseif ( source == GUIEditor_Button[8] ) then guiSetVisible(GUIEditor_Window[2],false) guiSetInputEnabled(false) showCursor(false) addEventHandler('onClientGUIClick', root, exiting) function yabbooy() local skins = -- Create a table with our skin names and their ID's. { { "Farmer", 158 }, { "Farmer Redneck", 159 }, { "Farmer Girl", 157 } , } GUIEditor_Grid[1] = guiCreateGridList(12,260,346,79, false, GUIEditor_Window[2]) guiGridListAddColumn(GUIEditor_Grid[1],"Select your skin",0.2) for index, skin in ipairs ( skins ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, skin [ 1 ], false, false ) guiGridListSetItemData ( GUIEditor_Grid[1], row, 1, skin [ 2 ] ) end end end end function vehicleas() Marker = createMarker ( -29.7998046875, 5.8994140625, 2.0999999046326, "cylinder", 3, 234, 70, 0, 19 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then triggerServerEvent ( "onVehicleRide", localPlayer, 532 ) end end) end addEvent("onVehicleRide", true) addEventHandler("onVehicleRide", root, function (vehicleID) vehicle = createVehicle( tonumber(vehicleID), -29.7998046875 , 5.8994140625, 5.8994140625 ) warpPedIntoVehicle ( source, vehicle ) end )
-
localPlayer (getLocalPlayer) is only the client side.
-
Probably you uninstalled your MTA and reinstalled again, this has happened to me. uninstall your MTA then, restart your PC and install your MTA again.
-
Car mod https://community.multitheftauto.com/ind ... ls&id=4920 -Edit. Weapon mod https://community.multitheftauto.com/ind ... ls&id=4924
-
Vehicle mod https://community.multitheftauto.com/ind ... ls&id=4895
-
Car mod https://community.multitheftauto.com/ind ... ls&id=4884 Skin mod https://community.multitheftauto.com/ind ... ls&id=4883
-
You could compile them with LUAC: viewtopic.php?f=108&t=33905 or delete them when they're transferred to the client: viewtopic.php?f=148&t=43499 viewtopic.php?f=148&t=36847 I compile my scripts and use fileDelete, actually I made this script to a friend, I found my code here and asked him if he sent the script to someone, he said he did not. Dont wanna start a fight because of this script, just do not like people who steal scripts.
-
You again with my client side code. next time do not ask for help with scripts downloaded from a server.
-
Vehicle mod https://community.multitheftauto.com/ind ... ls&id=4855
-
Basicamente voce terá que usar essas funcoes: guiCreateStaticImage ou dxDrawImage setTimer isTimer destroyElement addCommandHandler e usar triggerServerEvent para a funcao shutdown alem de adicionar o recurso á ACL.
-
Vehicle mods https://community.multitheftauto.com/ind ... ls&id=4836 https://community.multitheftauto.com/ind ... ls&id=4843
-
local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox (" #FF0000Seja Bem Vindo, ao meu servidor de teste", source, 255, 255, 255, true) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) Voce deve colocar o argumento do jogador, no caso source. se quiser que a mensagem saia para todos jogadores, use getRootElement() (tem a variavel predefinida tambem que é: root) PS: Quando o tópico for relacionado a script, poste no subforum Scripting por favor.
-
oh, really did not know
-
createMarker() is missing the last argument, lack the alpha
-
Why you're using destroyElement() instead of guiSetVisible()?
-
I corrected this script to a friend. obviously, you downloaded the client side from server, and is asking for help with the server side without permission.
-
Car mod https://community.multitheftauto.com/ind ... ls&id=4814
-
I downloaded the resource and found a trojan.
-
Oh Really? you downloaded the client from a server.
-
Script stolen, we can't help.
-
The resource scores already have this. have in the MTA resources folder.
-
Sim, este arquivo é responsavel pela colisao de um objeto. eu nunca editei um, mas sei voce pode tornar um objeto colidivel através dele. Algumas pessoas nao querem as texturas e acabam removendo as colisoes tambem.