Jump to content

xeon17

Members
  • Posts

    1,903
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by xeon17

  1. createPed -- To create the employee setElementInterior -- To warp him in the bank setElementDimension -- To set his dimension same as the bank Which bank are you using? tell us so maybe we can help you.
  2. xeon17

    Trailer script

    It's not as far as I know.
  3. xeon17

    Trailer script

    attachElements ??
  4. You have to use triggerClientEvent to make it visible for everyone. I had the same problem before some time
  5. Put the code which i gave you in a existing server side script , or create a new resource...
  6. Server: -- Copyright (c) 2008, Alberto Alonso -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, this -- list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright notice, this -- list of conditions and the following disclaimer in the documentation and/or other -- materials provided with the distribution. -- * Neither the name of the superman script nor the names of its contributors may be used -- to endorse or promote products derived from this software without specific prior -- written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. local groups = { "Admin", "Console", "SuperModerator" } local Superman = {} -- Static global values local rootElement = getRootElement() local thisResource = getThisResource() -- Resource events addEvent("superman:start", true) addEvent("superman:stop", true) -- -- Start/stop functions -- function Superman.Start() local self = Superman addEventHandler("superman:start", rootElement, self.clientStart) addEventHandler("superman:stop", rootElement, self.clientStop) end addEventHandler("onResourceStart", getResourceRootElement(thisResource), Superman.Start, false) function Superman.clientStart() setElementData(client, "superman:flying", true) setElementData(client, "forcedanimation", true) end function Superman.clientStop() removeElementData(client, "superman:flying") removeElementData(client, "forcedanimation") end addEventHandler("onPlayerLogin", root, function ( _,account ) local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) for i, v in pairs ( groups ) do if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( v ) ) ) then setElementData(source, "canFly", true) end end end) Client: function canFly() return getElementData(localPlayer,"canFly") end
  7. We can't help you without any code.. But try this anyway, addEventHandler("onPlayerJoin",root, addEventHandler("onPlayerSpawn",root, function () fadeCamera(source,true) end)
  8. You can use , to give an elementdata to admins on server side when they join in server and then check does the player have the elementdata when he try to fly. setElementData
  9. xeon17

    Vehicle weapon

    There was so much errors in your code , try this should work but i didn't tested it function attach ( ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if theVehicle then local x,y,z = getElementPosition ( theVehicle ) local weapon = createWeapon("minigun", x, y, z + 1) attachElements ( minigun, theVehicle, 0, 0, 5 ) setWeaponClipAmmo(weapon, 99999) setWeaponState(weapon, "firing") setWeaponProperty(weapon, "fire_rotation", 0, -30, 0) end end addCommandHandler ( "attach", attach )
  10. xeon17

    Vehicle weapon

    Ignore him , the functions exist. https://wiki.multitheftauto.com/wiki/CreateWeapon https://wiki.multitheftauto.com/wiki/FireWeapon https://wiki.multitheftauto.com/wiki/Cl ... _functions
  11. Well , try posting here: https://forum.multitheftauto.com/viewforum.php?f=105 Since this isn't the support section and most developers won't see this topic.
  12. As i know , it's not possible to replace the CJ model.
  13. His script is doing the same as my.
  14. Try using the following resource to see which resource(s) are causing the problem. https://wiki.multitheftauto.com/wiki/Re ... ncebrowser
  15. Esses arquivos estão faltando. Além disso, você colocou alguns recursos mais de uma vez o que está causando erro.
  16. hasObjectPermissionTo is server-side only function.
  17. I've didn't said that you've stolen the scripts , but they are stolen and you don't have the permission to use them. And don't think if you removed the image someone will help you with this or topic won't be locked. Moderators and Administrators can easily check your first post. What are you waiting for , lock the topic castillo noob
  18. You should be rewarded with a warning since it's not the first time that you are asking for help with leaked/stolen scripts. When you will learn it? NOBODY will help you with Valhalla scripts in this forum.
  19. I always get the same error , it's impossible to change my account password. No matter what i enter i always get the same error. The password does not contain the required characters.
  20. xeon17

    Question

    Is this image 2D or 3D?
  21. 1. Add your mods in the resource 2. Add them in meta.xml , example: 3. Add the your mods in codeMods.lua 4. Start the resource or restart.
  22. Example in description
  23. https://community.multitheftauto.com/in ... s&id=10814
×
×
  • Create New...