Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Ice_Cool

  • Rank


  • Gang
  1. Someone please reply? Re-posting above Code (Sorry i mistakenly added above code in snippet) a = createMarker(-705, 963, 13, "cylinder", 2, 255) function getTheBox(player, command) x, y, z = getElementPosition(player) if isElementWithinMarker(player, a) then if exports.bone_attach:isElementAttachedToBone (box) == false then box = createObject(1271, x, y, z) var = exports.bone_attach:attachElementToBone (box, player, 11, -0.15, 0.35, 0.35, 0, 0, 0) anim = setPedAnimation(player,"CARRY","crry_prtial",0,true,true,false,true) == true else outputChatBox('You already go
  2. Hello everyone. So i am trying to make a script where a player can create boxes (under a marker) that will be attached to his bones and he (player) can put those boxes (object) on ground. Now the problem is, if he creates more than 1 boxes (objects) and drops them on floor, he can only pick the very recent one that he created. I am trying to make the player be able to pick any object with that ID from the ground either he created or not. But in this script he only picks the very recent he created. a = createMarker(-705, 963, 13, "cylinder", 2, 255) function getTheBox(player, comman
  3. Thank you for the reply. But its still not working, only the last marker is teleporting the player to the defined coordinates in setElementPosition function. it still giving me the same error! Any other error or possible way to fix it?
  4. I have the exact same issue and i am unable to understand how to avoid overwriting. i have just started scripting someone please help! Can you please edit the code and make the right changes so i can learn? I'd be highly thankful for the help. t ={ {2450, -1670, 12}, {2455, -1670, 12}, {2460, -1670, 12} } for i, v in pairs(t) do a = createMarker(v[1], v[2], v[3], "cylinder", 2.5, 255, 255, 255) end addEventHandler('onMarkerHit', a, function (player) if source == a and getElementType(player) == "player" then if isPedInVehicle (player) == true then outputChatBox('Vehicle
  5. Hello, I have just started learning scripting around 2 weeks now after finishing basic Lua. I created few simple resources myself and happy they work. So i decided to create something more complicated (for me) below is the script of moving objects when a player hits colShape. Example: #1 works fine so i decided to create it more efficient way Example: #2 which unfortunately don't work and i am getting it wrong i believe. Example: #1 (working script) local gateObjOne = createObject (988, 1023.599609375, -367.7001953125, 74.099998474121) local gateObjTwo = createObject (988, 1051, -323
  6. Brother maybe you're right but I really didn't get you. I don't want to have an object. I want to add my own interior. Even guess I replace it with any object how am I suppose to wrap to my interior? I am currently trying to have a custom interior for a prison but idk how set my interior that I designed in 3D Max. I thought if I could replace it with existing interiors but they have x, y, z positions and not just model ID.
  7. Hello everyone, hope you're doing well! Guys i am just a beginner to MTA Scripting and i encountered a problem that i tried to solve by self for hours but unfortunately could not. Actually i have created a Prison Model in 3D Max and after export i got .txd, .dff and .col files. What i want to do is add this in my server as an interior. Soon after creating an interior model in 3D Max i stuck between objects and interiors concept, i wonder if i follow this https://forum.mtasa.com/topic/35801-tut-adding-custom-objects-in-mta/ topic and try to add my int in server i have to replace it wi
  8. Oh! definitely understood. Thanks for help. Glad to be helped by Hoodsta.
  9. No bro, didn't work as i said that it works fine if i copy codes from wiki http://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI and don't work if i write it.... That Script Made me real confused..
  10. Then why it works if i copy these codes from wiki?
  11. function createLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log in", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit
  12. http://www.filedropper.com/client_6 here's The Full Code file, just you have to download.
  13. Hello! I am currently Learning MTA:SA scripting. Basically i wrote login panel script and tried run it but login window can not disable on my screen it's work fine from console But it's work fine if i copy those codes and past in notebook++ and try.... http://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI here's the link... But when i write it by hands it don't works i checked everything goes fine but i don't know why it's not working...Have any idea? Thanks!
  14. Thanks every one! my problem is solved now. and best thanks to 3NAD.
  15. I can't open admin panel in game, and tried acl.xml>admin group> but nothing happen and when i see it after a min or after refresh there that line no longer available.
  • Create New...