Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. Karuzo

    Moving Chat

    Hey Guys, so i saw a few server with a Chat at the right bottom for example. So i wanted to do that also But were do i have to change the positions ?
  2. Just replace "bankgothic" with your fontname. Dont forget to define it .
  3. You've wrote ...locatedPerson wrong. You forgot the d
  4. Just replace onClientResourceStart with onResourceStart.
  5. A string is a sequence of characters. That means it is e.g. a text, "blabla" and if it returns nil ,it expected to get a text or something like that but didn't. Just like solidsnake said
  6. You could use "both" at bindKey , so it just shows ul if the player clicks on the mouse and if he releases the mouse the crosshairs zooms out.
  7. Karuzo

    HELP!

    We can't help you if you not speak in english... Spanish board: viewforum.php?f=122
  8. maybe with math.round ? https://wiki.multitheftauto.com/wiki/Math.round
  9. Well thats easy, just make the screen black around the crosshair.
  10. You could draw one with DX and ask if the player has a M4 and if he has it , just draw that crosshair.
  11. Oh. didn't noticed that. Thank you IIYAMA
  12. addEventHandler("onVehicleEnter",getRootElement(),function ( player,seat) if seat == 0 then triggerClientEvent("ChatMessage",getRootElement()) local enginestate = getElementData(source,"engine") if not enginestate then setElementData(source,"engine",false) enginestate = false end if enginestate == false then setVehicleEngineState(source,false) end bindKey(player,"l","down",light_func,player) bindKey(player,"x","down",motor_func,player) end end)
  13. So heres me problem : I've got an outputChatBox Server-Sided and i tried to just output it for the player who enters a vehicle.. Well , i tried it with source, but it didn't worked. everybody has saw the message. So i've tried it like that : outputChatBox("TEXT",source,255,69,0) I think i could trigger it to the Client . but i think there would be an easier way ?
  14. Any errors in debugscript 3?
  15. Ah! Ok now i understand it But, won't the upgrades been gone if he spawns the same car again?
  16. Well, ive never worked with elementDatas really, Could you explain it for me?
  17. Hello MTA Scripting Community, I'm trying to make my own gamemode but learning with freeroam gamemode. So my question is : How can i save the Vehicle Upgrades of a Players car. I think i have it to do with ElementDatas , but ive heard that they were easy to manipulate. But i also don't want to make it with SQL . So, how should i save them ?
  18. Well , not if i want to change for all players. I want to replace it with a DX drawing.
  19. Hello MTA Community, so i wanted to make my own download-progressbar. I've searched through the wiki but didn't find anything.. So is it possible ? cause i don't know if i can disable functions that were built in by MTA.
  20. Well , he has to update the health of the player, otherwise it would be 100% only.
  21. Thank you i will try it .
  22. This will open the GUI with /skineditor .. But you'll need a Close-Button to Cose the panel ^^ GUIEditor = { label = {}, edit = {}, button = {}, window = {}, combobox = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(451, 289, 327, 426, "Skin", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.combobox[1] = guiCreateComboBox(48, 322, 258, 94, "", false, GUIEditor.window[1]) guiComboBoxAddItem(GUIEditor.combobox[1], "SWAT skin") guiComboBoxAddItem(GUIEditor.combobox[1], "Army Skin") GUIEditor.button[1] = guiCreateButton(68, 360, 197, 44, "Get Skin", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(27, 63, 279, 163, "This GUI allows you to get a custom skin for you or a player name", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(47, 261, 255, 31, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(129, 242, 218, 15, "Player Name :", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(142, 299, 159, 23, "Skin :", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) guiSetVisible(GUIEditor.combobox[1], false) guiSetVisible(GUIEditor.button[1], false) guiSetVisible(GUIEditor.memo[1], false) guiSetVisible(GUIEditor.edit[1], false) guiSetVisible(GUIEditor.label[2], false) guiSetVisible(GUIEditor.label[1], false) function OpenGUI() guiSetVisible(GUIEditor.window[1], true) guiSetVisible(GUIEditor.combobox[1], true) guiSetVisible(GUIEditor.button[1], true) guiSetVisible(GUIEditor.memo[1], true) guiSetVisible(GUIEditor.edit[1], true) guiSetVisible(GUIEditor.label[2], true) guiSetVisible(GUIEditor.label[1], true) showCursor(true) end addCommandHandler("skineditor", OpenGUI) I don't script everything for you. Some functions : To set the Skin of the player : triggerServerEvent setElementModel addEvent addEventHandler
  23. http://dev.mysql.com/doc/refman/5.0/en/select.html
  24. Just like that ? local skinpic = guiCreateStaticImage((screenW - 150) / 2.9, (screenH - 150) / 1.35, 150, 150, "skins/"..tostring(getElementModel(localPlayer))..".png", false) setTimer ( guiStaticImageLoadImage, 1000, 1, skinpic)
×
×
  • Create New...