SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/06/2020, 04:07 AM   #1
SkyFlare
Huge Clucker
 
SkyFlare's Avatar
 
Join Date: Apr 2015
Location: NZ
Posts: 221
Reputation: 43
Default Indestructible Atms, how is this achieved?

Hey guys, I am trying to create unbreakable atm machines, after a bit of research I see you need to set the Object Material, however this isn't working as it once used to, as I can drive into it, or punch it and it breaks.
Code:
DynamicAtms[atmid][ObjectID] = CreateDynamicObject(DynamicAtms[atmid][ModelID], DynamicAtms[atmid][PosX], DynamicAtms[atmid][PosY], DynamicAtms[atmid][PosZ], 0.0, 0.0, 0.0, 0, 0, -1, 100.0);
	SetDynamicObjectMaterialText(DynamicAtms[atmid][ObjectID],0,"None",50," Arial",24,0,0,0,1);
would be nice to know how this works, thanks in advance.
__________________
Purchasable Scripting Services Available, Inbox me with your Requests.
My Project Progress Tracker
My Work
Link
Information
S-Store System V2 LinkIngame Store in Dialogs
SkyFlare is offline   Reply With Quote
Old 24/06/2020, 09:49 AM   #2
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,168
Reputation: 165
Default Re: Indestructible Atms, how is this achieved?

You could set a timer to respawn Them occasionally
__________________
Undead Wasteland Roleplay | Visit website
The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
jasperschellekens is offline   Reply With Quote
Old 24/06/2020, 09:52 AM   #3
Kane
Gangsta
 
Kane's Avatar
 
Join Date: Sep 2012
Posts: 824
Reputation: 130
Default Re: Indestructible Atms, how is this achieved?

https://dev.prineside.com/en/gtasa_s...24-kmb_atm1_2/

Object model ID 19324
Has collision Yes
Breaks on hit No
__________________
Developer, @ls-rp.com

Former Beta Tester

Kane is online now   Reply With Quote
Old 24/06/2020, 10:42 AM   #4
SkyFlare
Huge Clucker
 
SkyFlare's Avatar
 
Join Date: Apr 2015
Location: NZ
Posts: 221
Reputation: 43
Default Re: Indestructible Atms, how is this achieved?

Quote:
Originally Posted by Kane View Post
https://dev.prineside.com/en/gtasa_s...24-kmb_atm1_2/

Object model ID 19324
Has collision Yes
Breaks on hit No
You legend! imma use this website often! thats awesome
__________________
Purchasable Scripting Services Available, Inbox me with your Requests.
My Project Progress Tracker
My Work
Link
Information
S-Store System V2 LinkIngame Store in Dialogs
SkyFlare is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
country is not achieved into musql table severance Scripting Help 4 20/08/2018 08:04 PM
How to make object indestructible? Saddin Scripting Help 1 30/04/2018 04:39 PM
Detect if user achieved pickup: Twizted Scripting Help 4 26/06/2014 03:13 PM
Indestructible body Gruszex Scripting Help 5 09/05/2014 10:41 AM
How to make a vehicle Indestructible? XxJoexX Help Archive 11 17/07/2010 05:16 PM


All times are GMT. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.