-
Posts
563 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Stanley Sathler
-
I'm sorry bro, I was wrong. It was because you posted a "ironic" link, like I was a lazy member. And I'm not. Well, peace And thanks for the link. It is what I was searching.
-
Diego, I'm sorry but I'm not retard. If I'm here is because I tried use Google before. You tried? You found something, a clean map? I guess not. And I'm sorry for the wrong section.
-
Thanks DrakeN, and good luck with C++. It's a wonderful language.
-
Hi guys, I'm searching for the old map image (F11). Someone here can send me? In the new map (implemented in MTA 1.2) I can't see the streets. I'm searching for a clean map. Only the map, without tag points or something like this.
-
Link is down. Where we can find it?
-
More about setElementData(): Where is saved?
Stanley Sathler replied to Stanley Sathler's topic in Scripting
Wow, Jaysds, it is what I wanna know. Thanks for the answer. Hugs, Sathler. -
More about setElementData(): Where is saved?
Stanley Sathler replied to Stanley Sathler's topic in Scripting
I tried use Wiki. But it not answer: where the informations are saved? Is saved in a mini-database? In a XML file? I wanna know it, Karthik. - Jaysds1, haha, I won't beat you But thanks for the post. -
Hi guys, I wanna know more about setElementData() and getElementData(). He's like a database? Where is saved these informations? I would know more about it. If somebody have any information, can post here. Hugs, Sathler.
-
How can I translate documentation to portuguese?
Stanley Sathler replied to Stanley Sathler's question in Client
Hi DarkLink, I'm sorry for the long time, but I'm back on MTA. So... are you still interested on help me? -
Todos. Antes de tentar fazer-se superior a alguém, olhe para si mesmo e reflita. Do contrário, permaneça calado guardando para si mesmo todo seu ódio - decorrente do fato de ainda ser virgem - e seu preconceito contra o Brasil e aqueles que aqui vivem. Aliás, esquece! Pela resposta usada, presumo que eu esteja apenas iniciando uma discussão com uma mera criança. Então cá entre nós, não me é conveniente perder o pouco tempo que tenho com apenas mais um pré-adolescente. Sem mais.
-
E pelo visto, você não gosta de estudar a língua portuguesa. Sugiro que saia um pouco dos jogos e preste mais atenção às aulas.
-
I'm trying import some TXD files, but my code seems wrong
Stanley Sathler replied to Stanley Sathler's topic in Scripting
Oh Solidsnake, it works now. Strange, because I just used the dots for set the below paths. Well... thank you, bro. Really. Nice to know you. , Sathler. -
I'm trying import some TXD files, but my code seems wrong
Stanley Sathler replied to Stanley Sathler's topic in Scripting
Oh, not bro You can download the files here: http://www.sathlerdesign.com/sathler.rar Sathler -
I'm trying import some TXD files, but my code seems wrong
Stanley Sathler replied to Stanley Sathler's topic in Scripting
Solidsnake, "../" means an above directory. I put my scripts in "/resources/scripts" and the mods in "/resources/mods". , Sathler. -
So guys, I'm trying import some TXD files using this code: Lua code: function LoadMods() -- [ XZIBIT CHARACTER ] -- local SkinTXD = engineLoadTXD("../mods/xzibit.txd") engineImportTXD(SkinTXD, 10) local SkinDFF = engineLoadDFF("../mods/xzibit.dff", 0) engineReplaceModel(SkinDFF, 10) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), LoadMods) Meta.xml: <info author="Sathler" type="gamemode" name="RPG MODE" description="Our project" /> <map src="./mapa/main_prison.map" /> <script src="./scripts/LoadMods.lua" type="client" /> <!-- Mods imports --> <file src="./mods/xzibit.txd" /> <file src="./mods/xzibit.dff" /> But it doesn't work and I don't know why. Somebody can help me? Hugs, Sathler.
-
Hi guys, I'm tried call a GUI (client) when a player enter on a marker hit. The final objective is create a vehicle spawner (vehicles frees). I know about triggerClientEvent and triggerServerEvent, but someone could make a example for me? You can use another exemple (a weapon spawner, for example). I just want the geral idea. Obs: I don't wanna a example for how create a GUI or how create a Spawn Vehicle. I want a example for how call a GUI when a player enter on a marker hit. Thank you, Stanley Sathler. -------- EDIT ------- I got call the GUI when a player enter on a marker hit. *-* But... in client file, I set showCursor() and guiSetInputEnabled() as false... how can I set as true in server file? My server code: marca_gera_veiculo_1 = createMarker(214.09, 1852.5, 11.699, "cylinder", 2, 255, 0, 0, 150) function GUISpawnVehicle(player) triggerClientEvent("CallGUISpawnVehicle", player) showCursor(true) guiSetInputEnabled(true) end addEventHandler("onMarkerHit", marca_gera_veiculo_1, GUISpawnVehicle) And my client code: ListVehicle1 = {470, -- Patriot 433, -- Barracks 427, -- Enforcer 528, -- FBI Truck 490, -- FBI Rancher } function GUISpawnVehicle() MainWindow = guiCreateWindow(0.10, 0.10, 0.25, 0.40, "Selecione um veiculo", true) GridList = guiCreateGridList(0.05, 0.10, 0.90, 0.70, true, MainWindow) GridColumn = guiGridListAddColumn(GridList, "Veiculo", 0.90) for key, CarModel in ipairs(ListVehicle1) do GridRow = guiGridListAddRow(GridList) CarName = getVehicleNameFromModel(tonumber(CarModel)) guiGridListSetItemText(GridList, GridRow, 1, tostring(CarName), false, false) end BtnOK = guiCreateButton(0.05, 0.85, 0.40, 0.10, "Criar veiculo", true, MainWindow) -- addEventHandler("onClientGUIClick", BtnOK, ClickBtnOk, false) BtnCancel = guiCreateButton(0.55, 0.85, 0.40, 0.10, "Cancelar", true, MainWindow) addEventHandler("onClientGUIClick", BtnCancel, ClickBtnCancel, false) guiSetVisible(false) end ---------------- EDIT --------------- Fixed, guys. It's simple: I added two parameters in GuiSpawnVehicle() (client side): showCursorParam and guiSetVisibleParam. And I change: showCursor(showCursorParam) guiSetVisible(guiSetVisibleParam) Later, when I call from server script, I use: triggerClientEvent("CallGUISpawnVehicle", player, true, true) Where "true" and "true" are, respectelly, showCursorParam and guiSetVisibleParam
-
Exatamente, DeshawN está corretíssimo. Sua afirmação foi um engano, Gustavorn.
-
O Arran pode lhe ajudar. Mas presumo que este não costume vir no fórum português, então... vá para a categoria "Scripting" (inglesa).
-
Já lhe respondi a mesma dúvida no fórum do MTA Brasil. Quando se cadastra em um fórum e pede ajuda, precisa estar atento às respostas.
-
Hi guys, I would translate the documentation to portuguese and insert in "in other languages" menu on the wiki. How can I do it?
-
Wafamde, there's not an output with errors in console if is it that you want. The code just doesn't work when I enter on marker. And I used 0.5. ----- EDIT ----- I tried use createMarker() and the code work now. Well, I'll use createMarker then. It will be more hard, but is the unique method, I guess. Thank all, guys.
-
Al3Grab, I tried but the script doesn't work.
-
And is more easy.
-
myonlake, it's a nice idea. But my marker have 1 of size. And I can't create a marker with less than 1. x_x
-
-- Author: Stanley Sathler -- Date: 12/06/2011 -- Function: set an uniform for the player marca_troca_roupa_1 = getElementByID("marca_troca_roupa_1") -- Get the marker in map file using_uniform = false function SetUniform(player, in_dimension) if (using_uniform ~= true) then addPedClothes(player, "vest", "vest", 0) -- Set the shirt addPedClothes(player, "worktrcamogrn", "worktr", 2) -- Set the trouser addPedClothes(player, "bask1problk", "bask1", 3) -- Set the shoes addPedClothes(player, "beretblk", "beret", 16) -- Set the hat using_uniform = true end end addEventHandler("onMarkerHit", marca_troca_roupa_1, SetUniform) Hi again, guys. I am noob in Lua, thats very hard to me. :\ Well... the function of my code is change an especified clothes when a player enter on a marker. Ok, is working. But the function is called before I enter on a marker (2 meters before, approximately). I want call the function when I enter on the marker (size 1), and not before (near of the mark). Thank you for attention, Stanley Sathler.
