question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Delete Vehicle bug.

See original GitHub issue

I was having trouble deleting the main characters vehicle so I looked at the source code and noticed:

void Entity::Delete()
    {
        int handle = Handle;
        Native::Function::Call(Native::Hash::SET_ENTITY_AS_MISSION_ENTITY, handle, true, false);
        Native::Function::Call(Native::Hash::DELETE_ENTITY, &handle);
    }

This

Native::Function::Call(Native::Hash::SET_ENTITY_AS_MISSION_ENTITY, handle, true, false);

should be:

Native::Function::Call(Native::Hash::SET_ENTITY_AS_MISSION_ENTITY, handle, false, true);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
njames93commented, May 28, 2016

*cannot be changed by any other scriptThread 😃

2reactions
sollahollacommented, May 27, 2016

The second one is telling the car that SET_ENTITY_AS_MISSION_ENTITY cannot be changed by any other script.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug Delete - Bug, Tar, & Tree Sap Remover (1 Gallon)
Remove stubborn insects, tree sap, films, and tar. Bug Delete is a ready-to-use bug remover specially formulated for safe use on all exterior...
Read more >
Bug Delete - Insect And Stain Remover (32oz) - DipIt
BUG DELETE IS A READY-TO-USE BUG REMOVER SPECIALLY FORMULATED FOR SAFE USE ON ALL EXTERIOR VEHICLE SURFACES, INCLUDING PLASTI DIP, PROLINE AND AUTOFLEX....
Read more >
How to remove bugs from your car
Just as you would clean bugs off the body of a car, you can use a microfiber cloth and basic cleaning product to...
Read more >
Rockstar addresses GTA Online bug that's deleting ...
Rockstar games has acknowledged a completely game breaking bug in GTA Online that is permanently deleting everybody's vehicles.
Read more >
How To Remove Bugs From Your Car
Time spent on the road means you'll likely splatter some bugs, so we've collected expert tips on the best ways to remove bugs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found