Gordon_G

Members
  • Content Count

    255
  • Joined

  • Last visited

Everything posted by Gordon_G

  1. @f8upd8 this is what I've understande until now : - The pickup disappear when I'm going to far from it. - The pickup appear-back when I change my interior to 0 for exemple and come back to interior 3 - The pickup appear-back when I restart the resource if I'm near from him @SuperCroz - I don't have this prob' when the pickup's interior is 0
  2. @SuperCroz well, when I get out from the interior and come back to the pickup pos I can see the pickup back.
  3. I don't hit the pickup, I juste move. same prob. I think it's that yes. But how can I improve the stream distance ?
  4. No, by walking, I don't change my interior or dimension between pic 1 and pic 2. It can't be the problem 'cause in pic 1 I see correctly the pickup. I've already tried, same problem.
  5. Hello. I've a big issue with pickup. So, my resource create some pickups in the interior 3 and dim 1. I can see them properly (pic 1) : Then, I go away, always in the same int and dim (pic 2) : And, when I come back in the first place (pic 3) : and I must restart de resource to see pickups back. It's really strange. I don't think it's my script's problem 'cause it works fine in the first case. However, this is my script for only one pickup : -- SERVER SIDE local x,y,z,int,dim = 355.87365722656, 151.42892456055, 1025.7890625, 3, 1 thePickup = createPickup( x, y, z, 3, 1242 ) setElementInterior( thePickup, int, x, y, z ) setElementDimension( thePickup, dim )
  6. Attached colShapes don't work with this event. You'll need to make a loop with getElementsWhithinColShape().
  7. So, if I understand correctly. When you are dead and you disconnect you want to be dead when you reconnect ? Use accountData or SQL.
  8. we can't help you only with this code. If it's your code please send all the interested part. You can post in your native language forum too https://forum.mtasa.com/forum/105-french-français/ (I can respond you, I speak french).
  9. @MIKI785 i did'nt know '#' could be used to get lenght of a given string, thank you !
  10. function animation(source) setPedAnimation( source, "ped", "gas_cwr") setTimer(pararanim, 5000, 2, source) end addCommandHandler ("toxic", animacion) function stopanimation(tp) setPedAnimation(tp,false) setTimer(animacion, 10000, 1, tp) end
  11. Paste your actually code.
  12. It's because you can't handle the /check command, it's already an MTA command, see here : https://wiki.multitheftauto.com/wiki/Server_Commands
  13. setTimer(pararanim, 5000, 1, source) at line 4.
  14. Gordon_G

    Need help

    You can use this : getTickCount() and convert miliseconds in seconds etc...
  15. Hello. Here, function click ( button, state, sx, sy, x, y, z, elem, gui ) gui will always return false, because the event onClientGUIClick return only 4 values string button, string state, int absoluteX, int absoluteY Just remove the gui arg in the 'if' check.
  16. the '#' only can be used to get the lenght of a table. To get the lenght of the edit you can use : string.len( guiGetText( The_Edit_Box ) )
  17. Gordon_G

    Delete LV

    @Diverti will MeD for gta:sa works for mta ? Can it give a .map file ?
  18. I don't use element datas anymore because of the CPU usage and also for secure reasons. I use only one table and tree functions : datas_ = {} function setElementData_(element,data,value) if isElement(element) then if not datas_[element] then datas_[element] = {} end datas_[element][data] = value end end function getElementData_(element,data) if isElement(element) then if not datas_[element] or not datas_[element][data] then return false end return datas_[element][data] end end function dellAllElementData(element) datas_[element] = nil end
  19. Then, juste trigger the function bindKey clientside from serverside when the player login onPlayerLogin triggerClientEvent
  20. Duplicate weapon ? Huh, you want to say create new weapons ? If it is that, yes it's possible. It'll need some script however. Look at these functions, it could help you : https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#Weapon_functions good luck.
  21. Gordon_G

    setInterior

    oh yes, I forgot, but intID is originally a string and not a number ^^ Thanks @pa3ck
  22. Gordon_G

    setInterior

    You define interiors two times, once in the function, and once for the table. Replace the function by this : addCommandHandler("setin",function(player,cmd,intID) if interiors then local int,x,y,z = interiors[intID][1],interiors[intID][2],interiors[intID][3],interiors[intID][4] setElementInterior(player,int,x,y,z) else outputChatBox(syntax.." /"..cmd.." [InteriorID]",player,255,255,255,true) end end)
  23. @LopSided_ yes, I've never tested like this me too. But it's not his problem as I see. @CodX have you added it client side ?
  24. No prob. Use /debugscript 3 when u will test the script.