Jump to content

`Dmz

Members
  • Posts

    25
  • Joined

  • Last visited

Details

  • Location
    Lithuania, Utena

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

`Dmz's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. Use G-TXD for editing GTA's textures.
  2. `Dmz

    Player look

    If you are talking about first person look, then I have to say that is possible. This function is in GTA-MP Zombie Infestation server, you just need to write /fp and test it. I think it was done by setting player's camera position, but I dunno indeed.
  3. When you add function in to the event handler by this way you don't need to type function name, because it's invalid, also I changed element in first event handler to getResourceRootElement(getThisResource()) and also moveObject func haves got bad parameters, you see that the first parameter sais "object theObject" that means it can't be a string. One more thing, in second event handler you typed in second parameter "getRootElement()", but you need to type there marker variable. function elements ( name ) -- create an object at a specified position with a specified rotation lift = createObject ( 2951, 1195.3864746094, -1779.8454589844, 12.482206344604, 89.775024414063, 0, 270.22497558594 ) triggermarker = createMarker ( 1194.0065917969, -1780.0831298828, 12.503089904785, "corona", 1, 255,255,255,0 ) rtriggermarker = createMarker ( 1194.0065917969, -1780.0831298828, 33.611827850342, "corona", 1, 0, 0, 0, 0 ) rmarker = createMarker ( 1197.3414306641, -1778.1151123047, 33.611827850342, "corona", 2, 0, 0, 0, 0 ) rmarker2 = createMarker ( 1197.1531982422, -1783.1392822266, 33.681777954102, "corona", 2, 0, 0, 0, 0) rmarker3 = createMarker ( 1191.3764648438, -1783.7474365234, 33.643081665039, "corona", 2, 0, 0, 0, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), elements ) addEventHandler( 'onMarkerHit', getRootElement(), function (theMarker, thePlayer) if theMarker == triggermarker and pedSkin(thePlayer) = 59 then move = moveObject ( lift, 500, 1195.3864746094, -1779.8454589844, 32.417213439941 ) end end ) Try now and sorry for my bad English
  4. `Dmz

    Don't works

    I've made this mistake writing the post, sorry, but it doesn't work to.
  5. `Dmz

    Don't works

    Hi community, I have a problem whit this scrip, when I push right arrow server outputs this one. [15:51:16] WARNING: rpg.server.lua: Bad argument @ 'getElementModel' - Line: 39 [15:51:16] ERROR: ...rver/mods/deathmatch/resources/RPG-FR/rpg.server.lua:40: attempt to perform arithmetic on local 'skin' (a boolean value) function whatEver ( ) bindKey ( source, "right", "down", function () local plSkin = getPedSkin(source) local plSkin = skin+1 setPedSkin(source,skin) end ) addEventHandler("onPlayerLogin", getRootElement(), whatEver)
  6. `Dmz

    Bug or what?

    Yes this is server-side, but it don't works I don't lie. Maybe something wrong with my all script but what then if it is.
  7. `Dmz

    Bug or what?

    No it don't works to.
  8. `Dmz

    Bug or what?

    I don't works this is my code look maybe i did something wrong here? indJuodas = createMarker(216.9921875, 79.0078125, 1004.0390625, "cylinder", 1.5, 1, 1, 1) setElementInterior(indJuodas,6) addEventHandler( "onMarkerHit", getResourceRootElement(), function( ) if ( source == indJuodas ) then outputChatBox("Boo") end end )
  9. `Dmz

    Bug or what?

    Maybe you can show me how because I haven't any idea how to do it, I tried it to do it with event onPlayerMarkerHit, but it was the same thing like with onMarkerHit event.
  10. `Dmz

    Bug or what?

    Hi, MTA community. I have one problem with server side event onMarkerHit, it doesn't works, but when I write similar script client-side, it works, so is it bug or scripting mistake? vokJuodas = createMarker(197.1796875, 168.767578125, 1002.0234375, "cylinder", 1.5, 1, 1, 1) setElementInterior(vokJuodas,3) addEventHandler("onMarkerHit", vokJuodas, function () triggerClientEvent("vokPuolimas", getRootElement()) end)
  11. Damn, I've just showed you how to do teams with passwords... Try harder and you'll get it working. I don't create all script specially for you because this forum is only for showing you the way how to do something.
  12. It depends when you want to gui window set visible for client. And if you don't know how to use this function read about it in mtasa wiki page.https://wiki.multitheftauto.com/wiki/GuiSetVisible
  13. You've used guiSetVisible function?
  14. mmm... oranges... Orange is cool fruit and it's color is greate. Orange is the real god child. Orange in the snow
  15. Do you all have readed my client side script. In one comment I wrote that you nee to create some gui elements by yourself. So how you can see the gui window that is not created?
×
×
  • Create New...