Jump to content

pa3ck

Members
  • Posts

    1,141
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by pa3ck

  1. --client side setTimer isTransferBoxActive fadeCamera
  2. pa3ck

    modproblem

    Because 24 is not the model of deagle, it's the weapon ID. Use this to find out the IDs: https://wiki.multitheftauto.com/wiki/Weapon btw, deagle is 348.
  3. pa3ck

    help nametag

    Of course, because getElementData(localPlayer() ...) returns your element data, not the other players'.
  4. pa3ck

    Question !

    No, but its just one more line to do it. Use attachElements or use: --client function createMarkerAttachedTo( type, size, r, g, b, a, element ) if type and size and r and g and b and a and isElement ( element ) then local marker = createMarker ( 0, 0, 0, type, size, r, g, b, a ) attachElements ( marker, element, 0, 0, 0 ) else outputDebugString ( "Bad / missing argument(s) @ 'createMarkerAttachedTo'", 0) end end --server function createMarkerAttachedTo( type, size, r, g, b, a, visibleTo, element ) if type and size and r and g and b and a and isElement ( visibleTo ) and isElement ( element ) then local marker = createMarker ( 0, 0, 0, type, size, r, g, b, a ) attachElements ( marker, element, 0, 0, 0 ) else outputDebugString ( "Bad / missing argument(s) @ 'createMarkerAttachedTo'", 0) end end
  5. Health = tonumber (Health) / 100 * 100 <= realy? :3 why even need /100 * 100 lol just useless stuff Lol? Do you even know what you are talking about? Let's say I have 100HP. 100 / 100 = 1, so I have 1%?
  6. If you create the blip server side, then this code should work and this is server side only ( you don't need client side ) : function onquit () local name = getPlayerName ( source ) local hitBlip = getElementData ( source, "hitBlip" ) if hitBlip and isElement( hitBlip ) then destroyElement ( hitBlip ) outputChatBox ( name .. " has quit hit", root, 255,235,0 ) end end addEventHandler ( "onPlayerQuit", getRootElement(), onquit ) If that doesn't work try to edit the part where you set element data with the userdata of the blip: local playername = getPlayerName ( thePlayer ) local hitBlip = createBlipAttachedTo ( thePlayer, 26 ) setElementData ( thePlayer, "hitBlip", tostring ( hitBlip ) )
  7. I don't know much about SQLite browsers, but I can see a line there, 'username KRZO'. Try to update it instead of inserting and use WHERE.
  8. Are you 100% sure, that it is not in the table already? I mean, don't you want to update it instead of inserting it?
  9. As far as I know, dbExec doesn't return anything, just saying.
  10. pa3ck

    Chatbox

    bindKey ( player, "T", "down", "chatbox", "IC" ) --You will need to have an addCommandHandler addCommandHandler("ic", function() ... end)
  11. Just put guiSetVisible ( GUIEditor.window[1], false ) after line 10.
  12. Its like for i = 1, 10 do 'i' gets +1 everytime the for loop is executed, same in the other for loop, 'k' always gets +1. So table[k] is the position you are looking at.
  13. for k, something in ipairs ( table ) do 'k' is the number, if you mean this.
  14. Why would you use dxDrawImage if you could use GUI? Its much handier, you don't need onClientRender or any events like that and you could easily use onClientGUIClick to spawn the player at the right place according to the image. But, you can choose the hard way.
  15. pa3ck

    Jail system

    Make it client side.
  16. You are not cancelling the event, so I don't know whats the point having this script though.
  17. Use guiCreateStaticImage and set the selection pictures to the parent of the background.
  18. pa3ck

    table.insert

    Ah, jees, I tried everything, except that... Thank you!
  19. pa3ck

    table.insert

    Hi there, I'd have a question about table.insert. I have a table like this: table = { [1] = {"123", 1, 2, 3 }, [ 2 ] = {"456", 3, 2, 1 } } I want to insert a set of values like ' {"123", 1, 2, 3 } ', how would do that?
  20. If you don't want them to type letters or numbers use onClientKey and cancelEvent. Not sure now, if cancelEvent will cancel the event if you are typing, give it a try.
  21. I don't understand you neither. 'I can do you right' what you mean by that? That sounds perv tho...
  22. setElementInterior is fine, post your meta.xml
  23. The function is not attached to an event, 'source' in the timer is going to return nil. Also, use string.find in the name, because it's just a tag, not the whole name of the player.
×
×
  • Create New...