Jump to content

PrivateKiller

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by PrivateKiller

  1. That's true... Blips shows up only when u come near the bank(so, you must know the location, where is the bank, or you won't find it) That shuld be fixed already
  2. No problem, but study what i have changed and what I've kept. Of course! I'm reading mta wiki all day and study how to use some mail functions (most used)...
  3. Hell no! God still loves me! Hihi, thanks manve1. I was looking for that ye...
  4. I don't get it... Seems that will not happen anything with my wish to learn scripting... I thought that someone will give me an example how to do it, or something like that...
  5. https://wiki.multitheftauto.com/wiki/OnClientGUIClick I'm beginner at programming, and I still don't uderstand it very well, so... I was looking at that link ^^, and tryed to fix it
  6. I watched some turtorials, and that's all what I did, but gui still won't open. Help please? Client= GUIEditor = { button = {}, window = {}, memo = {} } function initGUI( ) btnOutput = guiCreateButton(65, 102, 219, 21, "Buy Advert!", true) addEventHandler ("inClientGUIClick", btnOutput, outputEditBox, false ) editBox=guiCreateEdit(20, 38, 304, 58, "Type your advert here", true) guiEditSetMaxLength ( editBox, 30 ) end addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource()),initGUI ) function outputEditBox ( button ) if button = "left" then local text = guiGetText ( editBox ) outputChatBox ( text ) end end function() GUIEditor.window[1] = guiCreateWindow(455, 192, 343, 133, "Advert cost 500. Click button below to buy it!", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(20, 38, 304, 58, "", false, GUIEditor.window[1]) btnOutput = guiCreateButton(65, 102, 219, 21, "Buy Advert!", true) guiSetFont(GUIEditor.button[1], "default-bold-small") end ) Serverside= function Advertisment(thePlayer, commandName, ...) local players = getElementsByType("player") local playerName = getPlayerName ( thePlayer ) local chatContent = {...} for index, player in ipairs ( players ) do outputChatBox( "Advertisment from " .. playerName.. ": " ..table.concat ( chatContent, " "), player, 0, 190, 40) end end addCommandHandler( "ad", Advertisment )
  7. What I need to do now? Anyone? I'm beginner at lua scripting, so, i need help.
  8. GUI is clientside. Serverside: function Advertisment(thePlayer, commandName, ...) local players = getElementsByType("player") local playerName = getPlayerName ( thePlayer ) local chatContent = {...} for index, player in ipairs ( players ) do outputChatBox( "Advertisment from " .. playerName.. ": " ..table.concat ( chatContent, " "), player, 0, 190, 40) end end addCommandHandler( "ad", Advertisment ) Client: GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(455, 192, 343, 133, "Advert cost 500€. Click button below to buy it!", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(20, 38, 304, 58, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(65, 102, 219, 21, "Buy Advert!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") end ) What now? Help me please
  9. Hello! I have a problem. I don't know how to merge this, to make it work. I'm using it in serverside. Please help me function Advertisment(thePlayer, commandName, ...) local players = getElementsByType("player") local playerName = getPlayerName ( thePlayer ) local chatContent = {...} for index, player in ipairs ( players ) do outputChatBox( "Advertisment from " .. playerName.. ": " ..table.concat ( chatContent, " "), player, 0, 190, 40) end end addCommandHandler( "ad", Advertisment ) GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(455, 192, 343, 133, "Advert cost 500€. Click button below to buy it!", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(20, 38, 304, 58, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(65, 102, 219, 21, "Buy Advert!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") end )
  10. textdisplay? Can you help me? I mean... I never used that function before . addEventHandler ( "onClientResourceStart", resourceRoot, function textCreateTextItem( )
  11. Hello! I want to add a picture, when you are downloading resources... I'm talking about that: http://i.imgur.com/mIwVqsZ.png I know that's not so hard so, can anyone help me to do this? Thank you!
  12. Hey ppls. I need help. I'm using TXDWorkshop and Photoshop. I downloaded some car, and i opened txd file in TXDWorkshop... Then, i changed it, and i replaced licence plate with the old one... Then, i putted txd file back to the Mod loader, but now, when i'm trying to join the server, MTA Crash. So, do you maybe know, how to replace custom licence plates to all vehicles? Thanks, PrivateKiller
  13. Hi guys! I want to ask ya, what i need to add in script, that, i will earn money while drifting... I'm talking about that resource: https://community.multitheftauto.com/ind ... ils&id=556 So, i want to earn money, when i will drift... Any ideas, how can i do this?
  14. Sarrum, Thanks a lot! Its done now! And thanks again!
  15. Problem is that you won't listen us! Solidsnake14 already told you about adding new id's!: "No, MTA has no support for new models" So, you can't create new ID. W H A T | Y O U | D O N 'T | U D E R S T A N D | H E R E |? ! ? !
  16. Hello! I have a question about that "Sidelines"... When you drift, you can see dark lines after you... I find new server, and then, i took a car, and saw that: Its rainbow, and color is changing... Do you have any ideas how can i made that? Or, if there is already resource like that, please give me link
  17. Won't work. I did all many times, but nothing. I port forwarded it, ... But, It won't show any cars ingame when i type /vehmods. But I typed them in mod_c.lua ['Banshee - Modded one'] = { "banshee.dff", "banshee.txd", 492, true } And yes, i'm hosting server on my computer
  18. Ye, ik. Its says almost the same: Error loading script: vehicle_respawner\main_s.lua:45: "end" expected near "" If you don't know to fix a so small error then :- Okey, u are pro. I don't have experiences, but i can still edit scripts. I'm sorry, but in line 12 i can't see any "eof" or that end is too close to word: "function"
  19. Okej, no errors at all now, but vehicle respawn to location where i spawned it in the same second when i write command to respawn in 10s... but i can change that. problem is that it won't destroy it. Its respawn vehicles to their spawn point
  20. Ye, ik. Its says almost the same: Error loading script: vehicle_respawner\main_s.lua:45: "end" expected near ""
  21. Nope. Now shows: SCRIPT ERROR: vehicle_respawner\main_s.lua:45: "end" expected near "" Here is full serversided script in spoiler (updated) as you writed.
  22. Unexpected symbol near "," And repawn won't even works. It shows this message on console: ERROR: "Client (playername) tiggred serverside event respawn, but event is not added serverside"
  23. setTimer(destroyElement, 5000, 1, source) Can you tell me what that means (5000,1). If i change 5000 to 1000 what will be different. Is that idle time? Mabye, car must be empty more than 5min to dissapear? Idk. Please tell me what will be different if I change that. Thank you
×
×
  • Create New...