Reputation Activity
-
totemsteiner got a reaction from MarcelWRLD in Script to reload LSPDFR Pluginswould save so much time<3
-
totemsteiner got a reaction from Yasd in End callout with "end" key inside while loopfor the sake of documentation:
i removed all while loops and game.fiber wait etc. and did everything with if statements.
solved.
thanks,
totem
-
totemsteiner reacted to Yasd in End callout with "end" key inside while loopYou need to be careful when using GameFiber.Wait(), because what you are doing is pausing the whole lspdfr plugin.
When pressing End while the plugin is frozen/ paused, it won't end.
-
totemsteiner got a reaction fromDeactivated Memberin My lspdfr crashes after 30 minutes of playHi,
well, i highly recommend to uninstall LSPDFR+ and Albos Arrest Manager. I would say that best practice is not to use them, as they are really outdated. Remove these Plugins and try again.
You can use StopThePed for arrests.
best,
totem
-
totemsteiner got a reaction from Dozel in My lspdfr crashes after 30 minutes of playHi,
well, i highly recommend to uninstall LSPDFR+ and Albos Arrest Manager. I would say that best practice is not to use them, as they are really outdated. Remove these Plugins and try again.
You can use StopThePed for arrests.
best,
totem
-
totemsteiner got a reaction from Charlie686 in How to arrest a attacking Pedhi @GTAbear
hi @Charlie686
thank you very much to both of you, i have cut my teeth on this. I was aware that the process() calls this every second, but didnt know to handle this:/
But the switch statement in my if statement makes total sense! I overlooked that! Thanks again!!!💓
Its working like a charm now:)
best regards,
totem
-
totemsteiner reacted to GTAbear in How to arrest a attacking PedWhat i thinking is that this task needs a timeout or an other way to stop.
public Task FightAgainst( Ped target, int timeout ) -should give you that. You may also try to stun the fighting Ped. Peds from callouts will surrender after a stun with stungun, but there is a problem..
STP does not allow stungun. That is one of the absurdities in STP, and one to remember: Dont ever set limitations on what Player can do just because your plugin is loaded.
Dictator-ship through plugin is never popular by users
-
totemsteiner reacted to Charlie686 in How to arrest a attacking PedI'm not quite sure what GTAbear is talking about, but the problem in your code is that you are continuously tasking the suspect to fight the player.
Remember what's happening in your code here. Your logic is that: Process() is looping -> so if the player is within 10f of the suspect -> and your counter is 6 -> fight the player. And because Process() happens several times a second, you are repeatedly telling the suspect to fight the player several times a second.
That's why the suspect is likely to be glitching between both. You should really put your switch statement within your if statement checking if the key is down. Because that's when you want your switch statement to run.
I hope this helps. Please let me know if you need further assistance getting to grips with it! 🙂
-
totemsteiner got a reaction from cherryaerie in Dead Ped spawns/floats in the airok, i fixed it myself, i think. I put in an
GameFiber.Wait(10); so the peds reach the ground with their feet, and then the suspect dies with the kill command.
i have to try it out with all my spawns, but looks promising,
thanks,
totem
-
totemsteiner reacted to Yasd in i can't load my own pluginA little info about a gamefiber:
a gamefiber makes sense if you want to work with time, or if you want to wait between fixed actions.
you start the gamefiber with gamefiber.startnew(delegate
the next line should always be gamefiber.yield();
it’s complicated to explain why, but important.
In the gamefiber, you then can do: gamefiber.wait(1000);
the 1000 is the time in miliseconds Before the next line gets executed. You can replace the number (with f.e. 10000, which would be 10 seconds.)
as always, if you start a gamefiber in your process section (which loops), make sure to call the gamefiber only once.
if you want a callout to end &/ or want the gamefiber to end, you can call gamefiber.abort(); , which instantly ends the gamefiber. Therefore make sure the gamefiber is not null & gamefiber.isalive
more commands here.
-
totemsteiner got a reaction from andy22296 in mute the horns of civilian cars?thanks so much, didnt find it!
best regards,
totem