Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. What is getPlayerData. And specify the error line.
  2. JR10

    Matrix cams

    Are you f*cking kidding me? It's your code, and you said it's not the full one, are you high?
  3. JR10

    Matrix cams

    5? Minimum timer time interval is 50. local matrixCams = { --{camX,camY,camZ,sthZ,distance} {1614.837, -1301.275, 38.188, 200, 400}, --LS {2052.229, 1559.058, 10.671, 125, 200}, --LV {-1856.736, 807.699, 112.546, 300, 250}, --SF } function setCameraOnPlayerJoin() -- set the player's camera to a fixed position, looking at a fixed point if getCameraMatrix() then setTimer(matrixCams,50,5) addEventHandler("onClientGUIClick", Button1[1],camTarget, false ) addEventHandler("onClientGUIClick", Btn2[2],camTarget, false ) addEventHandler("onClientGUIClick", Btn3[3],camTarget, false ) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),setCameraOnPlayerJoin)
  4. You are using my jobs resource, no problem. You edited it, I'm aware that's going to happen, that's why I didn't compile it. You actually give me credits. But selling it, that's just scamming.
  5. Unlikely to find a good scripter here for only admin or moderator rights.
  6. Are you kidding me? Using my resource in your server, ok that's why I uploaded it. But selling it with a various of other downloaded resources ... To any one thinking about buying this don't, you can find all that on the community.
  7. --------------------------- -- lock vehicle --------------------------- function lockcar() local pojazd = getPedOccupiedVehicle(localPlayer) if pojazd then if isVehicleLocked (pojazd) then outputChatBox("Pojazd jest już zamknięty!") -- "Car is locked!" else outputChatBox("Pojazd został zamknięty.") setVehicleLocked (pojazd, true ) end end end addCommandHandler('lock', lockcar) --------------------------- -- unlock vehicle --------------------------- function unlockcar() local pojazd = getPedOccupiedVehicle(localPlayer) if pojazd then if isVehicleLocked (pojazd) then outputChatBox("Pojazd został otworzony.") setVehicleLocked (pojazd, false ) else outputChatBox("Pojazd jest już otoworzny!") -- "car is opened!" end end end addCommandHandler('unlock', unlockcar) --------------------------- -- auto unlock vehicle --------------------------- addEventHandler("onClientVehicleStartExit", g_Root, function() local pojazd = getPedOccupiedVehicle(localPlayer) if isVehicleLocked (pojazd) then -- When player want to exit locked car it's been opened. outputChatBox("Pojazd został otowrzony.") setVehicleLocked (pojazd, false ) end end )
  8. I haven't downloaded what you posted, just saw the name. Just use one of these tested, working compilers. LUAC GUI (Lua Compiler) by FabienWang File or Directory Compiler GUI by xtreamlua.com (found & tested by Ransom)
  9. for index , account in ipairs ( getAccounts () ) do if getAccountData ( account , "charName" ) == newCharName then outputChatBox("BLABLA" , player ) return end end This will check if the account data == something, if so it will return (stops the rest of the code execution) Needs edit. I hope I understood you correctly.
  10. What did you download exactly?
  11. JR10

    GUI An

    Kinda like exactly what Cast said, right? No need for useless posts.
  12. Business System Current Features [v1.3.1]: Creating business ingame with GUI DX texts and image on marker, containing info Business window, containing info and actions Payout, when you create a business you specify payout and payout time Bank, payout go to the bank, you can deposit and withdraw Managment, you can set name, owner, cost, bank and destroy Moving DX messages for info messages, check the screenshots When the resource stops, timers for payout are saved, loaded on start, and completed, meaning, if payout is every 1 hour, resource stopped and there was 20 minutes left, it's saved and on start the payout timer time is 20 minutes Version Check, when the resource starts, it will check if a new version is released, and will inform business admins, of new versions Uses SQLite or MySQL for saving, newest functions provided by MTA Fully written in OOP Change Log: Version 1.1: Fixed few bugs. Improved update check. Added setting to hide the info shown on the marker. Now when you sell a business, you get the money in the bank. [*]Version 1.2: New moving dxOutput, old one was hideous. Fixed blip staying after business destroyed bug. DB functions use callbacks now, thanks to Arran for telling me. [*]Version 1.3 Fully rewritten in OOP New directx user interface with the dxGUI library Can now use MySQL or SQLite [*]Version 1.3.1 Revert to CEGUI Fix info messages not being output Notes: Use /business to open Create Business GUI. There is settings in the meta for Info message type, marker color, inform player for payout, key to open business GUI, blip id, maximum number of owned businesses, hiding the info shown on the marker. Adding the resource to admin group, is necessary for version checks. Screen Shots: Download GitHub Repo Any Ideas, bugs, questions please post them. If you want to edit something and failed, post and I will help you. I'm out of ideas for the resource, if you have any, please post them.
  13. JR10

    markers

    setCameraTarget(localPlayer) thePlayer is not defined.
  14. JR10

    markers

    setCameraTarget Dude, use the wiki.
  15. JR10

    markers

    setCameraMatrix
  16. JR10

    markers

    You didn't know it? And you had it in your script?
  17. 1. guieditor - QT To Lua 2.I'm not sure, but I think in MTA 1.1, you can.
  18. No because both are squared, yours just that blue touch.
×
×
  • Create New...