Jump to content

Tails

Members
  • Posts

    740
  • Joined

  • Days Won

    16

Everything posted by Tails

  1. Thanks everyone for the nice comments! @ rai2221, Make sure you type in the resource name correctly, it's case-sensitive. So not resource.cinemaexperience but resource.CinemaExperience EDIT: My mistake. The resource by default is named cinemaexperience. So in that case you need to type in: resource.cinemaexperience. Sorry for the confusion.
  2. Thanks, LeSilver. Update your server and client to the latest version. That should fix the problem. Cinema Experience updated! Changelog - Beta ver.1.0.1: - Now open-source!- [API] "Fix" for connection issue - Update your server to the latest version! - [GUI] Slightly raised video info so the progressbar doesn't overlap it on widescreen resolutions. - [GUI] Help font size slightly reduced. - [GUI] Made more room to display the help text, it should now fit properly on all resolutions.
  3. Thanks all! @Fiction we're currently working out what's causing it. It seems like the Google APIs are getting blocked by your server/host. We will release the source tonight or tomorrow.
  4. G&T Mapping & Loki present: Cinema Experience Beta 2.0.2 Description We're happy to finally release the first beta version of our Cinema Experience! Check out its features down below... Video Screenshots Download Now Beta Ver. 2.0.2 [ October 7, 2019 ] Changelog Authors: Tails - Follow his group G&T Mapping on Facebook: http://fb.com/gtmapping Check out their other resources as well: http://gtmapping.blogspot.com Loki - Check out his original Cinema script here: https://community.multitheftauto.com/in ... s&id=11993 and his profile here: https://forum.multitheftauto.com/memberlist.php? ... le&u=79989 Please note that this resource is not 100% complete yet. Some features are disabled and there may still be some bugs. To get started, scroll down the page and read "How to install". The Features - YouTube TV browser - Fully automated playlist - VIP manager - Add/remove VIPs who can manage the Cinema. - Synced playback - Vote to skip video - Real-time Ambilight - Open/close the cinema - Kick players from the cinema - And a lot more! Commands Global Cmds: - F2 - Toggle the Cinema Panel (You have to be inside) - M - Mute the playback [This is currently bugged] - /play url - Adds a video to the playlist - /playlist - Shows the playlist in the chat - /geturl - Gives you the URL to the current video - /proper - Adjusts the width of the screen making it more normal VIP/Admin Cmds: - /replay - Replays the current video - /skipvideo - Force skip the current video - /stopplay - Stops all playback and clears the playlist - /remove nr - Removes a video from the playlist. E.x.: /remove 2 How to install Step 1 (Unpack resource) First update your server to the latest version! You need atleast version 1.5.2 anything lower is not supported! Type 'ver' without quotes into the server console (F8) to see what version you're running. Unpack the zip file to your server resources folder: Multi Theft Auto\server\mods\deathmatch\resources\ in a new folder called CinemaExperience Make sure you're an admin on your server if you don't know how to do that go and read the MTA wiki. Step 2 (grant resource admin access) Press P on your keyboard to open your admin panel and add the resource to the Admin ACL group To do that go to the Resources tab and click on the 'Manage ACL' button in the top right corner then double click 'Admin' under 'Groups' and press 'Add Object'. Type in resource.CinemaExperience and click on OK. Step 3 (start resource) Now start the resource. Open the in-game console (F8) and type in refresh and press enter, then type in start CinemaExperience and hit enter again. Step 4 (add yourself as VIP) Finally, you need to add yourself as VIP in the cinema panel. In order to do that, enter the cinema and press F2 to open up the cinema panel. Now open the Settings tab, then open the Visitors tab (on the right side of the panel) and select your name. Click on 'Add/remove VIP'. That's it! You have now access to all the settings so you can enjoy our Cinema Experience to the fullest How to change binds You can change the bind for toggling the panel in the s-binds.Lua file. Known issues / FAQ Installation: - I can't connect to API? Make sure the resource has admin privileges and server is up to date (1.5.2). Also try extracting the resource. - I can't add videos? If you can't control the settings after you've added yourself as VIP, unpack the resource and delete the config files in the cfg folder. Still need help? Leave us a message below or contact me through the G&T Mapping Facebook page (link at the bottom or top) Panel: - There's ads covering the screen! Sometimes there may be ads covering the video on the screen. You can click on the Skip Ads button to refresh the video, usually this will remove any ads on the video. Sorry for the inconvenience. There is no other solution at the moment. In the future - Add option to limit how many videos can be added per user - Add option to set the max length of a video - Add option to change the screens width and height and position This list isn't finished yet Bug reports / Questions / Feedback If you encounter any bugs, glitches, have any suggestions, feature requests, or simply just like to ask a question, please don't hesitate to post them Thanks!
  5. http://pastebin.com/xZgqikkU Change NATIVE_RESOLUTION on line 15 to what you're working with and colors in function @ line 250
  6. Tails

    Creator areas

    This should become an official addon
  7. Tails

    Creator areas

    Pretty nice and will be very helpful. Is it just an idea or is what you see on the video already scripted?
  8. It does work. Make sure you set them to the max values. Read my other post, you'll see how I did it.
  9. addEventHandler( "bindFire", localPlayer, bindFire ) try changing it to addEventHandler( "bindFire", resourceRoot, bindFire ) if it's being triggered from the server, use triggerClientEvent(thePlayer,"bindFire",resourceRoot) make sure thePlayer is defined, or use source.
  10. Here's the result: local api_dev_key = 'api key here' local url = 'http://pastebin.com/api/api_post.php' function pastebin(source,cmd,...) if ... then local curl = curlInit(url) local api_paste_code = table.concat({...}," ") local api_paste_code = urlEncode(api_paste_code) if not curl then outputChatBox("Can't connect to "..url,source) return else curlSetopt(curl, CURLOPT_POST, true) curlSetopt(curl, CURLOPT_POSTFIELDS, 'api_option=paste&api_dev_key='..api_dev_key..'&api_paste_code='..api_paste_code..'') curlSetopt(curl, CURLOPT_RETURNTRANSFER, 1) curlSetopt(curl, CURLOPT_VERBOSE, 1) curlSetopt(curl, CURLOPT_NOBODY, 0) local result,data = curlPerform(curl) if result == CURLE_OK then outputChatBox(tostring(data),source) end curlClose(curl) end end end addCommandHandler("paste",pastebin) Found somewhere on the net: function urlEncode(str) if (str) then str = string.gsub (str, "\n", "\r\n") str = string.gsub (str, "([^%w %-%_%.%~])", function (c) return string.format ("%%%02X", string.byte(c)) end) str = string.gsub (str, " ", "+") end return str end
  11. Already found a fix I'm using MTA's cURL functions: https://wiki.multitheftauto.com/wiki/Mo ... rl_perform Everything's working fine now!! Will post the result soon
  12. EDIT: Fixed, see the result in my next post I'm trying to send some data to the Pastebin API but it keeps returning the same thing no matter what I put in the postData argument. So I was wondering if anyone has had any experience with this particular API, or just sending data with fetchRemote in general. The issue is the postData argument. I feel like it's not being picked up by the API at all. The code is based off of the php example on this page: http://pastebin.com/api#1 local api_paste_code = 'Just some random text' local api_paste_code = urlEncode(api_paste_code) local postData = 'api_option=paste&api_dev_key='..api_dev_key..'&api_paste_code='..api_paste_code..'' function pastebin(source,cmd) outputChatBox(api_paste_code,source) fetchRemote('http://pastebin.com/api/api_post.php',2, function(data,err) if err == 0 then outputChatBox("Response: "..data,source) else outputChatBox("Error: "..err,source) end end,postData,false) end addCommandHandler("paste",pastebin) Any help is appreciated!
  13. I thought there would be a smarter way of doing it, but I guess I'll have to it like that. Matter of fact, already done it this afternoon. Thanks for you input.
  14. Hello fellow MTA scripters, I've just made a function called checkPrivileges, it's server-side and it's all working just fine. However I'm trying to use it in the client-side code below and of course it won't work this way. So my question is, what is the best way of retrieving the state of checkPrivileges to the client, in something like below? I've already tried stuff like: state = triggerServerEvent( etc... but unfortunately it's not that simple. Any help is appreciated! for i,v in pairs(myColshape) do local name = getPlayerName(v) if checkPrivileges(v) then userlist:AddItem(users,i..". "..name,name,0,200,0) else userlist:AddItem(users,i..". "..name,name,255,255,255) end end
  15. What else do you have in your meta? Make sure the actual script file is in there as well.
  16. You need to set the column width to a higher value, but at the same time make sure it's not wider than the gridlist. Also, take note that there's no horizontal scrolling so not many columns are going to fit.
  17. Remp, Can you add in the following functions and fixes? - dxCreateRenderTarget - dxSetRenderTarget - guiCreateBrowser - Fix not being able to interact with dx elements after you've loaded them in with load code Thanks, love your add-on!
  18. What if you set the vehicle's mass to an extremely high value? I haven't tested if it makes you like a tank so you'll have to see for yourself. https://wiki.multitheftauto.com/wiki/SetVehicleHandling Here's some code I've written a while back, changed it a bit for you. (it's not perfect) function resetHandling() if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if veh then local model = getElementModel(veh) local propTable = getOriginalHandling(model) for k,v in pairs(propTable) do setVehicleHandling(veh,k,v) end end end end function changeHandling(player) if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if veh then local model = getElementModel(veh) local propTable = getOriginalHandling(model) local prop = "mass" local value = propTable[prop] setVehicleHandling(veh,prop,value+70000) end end end function bindKeys(source) bindKey(source,"lshift","down",changeHandling) bindKey(source,"lshift","up",resetHandling) end addEventHandler("onVehicleEnter",root,bindKeys)
  19. Speaking of yourself, #Roots? Just be a man and don't delete your posts in the future.
  20. If you think it's not important then you're wrong. It's important to the community. If you really wanted to help the community then you would leave your posts in tact so people can learn from it. This topic is useless now. When it's done, post the script as open-source and only then it would help, and you can post a link about it here in the topic. But you were going to post it?
  21. @ #Roots, Don't you realize how disrespectful it is to remove your posts like that. Are you afraid people might learn something from it so they don't have to make the same mistakes and ask the same question again in the future? Maybe they should just get rid of the search function on these forums. If everyone did this then I guess there's no point in having one. Hell, what's the point of a forum anyway if people aren't willing to share with others but only want to receive help. Greetings, Tails
  22. Hello, Is it possible to set the height of a polygon created with createColPolygon? I couldn't find anything about it on the wiki page. While we're at it, is there anyway to draw on the sides of a polygon or any colshape, and can you make them actually collidable, so people can't pass through them? Thanks in advance
  23. Droam|Oussez, Don't come here asking questions and then remove all of your posts... don't post your friggin code in the first place if don't want anyone to use it or learn from it.
  24. What are you trying to do exactly? Try setting 'doublesided' to true, this will make the other side visible.
×
×
  • Create New...