Jump to content

nGear

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

nGear's Achievements

Vic

Vic (3/54)

0

Reputation

  1. nGear

    new MTA bug?

    That is the whole block. Let me post everything related to the dxDrawText's login = {} login.CCTVcurrent = 1 login.CCTVenabled = true sX, sY = guiGetScreenSize() scaleX = sX/1920 scaleY = sY/1080 function drawText() if login.CCTVenabled then dxDrawText("CAMERA "..login.CCTVcurrent, 0, 0, sX, sY, tocolor(255, 255, 255, 255), scaleY*0.3, font, "right", "bottom", false, false, true, true) dxDrawText("DATE", 0, 0, sX, sY, tocolor(255, 255, 255, 255), scaleY*0.3, font, "left", "top", false, false, true, true) dxDrawText("TIME", 0, 0, sX, sY, tocolor(255, 255, 255, 255), scaleY*0.3, font, "right", "top", false, false, true, true) end end addEventHandler("onClientRender", root, drawText) login is a table, fyi The thing is, that the text's only draw in the top left, if i change the positions to right top or anywhere else they stop working Obviously, this isn't the whole script, the whole script is about 900 lines long(a bit less) and has way more stuff than just the CCTV EDIT: stupid me, i forgot to make some variables(also called sX&sY) which are used for starting Position X&Y local. Don't know how i could miss that, i'll say its because its 6AM right now Thanks anyways! //Thread Closed
  2. nGear

    new MTA bug?

    Hey guys, i've been writing a little CCTV script, but for some reason dxDrawText&dxDrawRectangle are NOT working with onClientRender or anything else, even a friend called "Asus" who is very experienced in DX had no idea why this didn't work. The problem is simple, the texts only draw at the very first seconds of the start from the script, they only work for a tiny amount of seconds(atleast 2 of the 3 texts). dxDrawText("CAMERA "..login.CCTVcurrent, 0, 0, sX, sY, tocolor(255, 255, 255, 255), scaleY*0.3, font, "right", "bottom", false, false, true, true) dxDrawText("DATE", 0, 0, sX, sY, tocolor(255, 255, 255, 255), scaleY*0.3, font, "left", "top", false, false, true, true) dxDrawText("TIME", 0, 0, sX, sY, tocolor(255, 255, 255, 255), scaleY*0.3, font, "right", "top", false, false, true, true) sX&sY are screenWidth&Heigth, scaleY is sY/1920, font is a custom DX font or clear if it failed to create it. For some reason, the only text that draws is DATE, the other 2 texts only appear for about 1 second then instantly disappear. I have tried putting them on a renderTarget, didn't work. I have tried putting them in different functions, didn't work. I have tried using onClientRender and onClientPreRender, didn't work. I have tried putting them in a seperate resource, WORKED. But i have no idea why. The texts only draw if they are on the top left, putting them bottom left/right or top right makes them only appear for a second. I checked my VRAM with dxGetStatus but i have more than 3gb left for MTA, about 200 used for shaders&rendertargets and 16 used for fonts There are no errors or warnings in debugscript 3.
  3. Formatted thread(i'm too lazy to format it on this forum too, will maybe do that later) http://ffsgaming.com/threads/49017-TOOL ... uping-Tool nGears Grouping Tool Foreword Hello everyone, as some of you already know i've once made a mapping tool called 'NGT' but i've stopped working on it. Yesterday i started working on it again and added 3 completely new features: Changing Visibility Undo Covering First, i want to thank Arezu for not compiling his AMT scripts, because i've copied&edited the covering function out of his toolbox. Also, the tool is still a bit buggy so if you see any bugs, please report them! I will likely fix them! The Mission I've always been a lazy person, and when it comes to mapping most of us are lazy. NGT started out as a tool which could change the model of specific, self selected objects.(eg. changing brown shades to white shades) NGT tries to help those lazy people by making daily repetitive stuff, easier and faster. The Features NGT supplies you with easy to use Features. The currently implemented Features of NGT are: Selecting multiple objects Changing models of the selected objects Changing Visibility of the selected objects Covering selected objects(only works for shades, i've used the algorithm used in AMT for generating the covering) Undo(Doesn't work for Covering yet) How To Use Hold down 'j' while clicking on any object you like to select it! Type /change [model ID/name] to change the models of the selected objects. Type /visibility [true/false] to change the visibility of the selected objects. Type /cover to cover selected objects(Work's only for shades yet) Type /ungt to undo your latest action(Doesn't work for cover yet) Type /ua to unselect all objects. Video Download http://www.mediafire.com/download/rl80di4535l5wvp/NGT.zip http://www.upload.ee/files/4744516/NGT.zip.html Bugs /cover sometimes creates 2 cover shades instead of once. If you find anymore bugs, please report them! Credits Big thanks to Arezu for the cover generation code which i copied out of AMT.
  4. Hello, i've tried to make a little cutscene where the camera follows an ambulance, my problem is, when i try to warp a ped into the ambulance i get the error that i need min_mta_version server side 1.3.0-something The script which uses warpPedIntoVehicle is clientside(because its a map script, duh) The client side code is this: krankenWagen = createVehicle(416, -2287.2770996094, 569.38439941406, 35.15, 0, 0, 90) krankenPed = createPed(274, -2287.9907226563, 567.08966064453, 35.15) setTimer(warpPedIntoVehicle, 1000, 1, krankenPed, krankenWagen) And this is my meta: <meta> <file src="Generica.otf" /> <file src="streak.dff" /> <file src="streak.txd" /> <min_mta_version client="1.4" server="1.4" /> <script src="suicide.lua" type="client" /> <info gamemodes="race" type="map" name="nGear v4 - distorted Reality" author="nGear" version="1.0.0"></info> <map src="0DM-nGear-v4.map" dimension="0"></map> <settings> <setting name="#skins" value='[ "cj" ]'></setting> <setting name="#maxplayers" value="[ 128 ]"></setting> <setting name="#useLODs" value="[ false ]"></setting> <setting name="#gamespeed" value="[ 1 ]"></setting> <setting name="#ghostmode" value='[ "false" ]'></setting> <setting name="#time" value="6:0"></setting> <setting name="#vehicleweapons" value='[ "false" ]'></setting> <setting name="#minplayers" value="[ 0 ]"></setting> <setting name="#respawntime" value="[ 5 ]"></setting> <setting name="#gravity" value="[ 0.0080000003799796104 ]"></setting> <setting name="#waveheight" value="[ 0 ]"></setting> <setting name="#weather" value="[ 36 ]"></setting> <setting name="#locked_time" value="[ true ]"></setting> <setting name="#duration" value="[ 1800 ]"></setting> <setting name="#respawn" value='[ "timelimit" ]'></setting> </settings> <script src="mapEditorScriptingExtension_s.lua" type="server"></script> <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script> </meta> I've used exactly the same code when scripting for a map in 1.3, the code worked and everybody was happy. Now i'm mapping in 1.4.1 and it does not work, and i don't want to go back to 1.3 because i want the map to work on 1.4 servers. Anybody knows why warpPedIntoVehicle isn't working the way i use it? Sry for my kinda fucked up english atm, i'm tired af.
×
×
  • Create New...