-
Posts
60 -
Joined
-
Last visited
Everything posted by Noah_Antilles
-
Thanks for your reply again @coNolel The script doesn't seem to work. I get no chat message. I have no idea what's wrong, your script seems perfect to me edit: when I enter another vehicle that is not a rustler I get the chat message "you can't use it ! (only in Rustler vehicle)" even though I did not press left mouse button
-
Alright, I've tried a load of things, and I am beginning to get a grasp of scripting (atleast I think so ) but I just cannot seem to get the scripts to work with eachother. This is what I have right now: The disable rustler firing script is in another script - client This scipt - client function checkIfRustler ( theVehicle, seat ) local id = getElementModel ( theVehicle ) if id == 476 then end end addEventHandler ("onClientPlayerVehicleEnter", getLocalPlayer(), checkIfRustler) function MouseKey(button, press) if (button == "mouse1" and press) then outputChatBox("Clicked the left mouse !") end end addEventHandler("onClientKey", checkIfRustler, MouseKey) Could you give me some more tips as to what I am doing wrong? because I feel like I am running against a wall right now.
-
Thanks for your feedback I try to make all my maps for my server in the same style as the original GTA SA. I only use textures from the original game
-
I indeed have to learn it myself. I will try to fix the remainder of the problem myself thanks for helping me @coNolel @*BeaT* and @Reval You've given me lots of motivation to move on and learn more, thanks!
-
Hello there! I'm a scripting beginner but luckily I'm more skilled in modelling and mapping. So I thought I'd show you a base I've been working on. Let me know what you think! -Noah
-
I am afraid I don't understand, I have little experience in scripting This is the result I am striving for: When I'm in a rustler and left click the text should pop up When I'm in another vehicle or on foot and left click it shouldn't pop up. Your script helped me a lot in the right direction, but whenever I left click the text pops up regardless of whether I'm in a rustler or not.
-
@coNolel The script outputs the message whenever I click left mouse button. It exclusively needs to output the text when I am in a Rustler. As far as I can see the second part of the script (line 10-15) ignores the first part of the script (line 1-8)
-
Thanks for your replies. I tried both of them @Reval This doesn't seem to work, the Rustler doesn't fire, but I don't get an output in the chat. @*BeaT* I only get an output in the chat when I am left-clicking in menu's (when using the F1 menu for example) When seated in a rustler nothing happens The two scripts need to work together, but it seems they don't.
-
Hello there, I am a total noob in scripting, but I thought I'd give it a try for the sake of learning new things. What I am trying to accomplish with this script is disabling the "standard" rustler guns (this works thanks to an example script of the wiki.) and make it fire "custom" projectiles when the player presses the left mouse button. For now I just want to check if the script recognizes a player inside a rustler pressing left mouse button (hence the outputChatBox) However, when I am inside a rustler and use the left mouse button to fire nothing pops up in the chatbox (luckily, as intended, the rustler doesn't fire its guns) What am I doing wrong? I'm sure I made some kind of noob mistake but hey, I am still learning function disableFireForRustler ( theVehicle, seat ) if ( getElementModel ( theVehicle ) == 476 ) then toggleControl ( "vehicle_secondary_fire", false ) else toggleControl ( "vehicle_secondary_fire", true ) end addEventHandler ( "onClientPlayerVehicleEnter", getLocalPlayer(), disableFireForRustler ) function addTracer (mouse1, press) if (press) then outputChatBox ("guns fired") end addEventHandler("onClientKey", root, addTracer)
-
Hi there, My name is Noah and I am currently working on changing certain bits of the original SA map. However, I stumbled upon a problem once I imported a custom model I made. It seems to be some sort of lighting problem. Here's a pic to show what I mean: https://gyazo.com/e85a28e85e6a2523666c223acde3bfe7 The custom model seems to have different lighting, which makes it stand out. As far as I know I am doing everything right. The .DFF, .TXD and .COL all work perfectly fine. It's just the lighting that's giving me problems. I hope anybody can give me some tips on what I am doing wrong, If you need more information please ask me! -Noah